text stringlengths 3.08k 22k |
|---|
// $Id: ECT_Consumer_Driver.cpp 95746 2012-05-13 12:51:05Z johnnyw $
#include "ECT_Consumer_Driver.h"
#include "orbsvcs/CosNamingC.h"
#include "orbsvcs/Event_Utilities.h"
#include "orbsvcs/Event_Service_Constants.h"
#include "orbsvcs/Time_Utilities.h"
#include "tao/Timeprobe.h"
#include "tao/debug.h"
#include "ace/... |
#include <Wire.h>
#include <Bmp085.h>
Bmp085::Bmp085()
{
_dev_address = Bmp085_ADDR;
_pressure_waittime[0] = 5;
_pressure_waittime[1] = 8;
_pressure_waittime[2] = 14;
_pressure_waittime[3] = 26;
_cm_Offset = 0;
_Pa_Offset = 0;
oldEMA = 0;
Wire.begin();
}
void Bmp085::init()
{
init(MODE_STAND... |
#pragma once
//#define UNLOCK_CURSOR
#include <pch.hpp>
#include <GLFW/glfw3.h>
#include <vulkan/VulkanInstance.hpp>
#include <vulkan/scene/InputHandler.hpp>
// Class representing the window which can be used for rendering
class cWindow
{
public:
static uint puiWidth;
static uint puiHeight;
static uint p... |
/******************************************************************************
* Filename: MFBitmapToEVR.cpp
*
* Description:
* This file contains a C++ console application that is attempting to write raw
* bitmaps to the Enhanced Video Renderer
* (https://msdn.microsoft.com/en-us/library/windows/desktop/ms694916%28v=... |
// Avisynth v2.5. Copyright 2002 <NAME>-Gould et al.
// http://www.avisynth.org
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any l... |
#include <iostream>
#include <fstream>
#include <string>
#include <algorithm>
#include <ctime>
#include <stack>
#include <vector>
#include <climits>
#include <queue>
using namespace std;
int N;
static int number = 0;
static int compare_num = 0;
struct node{
int in;
int out;
int flag;
vector<int> order;... |
#include "MPC.h"
#include <cppad/cppad.hpp>
#include <cppad/ipopt/solve.hpp>
#include "Eigen-3.3/Eigen/Core"
using CppAD::AD;
// Number of timesteps in horizon
size_t N = 25;
// Distance between front of vehicle and center of gravity
const double Lf = 2.67;
double ref_v = 40;
double dt = 0.05;
size_t x_start = 0;... |
#include<iostream>
#include<vector>
#include<string>
#include<stdlib.h>
using namespace std;
//LOCATION CLASS
class Location
{
public:
string name;
string desc;
//4 locations representing extits from current one
Location* north = nullptr;
Location* south = nullptr;
Location* west = nullptr;
Location* east = ... |
#include "ConsoleEngine.h"
class SnakeGame : public ConsoleEngine
{
public:
SnakeGame(const wchar_t* game_name) : ConsoleEngine(game_name) {}
private:
class Point
{
public:
int x, y;
Point() { x = 0; y = 0; }
Point(int _x, int _y) : x(_x), y(_y) {}
Point(const Point& new_point) : x(new_point.x), y(new_... |
//
// regularized_stokeslet.cpp
//
#include "regularized_stokeslet.hpp"
#include <iostream>
/// Function to compute the velocity and pressure in Stokes flow given a set of
/// source points, forces at the source points, and target evaluation points
/// using the method of regularized Stokeslets. The formulas used co... |
//===-- Nios2AsmPrinter.cpp - Nios2 LLVM assembly writer --------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-----------------------------------------------------... |
#include "detect.h"
void detect::drawPred(int classId, float conf, int left, int top, int right, int bottom, Mat &frame)
{
rectangle(frame, Point(left, top), Point(right, bottom), Scalar(0, 255, 0));
std::string label = format("%.2f", conf);
if (!classes.empty())
{
CV_Assert(classId < (int)cla... |
/*
* BSD 2-Clause License
*
* Copyright (c) 2019, <NAME>, <NAME>, <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyrig... |
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <ctime>
#include <iostream>
#include <algorithm>
#include <string>
#include <cstring>
#include <vector>
#include <map>
using namespace std;
FILE *in,*out;
unsigned int id=1;
enum TOKEN_TYPE{
tk_none, //未知
tk_symbol, //符号
tk_nu... |
#include "UBTech.h"
UBTech::UBTech(SoftwareSerial *ssData)
{
initObject(ssData, NULL);
}
UBTech::UBTech(SoftwareSerial *ssData, HardwareSerial *hsDebug)
{
initObject(ssData, hsDebug);
}
void UBTech::initObject(SoftwareSerial *ssData, HardwareSerial *hsDebug) {
_ss = ssData;
_dbg = hsDebug;
_enableDebug ... |
// ----------------------------------------------------------------------------
// - Open3D: www.open3d.org -
// ----------------------------------------------------------------------------
// The MIT License (MIT)
//
// Copyright (c) 2018 www.open3d.org
//
// Permissio... |
#include <ap_axi_sdata.h>
#include <ap_int.h>
#include <hls_stream.h>
#include <assert.h>
#include "top.hpp"
using namespace hls;
enum parser_state {
PARSER_SM_IDLE = 0,
PARSER_SM_MAC_TYPE,
PARSER_SM_STREAM,
PARSER_SM_RESIDUE,
};
const ap_uint<16> ARP = ap_uint<16>("0x0806", 16);
/*
* The default FIFO_WIDTH is... |
//-----------------------------------------------------
// include
//-----------------------------------------------------
#include <Personal/StreamObject.hpp>
#include "DataType.hpp"
#include "Functor.hpp"
#include "Utility.hpp"
std::string DispParam::stringPosition() const throw(ConvertError) {
retur... |
#include <p_icp/utils.hpp>
Eigen::Affine3d create_rotation_matrix(double ax, double ay, double az) {
Eigen::Affine3d rx = Eigen::Affine3d(Eigen::AngleAxisd(ax, Eigen::Vector3d(1, 0, 0)));
Eigen::Affine3d ry = Eigen::Affine3d(Eigen::AngleAxisd(ay, Eigen::Vector3d(0, 1, 0)));
Eigen::Affine3d rz = Eigen::Affine3d(E... |
#include "Task_MergeScenario.h"
#include "../../Helpers/cariosity_structs.h"
#include <aadc_geometrics.h>
#define RADIUS_AT_FULL_LOCK (0.36f)//(0.63f)
#define ROAD_LANE_WIDTH (0.5f)
#define MIN_DISTANCE_TO_OBSTACLE (40.0f)
#define FRONT_AXLE_OFFSET (0.365f)
#define LASER_SCANNER_OFFSET (0.45f)
/*! Calls parent cons... |
/*
* Adplug - Replayer for many OPL2/OPL3 audio file formats.
* Copyright (C) 1999 - 2003 <NAME>, <<EMAIL>>, et al.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* vers... |
//------------------------------------------------------------------------------
// physicsinterface.cc
// (C) 2019-2020 Individual contributors, see AUTHORS file
//------------------------------------------------------------------------------
#include "foundation/stdneb.h"
#include "PxPhysicsAPI.h"
#include "physics... |
// Functions for the <see cref="DibGuar"/> class to manage disability
// guarantee pia calculations.
//
// $Id: DibGuar.cpp 1.15 2017/09/18 10:37:23EDT 277133 Development $
#include "DibGuar.h"
#include "DebugCase.h"
#if defined(DEBUGCASE)
#include "Trace.h"
#endif
using namespace std;
/// <summary>Ini... |
/*
Regression Test for the Polar Encoder and Decoders
Copyright 2020 <NAME> <<EMAIL>>
*/
#include <limits>
#include <random>
#include <chrono>
#include <cassert>
#include <iomanip>
#include <iostream>
#include <algorithm>
#include <functional>
#include "polar_helper.hh"
#include "polar_decoder.hh"
#include "polar_enc... |
// Copyright(c) 2018, <NAME>ATION. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by appli... |
#include "lock_manager.hpp"
// STATIC VARIABLES.
std::vector<trx_t*> trx_system_t::table = std::vector<trx_t*>();
pthread_mutex_t trx_system_t::latch = PTHREAD_MUTEX_INITIALIZER;
pthread_mutex_t lock_hash_table_t::table_latch = PTHREAD_MUTEX_INITIALIZER;
// MEMBER FUNCTIONS.
lock_t::lock_t(int table_id, pagenum_t ... |
#include <memory.h>
#include <ctime>
#include <cstdio>
#include <cstdlib>
#include <climits>
#include <cctype>
#include <cstring>
#include <climits>
#include <cmath>
#include <vector>
#include <string>
#include <memory>
#include <numeric>
#include <limits>
#include <functional>
#include <tuple>
#include <set>
#include ... |
#include "BreakOutApp.h"
#include "Texture.h"
#include "Font.h"
#include "Input.h"
#include <glm\ext.hpp>
#include <Gizmos.h>
BreakOutApp::BreakOutApp()
{
}
BreakOutApp::~BreakOutApp()
{
}
bool BreakOutApp::startup()
{
aie::Gizmos::create(255U, 255U, 65535U, 65535U);
m_2dRenderer = new aie::Renderer2D();
m_... |
#include "interpreter.h"
void interpreter::makeRelations(){
vector<predicate> schemes = Data.returnVector("scheme");
for(unsigned i=0; i<schemes.size(); ++i){
vector<parameter> attributes = schemes.at(i).getParams();
scheme schemer;
for(unsigned j=0; j<attributes.size(); ++j){
... |
#include <atomic>
#include <string>
#include <boost/thread.hpp>
#include <boost/filesystem/path.hpp>
#include <QMessageBox>
#include "include_base_utils.h"
#include "console_handler.h"
#include "common/types.h"
#include "common/ntp_time.h"
#include "common/util.h"
#include "crypto/hash.h"
#include "cryptonote_core/... |
/*
Copyright (C) 2003-2013 by <NAME> <<EMAIL>>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercia... |
/*MIT License
Copyright (c) 2018 <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribu... |
#include "AGMesh.h"
#include <fstream>
#include "Managers/AGLogger.h"
#include "AGMaterial.h"
#include "Engine/Graphics/Objects/Shapes/AGBoxShape.h"
#include "Graphics/Interfaces/AGSurface.h"
#include "AGCamera.h"
#include "Engine/Graphics/Objects/AGShader.h"
#include <Engine/Graphics/Objects/AGBuffer.h>
#include "... |
/*
* @CopyRight:
* FISCO-BCOS is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* FISCO-BCOS is distributed in the hope that it ... |
#include <iostream>
#include <tclap/CmdLine.h>
#include "obj/ObjReader.h"
#include "container/Array3D.h"
#include "container/Space.h"
#include "test/PolygonTest.h"
#include "util/Hdf5Writer.h"
#include <mutex>
struct CamPoses {
dPoint camPos;
dPoint towardsPose;
dPoint upPos;
double xFov;
double yFov;
};
std::... |
#include <new_exe/messageService/messages/audioMessage.h>
#include <new_exe/messageService/messages/screenMessage.h>
#include <new_exe/window.h>
#include <cstddef>
#include <new_exe/messageService/messageService.h>
#include <new_exe/messageService/messages/coreMessage.h>
#include <new_exe/imguiManager.h>
#include <img... |
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/Optional.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/MC/MCAsmInfo.h"
#include "llvm/MC/MCContext.h"
#include "llvm/MC/MCInst.h"
#include "llvm/MC/MCInstrInfo.h"
#include "llvm/MC/MCInstrAnalysis.h... |
// This test is written with an aim to check that experimental::printf behaves
// in the same way as printf from C99/C11
//
// The test is written using conversion specifiers table from cppreference [1]
// [1]: https://en.cppreference.com/w/cpp/io/c/fprintf
//
// UNSUPPORTED: hip_amd
// FIXME: The 'short' type gets ove... |
#include <opencv2/objdetect/objdetect.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/core/core.hpp>
#include <string>
#include <cctype>
#include <iostream>
#include <fstream>
#include <iterator>
#include <stdio.h>
#include "svg_image.h"
#include "face_feed.h"
us... |
/**
* @file utils.cpp
* @author vss2sn
* @brief Contains the structs, classes and functions used for the set up of the
* problem aand solution as well as some functions that aid in debugging.
*/
#include "cvrp/utils.hpp"
#include <algorithm>
#include <iostream>
#include <limits>
#include <random>
#include <tuple... |
#include "b5l_gateway_viewer.hpp"
#if WIN32
const char *FilePath = "C:\\Users\\jack\\Dropbox\\Projects\\Cpp\\B5L_"
"GatewayViewer\\build\\Debug\\file_in.pcd";
#else
const char *FilePath = "/home/zeroxcorbin/file_in.pcd";
#endif
pcl::PointCloud<pcl::PointXYZ>::Ptr
cloudIn_(new pcl::PointClou... |
#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <iostream>
#include <sstream>
#include <exception>
#include <stdexcept>
#include <QFileDialog>
#include <QWheelEvent>
#include <QTableView>
#include <QtSvg>
#include <QSvgGenerator>
#include <QDebug>
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(p... |
#include <torch/extension.h>
#include <torch/csrc/autograd/variable.h>
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
#include <pybind11/operators.h>
#include "common.h"
namespace py = pybind11;
using namespace pybind11::literals;
using namespace std::string_literals;
TT variable(TT t) { return torch::autog... |
// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "config.h"
#include "base/compiler_specific.h"
MSVC_PUSH_WARNING_LEVEL(0);
#include "Document.h"
#include "DocumentLoader.h"
#include ... |
/*
* Worker.cpp
*
* Created on: Nov 6, 2017
* Author: <NAME>
*/
#include "Worker.h"
#include "Tape.h"
#include <time.h>
using namespace std;
Worker::Worker() {
srand(time(NULL));
m_printInfo = false;
}
Worker::~Worker() {
}
void Worker::sort2plus2(string tapeName) {
/* Open original unsorted tape */
... |
#include <algorithm>
#include <cassert>
#include <cstdio>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <cstring>
#include <map>
#include <queue>
using namespace std;
int source = 0;
int sink = 1;
int SZ;
int C[50][50], F[50][50];
inline int left(int x) {
re... |
/*
------------------------------------- Credits -----------------------------------------------------------------
Generalized National Airspace Trajectory Simulation (GNATS) software
2017-2021 GNATS Development Team at Optimal Synthesis Inc. are:
Team Lead, Software Architecture and Algorithms: Dr. <NAME>
Algorithms a... |
#include "worker.h"
#include "resourcemanager.h"
#include "kpage.h"
#include "canvas.h"
#include "selection.h"
#include "util.h"
#include "config.h"
#include <list>
#include <iostream>
#if QT_VERSION >= 0x050000
# include <poppler-qt5.h>
#else
# include <poppler-qt4.h>
#endif
using namespace std;
Worker::Worker(Reso... |
/* Copyright 1989, 1990, 1994, 1995 by Abacus Research and
* Development, Inc. All rights reserved.
*/
/* Forward declarations in QuickDraw.h (DO NOT DELETE THIS LINE) */
#include <base/common.h>
#include <QuickDraw.h>
#include <MemoryMgr.h>
#include <quickdraw/cquick.h>
#include <mman/tempalloc.h>
using namespa... |
/* -*-c++-*- */
/* osgEarth - Dynamic map generation toolkit for OpenSceneGraph
* Copyright 2008-2016 Pelican Mapping
* http://osgearth.org
*
* osgEarth is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundat... |
// license:BSD-3-Clause
// copyright-holders:<NAME>, <NAME>
/******************************************************************************
BBC Model B
MESS Driver By:
<NAME>
<EMAIL>
This is the first go around at converting the BBC code over to using
mames built in mc6845, there are a number... |
// $Id: cxi.cpp,v 1.1 2020-11-22 16:51:43-08 - - $
#include <iostream>
#include <memory>
#include <string>
#include <unordered_map>
#include <vector>
#include <fstream>
using namespace std;
#include <libgen.h>
#include <sys/types.h>
#include <unistd.h>
#include "protocol.h"
#include "logstream.h"
#include "sockets.h... |
//////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2017 <NAME> (EpicBrownie)
//
// Distributed under The MIT License (MIT).
// (See accompanying file License.txt or copy at
// https://opensource.org/licenses/MIT... |
#include <iostream>
#include <cmath>
#include <opencv2/opencv.hpp>
#define QTD_MEDIAS 20
#define AUM_SATPAD 1.3
#define RANGE 0.3
#define SLIDER_MAX 100
using namespace cv;
using namespace std;
char TrackbarName[50];
float alfa;
int altReg_slider = 0;
int decaim_slider = 0;
int posica_slider = 0;
Mat desfoque, d... |
#include "EditorLayer.h"
#include "ImGui/imgui.h"
#include "glm/gtx/transform.hpp"
#include <thread>
#include <mutex>
#include <fstream>
#if defined(_WIN64)
//#include <cstdlib> // std::system
#include "Windows.h" // WinExec
#endif
//Scripts
#include "Scripts/CameraController.h"
//// Python Embedding At... |
#include <iostream>
#include <vector>
#include <iomanip> // For nice outputs (setw)
#include <string> // To definte the file_name for exporting data
#include <sstream>
#include <tuple>
#include <unsupported/Eigen/MatrixFunctions> // To use the exponential function
#include "Eigen/Dense"
// Include parser
#include "R... |
/*! \file
* \brief Provide Python bindings and helper functions for setting up restraint potentials.
*
* There is currently a lot of boilerplate here that will be generalized and removed in a future version.
* In the mean time, follow the example for EnsembleRestraint to create the proper helper functions
* and in... |
#include <iostream>
#include <vector>
#include <string>
#include <fstream>
#include <cmath>
#include "absmc3D.h"
using namespace absmc;
using namespace absmc::graphics;
using util::createFileName;
using util::parseFileName;
using util::config;
using std::cout;
using std::cerr;
using std::endl;
typedef Point<3, dou... |
#include <iostream>
#include <cstdlib>
#include <cstdio>
#include <fstream>
#include <sstream>
#include <filesystem>
#include "logparser.h"
#ifdef WINDOWS
#include <windows.h>
#include <codecvt>
#include <locale>
#endif
#define SOFTWARE_VERSION "0.0.1"
#ifdef WINDOWS
char* optarg = NULL;
int optind = 1;
int getopt(... |
/*
FFT_display.cpp
*/
#include <Arduino.h>
#include "FFT_display.h"
FFT_display::FFT_display() {
//_pin = 1;
//pinMode(_pin, OUTPUT);
}
void FFT_display::begin() {
// Serial.begin(115200);
pinMode(analog_pin, ANALOG);
//analogReadResolution(12); // ADCを12bitに設定
//analogSetAttenuation... |
//===- StdExpandDivs.cpp - Code to prepare Std for lowring Divs 0to LLVM -===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
/*
* TestVM.cpp - Test for VM
*
* Copyright (c) 2008 Higepon(<NAME>) <<EMAIL>>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright... |
#include <cmath>
#include <cstdlib>
#include <fstream>
#include <iostream>
#include <unordered_map>
#include <vector>
using std::cerr;
using std::cout;
using std::endl;
using std::getline;
using std::ifstream;
using std::ios;
using std::size_t;
using std::sqrt;
using std::string;
using std::unordered_map;
using std::v... |
//
// File: BppORateDistributionFormat.cpp
// Created by: <NAME> and <NAME>
// Created on: Fri 16 november 2012, at 13:44
//
/*
Copyright or © or Copr. Bio++ Development Team, (November 16, 2004)
This software is a computer program whose purpose is to provide classes
for phylogenetic data analysis.
This ... |
/* Copyright (c) 2010, 2015, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; version 2 of the License.
This program is distributed in t... |
#include "instruction_tree/evaluator.hpp"
//SELF
#include "interpreter_internal.hpp"
//STD
#include <algorithm>
#include <cassert>
#include <cmath>
using namespace element;
static void add_to_cache(instruction_cache_value* cache_value, element_value value)
{
if (cache_value) {
cache_value->value = value... |
#include <iostream>
#include <opencv2/core/core.hpp>
#include <opencv2/features2d/features2d.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/calib3d/calib3d.hpp>
#include <Eigen/Core>
#include <Eigen/Dense>
#include <Eigen/Geometry>
#include <Eigen/SVD>
#include <ceres/ceres.h>
#include <chrono>
#include ... |
/******************************************************************************\
* This program is a distributed version of the math_actor example. *
* Client and server use a stateless request/response protocol and the client *
* is failure resilient by using a FIFO request queue. *... |
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*-
* vim: set ts=8 sts=2 et sw=2 tw=80:
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
... |
// ClassInfoAction.cpp: implementation of the CClassInfoAction class.
//
// Copyright (c) 1997-2001 Microsoft Corporation, All Rights Reserved
//
//////////////////////////////////////////////////////////////////////
#include "precomp.h"
#include "ClassInfoAction.h"
#include "ExtendString.h"
#include "E... |
/*
Author: <NAME>
Purpose: This is an implementation file for the HuffmanTree.hpp. It defines the member
function and utility functions for the huffman tree using map, deque
and heap priority queue.
*/
#include "HuffmanTree.hpp"
/*Destructor specifically deallocate the huffman tree after the decoding */
Huf... |
#include "gateway-stat.h"
#include <sstream>
#include <iomanip>
#include "utildate.h"
#include "utilstring.h"
#include "errlist.h"
/**
* Create empty gateway statistics
*/
GatewayStat::GatewayStat()
: addr(""), socket(0), name(""), gatewayId(0), errcode(0),
t(0), // UTC time of pkt RX, us precision, ISO 8601 ... |
#include "autopilot.h"
#include <algorithm>
#include <unistd.h>
#include <math.h>
#include <stdlib.h>
#include <iostream>
#include "arduino-serial-lib.h"
#include "ros/ros.h"
#include "std_msgs/String.h"
double rad_to_degrees(double x);
Autopilot::Autopilot() {
ioboard = serialport_init("/dev/ttyACM0", 115200);
... |
/* information about observing circumstances including time and location from GPS or manually entered.
* use Serial1 hardware RX1/TX1 for Adafruit GPS shield on Mega.
*/
#include "Circum.h"
// serial configuration for GPS
#define GPS_TX_PIN 13 // not needed
#define GPS_RX_PIN 12
#define GPS_INVERT false
#define G... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <unistd.h>
#include <ctype.h>
#include <limits>
#include "fftbor2d_params.h"
#ifdef _OPENMP
#include <omp.h>
#endif
#define MAX_LENGTH 1024
#define TRIEQUALS(x, y, z) ((x == y) && (y == z)) /* Transitivity (BOOM) */
FFTBOR2D_PARAMS... |
#include <bangtal>
#include <iostream>
using namespace bangtal;
using namespace std;
enum class State {
BLANK,
POSSIBLE,
BLACK,
WHITE
};
enum class Turn {
PLAYER, // black
COMPUTER // white
};
static Turn turn;
ObjectPtr board[8][8];
State boardState[8][8];
TimerPtr timer;
void setState(int y, int x, St... |
/* Copyright (c) 2011, 2020, Oracle and/or its affiliates.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2.0,
as published by the Free Software Foundation.
This program is also distributed with certain software (including... |
/* Copyright 2017 Gibbon aka 'atsb'
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or ... |
#include "opencv2/core.hpp"
#include "opencv2/imgcodecs.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/aruco.hpp"
#include "opencv2/aruco/dictionary.hpp"
#include "opencv2/calib3d/calib3d.hpp"
#include "opencv2/video/tracking.hpp"
#include "opencv2/features2d/featur... |
#include <chrono>
#include <dirent.h>
#include <sys/stat.h>
#include "polysort.h"
#include "CollatedPartitions.h"
#include "PartitionList.h"
#include "PolyCiphertext.h"
#include "PartitionBins.h"
#include "PartitionSampler.h"
inline bool file_exists (const char* name) {
struct stat buffer;
return (stat(name, &buff... |
#include <map>
#include <list>
#include <deque>
#include <cmath>
#include <chrono>
#include <limits>
#include <vector>
#include <utility>
#include <fstream>
#include <iostream>
#include <stdexcept>
#include <algorithm>
#include <unordered_map>
// Could be very efficient, finishes all the examples, but fails on the rea... |
//=====================================================================//
/*! @file
@brief ファースト・サンプル(LED 点滅) @n
RX64M, RX71M: @n
12MHz のベースクロックを使用する @n
P07 ピンにLEDを接続する @n
RX65N (Renesas Envision kit RX65N): @n
12MHz のベースクロックを使用する @n
P70 に接続された LED を利用する @n
RX63T @n
12MHz のベース... |
// LDAP Directory Services
//
// File: config_init.cpp
// Module: LDAP.DLL
// Author: <NAME>, Ph.D.
// Version: 1.0
// Copyright 08/25/1997 Qualcomm Inc. All Rights Reserved.
/* Copyright (c) 2016, Computer History Museum
All rights reserved.
Redistribution and use in source and binary forms, with or wi... |
/**
@file Game.cpp
@brief Main Class of the Simple Pong Game
@author <NAME>
@date 01/11/2015
*/
#include "Game.h"
/**
@brief Constructor of the Game class. Creates the Render Window, Load the resources and initialize the game.
@return Game
*/
Game::Game(void)
{
//init flag states
playerWantToExit = leftKeyPressed... |
/**
* \file theta_cut_sigmas.cpp
* \brief Draws CS given yields as input.
*
*/
#include <numeric>
#include "TROOT.h"
#include "TLegend.h"
#include "cli.hpp"
#include "init_ds.hpp"
#include "consts.hpp"
#include "csalg.hpp"
#include "beam.hpp"
#include "drawing.hpp"
#include "cuts_conf.hpp"
#include "rootscri... |
/**
The Walk of Life - OpenGL 3D Project
* Micluta - <NAME>
* <NAME>
* <NAME>
* Grupa 252
*/
#include <GL/glew.h>
#include <GL/freeglut.h>
#include <cmath>
#include <ctime>
#include "Models/Player.h"
#include "Views/GroundView.h"
#include "Views/HomeView.h"
//#include "Views/Mis... |
////////////////////////////////////////////////////////////////////////////////
// Copyright(c) Kingsoft
//
// FileName : KGU_Public.cpp
// Version : 1.0
// Creator : <NAME>
// Create Date : 2009-5-18 17:02:28
// Comment :
//
//////////////////////////////////////////////////////////////... |
#include <ATen/ATen.h>
#include <ATen/Parallel.h>
#include <ATen/native/quantized/cpu/embedding_packed_params.h>
#include <ATen/native/quantized/cpu/fbgemm_utils.h>
#include <torch/library.h>
torch::class_<EmbeddingPackedParamsBase> register_embedding_params();
namespace at {
namespace native {
namespace {
Tensor q... |
/* Copyright 2020 Stanford, Tsinghua
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... |
/// @file
/// @brief Implements a VGA text-mode terminal.
//#define ENABLE_TRACING
#include "vga_terminal.h"
#include "processor/processor.h"
/// @brief Construct a new VGA-type terminal.
///
/// @param keyboard_pipe Pipe that stdin should be written to after processing.
///
/// @param display_area_virt Base address... |
/*
* This file belongs to the Galois project, a C++ library for exploiting
* parallelism. The code is being released under the terms of the 3-Clause BSD
* License (a copy is located in LICENSE.txt at the top-level directory).
*
* Copyright (C) 2018, The University of Texas at Austin. All rights reserved.
* UNIVER... |
#include <stdio.h>
#include <string.h>
#include <fstream>
#include <iostream>
#include <string>
#include <ShaderDebugger/Utils.h>
#include <ShaderDebugger/Texture.h>
#include <ShaderDebugger/GLSLLibrary.h>
#include <ShaderDebugger/GLSLCompiler.h>
#include <ShaderDebugger/HLSLLibrary.h>
#include <ShaderDebugger/HLSLCom... |
#pragma once
#include "IAppSystem.hpp"
#include "IVModelRender.hpp"
#define DECLARE_POINTER_HANDLE(name) struct name##__ { int unused; }; typedef struct name##__ *name
#define MAXSTUDIOSKINS 32
#define TEXTURE_GROUP_LIGHTMAP "Lightmaps"
#define TEXTURE_GROUP_WORLD "World textures"
#define TEXTU... |
/******************************************************************************
* Copyright (c) 2018, ACES Lab, Univesity of California San Diego, CA, US.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following cond... |
#include <maycloud/asyncwebserver.h>
/**
* Конструктор
*/
AsyncWebServer::AsyncWebServer(NetDaemon *daemon) {
_daemon = daemon;
_server_id = "libmaycloud/0.1 (github.com/orgtechservice)";
_logger = defaultRequestLogger;
get("/", & defaultRequestHandler, (void *) this);
}
/**
* Деструктор
*/
AsyncWebServer::~Async... |
/*
Данный код не распространяется свободно
:DV company 2016
*/
// VERSION: 0.29.0
// LAST UPDATE: 26.05.2016
#include "conf_lang.h"
using namespace std;
bool always_read = false, edit_found_value = false;
vector <string> main_config_base;
bool save_commit(unsigned int first_pos,string line) {
for (unsigned int... |
#include "Cube.h"
using namespace MeshReconstruction;
namespace
{
// Cube has 8 vertices. Each vertex can have positive or negative sign.
// 2^8 = 256 possible configurations mapped to intersected edges in each case.
// The 12 edges are numbered as 1, 2, 4, ..., 2048 and are stored as a 12-bit bitstring for each c... |
// Copyright (c) 2014-2017 <NAME>
// SPDX-License-Identifier: BSL-1.0
#include "PeriodogramDisplay.hpp"
#include <Pothos/Framework.hpp>
#include <Pothos/Proxy.hpp>
#include <iostream>
/***********************************************************************
* |PothosDoc Periodogram
*
* The periodogram plot displays... |
#include <xsi_application.h>
#include <xsi_context.h>
#include <xsi_desktop.h>
#include <xsi_status.h>
#include "FabricDFGPlugin.h"
#include "FabricDFGWidget.h"
#include "FabricDFGOperators.h"
#include "FabricDFGUICmdHandlerDCC.h"
#include <QtGui/QApplication>
#include <QtGui/QDialog>
#include <QtGui/QBoxLayout>
#inc... |
#include <iostream>
#include <SFML/Graphics.hpp>
#include <vector>
#include <cmath>
#include <stdio.h>
#include "Rendering.h"
#include "world_chunk.h"
#include "SimplexNoise.h"
const int width = 1920;
const int height = 1080;
const int chunk_width = 3;
const int fps = 60;
const int chunk_size = 16;
int main() {
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.