text
stringlengths
3.08k
12.5k
// // Created by felix on 01.03.19. // #include <sensor_model_evaluator_node.h> using namespace tuw; SensorModelEvaluatorNode::ParametersNode::ParametersNode( const ros::NodeHandle &nh ) { this->nh = nh; nh.param( std::string( "out_filename" ), filepath, std::string( "" )); nh.param( std::string( "laser_topic" ...
#include "p2Defs.h" #include "p2Log.h" #include "j1App.h" #include "j1Render.h" #include "j1Audio.h" #include "j1Textures.h" #include "j1Coin.h" #include "j1Window.h" #include "j1Map.h" #include "j1Input.h" #include "j1Collider.h" #include "j1Scene.h" #include "j1EntityManager.h" #include <math.h> #include "..//Brofile...
#ifdef __EMSCRIPTEN__ #include <emscripten.h> #include <emscripten/html5.h> #include "engine.h" #else #include "include/engine.h" #endif engine e; game_clock clk; physics p; float pitch, yaw; float sensitivity = 1.0f; bool running = true; color3f white; color3i red; color3i green; color3i blue; vec3d nullpos; ve...
/* ************************************************************************ * Copyright 2021 Advanced Micro Devices, Inc. * ************************************************************************ */ #pragma once #include "../rocsolvercommon/rocsolver_arguments.hpp" #include <map> #include <string> #include "testi...
//====== Copyright 1996-2005, Valve Corporation, All rights reserved. ======= // // Purpose: // //============================================================================= #include "vpc.h" #include "projectgenerator_codelite.h" #ifdef WIN32 #include <direct.h> #define mkdir(dir, mode) _mkdir(dir) #define getcw...
#include "../utils/HiveMindBridgeFixture.h" #include "../utils/Logger.h" #include "../utils/TCPClient.h" #include "hivemind-bridge/HiveMindBridge.h" #include <atomic> #include <gmock/gmock.h> #include <pheromones/FunctionCallArgumentDTO.h> #include <pheromones/FunctionCallRequestDTO.h> #include <pheromones/HiveMindHos...
#include "wall.h" #include "util.h" Wall::Wall() { } Wall::Wall(float x, float y) { glm::vec3 pos = glm::vec3(x, 0, y); glm::vec2 dir = glm::vec2(0, 0); setPos(pos); setDir(dir); } Wall::Wall(float x, float y, float z) { glm::vec3 pos = glm::vec3(x, z, y); glm::vec2 dir = glm::vec2(0, 0); setPos(pos); se...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <limits.h> #include <map> #include <vector> #include <algorithm> extern "C" { #include "pair_mat.h" #include "fold.h" } #include "RNAlocmin.h" #include "move_set_pk.h" #include "neighbourhood.h" using namespace std; // reads ...
//---------------------------------------------------------------------------- /** @file GoUctLadderKnowledge.cpp See GoUctLadderKnowledge.h */ //---------------------------------------------------------------------------- #include "../smartgame/SgSystem.h" #include "../gouct/GoUctLadderKnowledge.h" #include "../...
//////////////////////////////////////////////////////////////////////////////// /// @brief vocbase context /// /// @file /// /// DISCLAIMER /// /// Copyright 2014 ArangoDB GmbH, Cologne, Germany /// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany /// /// Licensed under the Apache License, Version 2.0 (the "License...
#include <Player.hpp> #include <iostream> #include <cassert> const float Player::PlayerSpeed = 200.f; const float Player::BEAM_WIDTH = 10.f; const float Player::BEAM_HEIGHT = 50.f; const float Player::MAX_FUEL = 1000.f; const float Player::DECREASE_FUEL = 0.5f; const sf::Time Player::SHOOT_RATE = sf::seconds(0.5f); co...
/* Copyright 2007 nVidia, Inc. 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 to in writing, software...
/* * Scrolls.cc for the Legend of Saladir * (C) 1997/1998 <NAME> * * This contains scroll specific routines * */ #include "saladir.h" #include "output.h" #include "types.h" #include "magic.h" #include "player.h" #include "scrolls.h" /* local prototypes */ void scroll_rumour(void); void scroll_blank(void); void...
#include "detailed/placement_problem.hpp" #include <iostream> #include <stack> #include <limits> #include <chrono> const branching_rule rule = BRULE; std::pair<placement_problem, std::vector<point> > input_placement_problem(){ int bxmn, bymn, bxmx, bymx; std::cin >> bxmn >> bymn >> bxmx >> bymx; rect b...
// // Created by Developer on 12/16/2015. // #include "../header/unit.h" using namespace nana; void cst::show_form() { form form; label label(form, rectangle(0, 0, 100, 20)); label.caption(STR("Welcome to GUI world !")); form.show(); exec(); } void cst::show_quite() { form form; button b...
/* Copyright (c) 2010, Yahoo! Inc. All rights reserved. Redistribution and use of this software 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 copyright notice, this list of conditions and ...
#pragma once #include <cmath> #include <vector> #include "ridgelet/construction/translation_grid.hpp" #include "ridgelet/ridgelet_cell_array.hpp" #include "ridgelet/ridgelet_frame.hpp" #include "ridgelet/rt.hpp" class RCLinearize { public: RCLinearize(const RidgeletFrame &rf); template <typename T> std::vec...
/** * Copyright (C) 2021 - 2022 The MRH Project Authors. * * 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 ...
// Copyright 2016-2019 <NAME>. See LICENSE file for terms. #include <cassert> #include <cstdlib> #include <iostream> #include <libpharos/prologimpl.hpp> #include <libpharos/enums.hpp> #include "prolog_test.hh" // Used for testing conversion of random pointers struct Foo {}; struct Bar {}; // Used for testing conve...
#include "../lib/CNFGenerator.h" #include "../lib/MiniSatRunner.h" struct NonogramData{ int H, W; std::vector<std::vector<int> > rowHint, columnHint; NonogramData() {} void scan(FILE *file) { fscanf(file, "%d%d", &H, &W); rowHint.assign(H, std::vector<int>()); columnHint.assign(W, std::vector<in...
#include <numeric> #include <functional> #include <iostream> #include <string> #include <vector> #include <map> #include <iomanip> #include <fstream> #include <cctype> #include <set> #include <iterator> #include <algorithm> #include <sstream> #include <omp.h> #include <stdlib.h> using namespace std; //map<int, map<st...
#include "modelimporter.h" #include <QDebug> #include <irrXML.cpp> #include <zlib.h> #include <assimp/scene.h> #include <assimp/postprocess.h> #include <assimp/Importer.hpp> ModelImporter::ModelImporter() { } void ModelImporter::getBufferData(QVector<float>** vertices, QVector<float>** normals, QVector<uint>** ind...
struct SHA1Processor { SHA1Processor() { // have to copy this data manually, as VS2013 doesn't support member array initialisers const uint32 initialState[] = { 0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476, 0xc3d2e1f0 }; std::memcpy (state, initialState, sizeof (state)); } // ...
/* * Copyright (c) 2016, Nagoya University * 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 copyright notice, this * list ...
#include "PidController.h" #include <cassert> #include <cmath> #include <iomanip> #include <iostream> namespace { // Local Constants // ----------------------------------------------------------------------------- // Target CTE margin w.r.t. the off track CTE const auto kTargetCteMargin = 0.65; // Max vehicle speed...
// Copyright (c) 2009 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. // http://code.google.com/p/chromium/wiki/LinuxSUIDSandbox #include <asm/unistd.h> #include <errno.h> #include <fcntl.h> #include <sched.h> #include ...
// Copyright (c) 2013 The Chromium OS 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 "salsa/try_touch_experiment/property.h" using base::SplitString; using base::StringPrintf; using std::string; using std::vector; Propert...
#include <iostream> #include <fstream> #include <curl/curl.h> static size_t Stringify(void*, size_t, size_t, void*); int Dot() { //prototypes void Header(std::ofstream*); void Footer(std::ofstream*); void Node(CURL*, std::ofstream*, std::string, unsigned int); //constants const char* DOT_NAME = "map.d...
/** * Copyright 2019 United Kingdom Research and Innovation * * Authors: See AUTHORS * * Contact: [<EMAIL> and/or <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 ...
#include "comdb2ar.h" #include "increment.h" #include "error.h" #include "riia.h" #include "file_info.h" #include <string> #include <cerrno> #include <cstring> void write_incr_manifest_entry(std::ostream& os, const FileInfo& file, const std::vector<uint32_t>& pages) // Serialise a Fil...
#include <iostream> #include <map> #include "string" #include "vector" struct date{ int day; int month; int year; }; int dday(date dt){ int a = (14-dt.month)/12; int y = dt.year; int m = dt.month+12*a-3; return (dt.day+(153*m+2)/5+365*y+y/4-32083)%7; } int first(date dt, int lookingFor){ ...
#include "data.hpp" #include "json-c/json.h" #include <cstring> #include <windows.h> std::vector<game_info> game_data::games_list; sf::Font game_data::font; int game_data::playable_minutes; #define DEFAULT_PLAYTIME 15 /** Loads a list of games from a file. This uses json.h,v 1.6 to parse the file, and it's expec...
/* * Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU GPL v2 license, you may redistribute it and/or modify it under version 2 of the License, or (at your option), any later version. */ #include "PvpValues.h" #include "BattlegroundMgr.h" #include "BattlegroundEY.h" #include "BattlegroundWS.h...
#include <array> #include <type_traits> #include <variant> #include <vector> #include "box.hpp" #include "build_parameters.hpp" #include "camera.hpp" #include "constant_medium.hpp" #include "hitable.hpp" #include "material.hpp" #include "ray.hpp" #include "rectangle.hpp" #include "rtweekend.hpp" #include "sphere.hpp" ...
#include <iostream> #include <math.h> #include "random_generator.hpp" //#include "constants.hpp" #include "bee.hpp" // Convert from degrees to radians float getRadians(float degrees){ return (degrees * constants::PI_C) /180; } // Get the position in X axis given a radious and an angle float getXCircunference(Bee &...
SDD1 sdd1; #include "decompressor.cpp" #include "serialization.cpp" auto SDD1::unload() -> void { rom.reset(); } auto SDD1::power() -> void { //hook S-CPU DMA MMIO registers to gather information for struct dma[]; //buffer address and transfer size information for use in SDD1::mcuRead() bus.map({&SDD1::dmaRea...
/* * This file is part of the OpenKinect Project. http://www.openkinect.org * * Copyright (c) 2010 individual OpenKinect contributors. See the CONTRIB file * for details. * * This code is licensed to you under the terms of the Apache License, version * 2.0, or, at your option, the terms of the GNU General Public...
/** * knights tour.h * * By <NAME>, 2019. */ #include <iostream> #include <array> #include <utility> #include <cassert> namespace dcp::day064 { template<int N> class KnightsTour final { // The types of moves that a knight can make: enum KnightMoves { NONE = 0, NNE, ...
#include "Temp.h" Temp::Temp() { #ifdef TEMP_DALLAS_ENABLE this->oneWire = new OneWire(TEMP_DALLAS_PIN); this->sensors = new DallasTemperature(this->oneWire); for (int i=0; i<TEMP_DALLAS_MAX_MODULE; i++) { lastMQTTMessDallas[i] = 0; } #endif #ifdef TEMP_SECONDARY_E...
// --------------------------------------------------------------------------- // Created by <NAME> on 20/08/11. // Copyright 2011 - Under creative commons license 3.0: // Attribution-ShareAlike CC BY-SA // // This software is furnished "as is", without technical support, and with no // warranty, express or imp...
/* * gnss_nmea.cpp - NMEA's GGA sentence * Copyright 2017 Sony Semiconductor Solutions Corporation * * 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 * version 2...
// // Copyright (c) 2016 - 2017 Mesh Consultants Inc. // 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, ...
#include "Base64.h" #include <fstream> #include <httplib.h> #include <iostream> #include "randutils.hpp" #include <chrono> #pragma comment(lib, "libcrypto.lib") #pragma comment(lib, "libssl.lib") using namespace std; string alpha = "ABCDEFGHIJKLMNOPQRSTUVWXYZ-abcdefghijklmnopqrstuvwxyz_"; long long int loops = 1; voi...
#pragma once #include "appframework/iappsystem.hpp" class IConVar; class CCommand; class ConVar; // The default, no flags at all #define FCVAR_NONE 0 // Command to ConVars and ConCommands // ConVar Systems #define FCVAR_UNREGISTERED \ ( 1 << 0 ) // If this is set, don't add to linked list, etc. #define FCVAR_D...
/* Copyright (c) 2016 Connectal Project * * 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, publ...
#include <stdint.h> #include <string.h> #include <algorithm> #define _DISABLE_DEBUG #include "argparse.h" #include <sys/mman.h> #include <sys/errno.h> #include <unistd.h> #include <fcntl.h> #include <vector> #include "mmem.h" #include "fhandle.h" int parsehexnyble(char c) { if ('0'<=c && c<='9') return ...
#include "xrruntime.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #include <malloc.h> #include <sys/stat.h> /*** Default Runtime File ****************/ #include "xr_runtime_default.h" #include "xr_runtime_template.h" /*** Signatures **************************/ bool file_exists(const char *file); /...
/** * Copyright (c) 2016 <NAME> <<EMAIL>> * * This source file is part of Game Capture HD Linux driver and is distributed * under the MIT License. For more information, see LICENSE file. */ /* This file is for the encoding and decoding of the syntax sections * of program specific information as specified by ISO/...
/* * Copyright (C) 2018 Orange * * This software is distributed under the terms and conditions of the 'BSD-3-Clause-Clear' * license which can be found in the file 'LICENSE.txt' in this package distribution * or at 'https://spdx.org/licenses/BSD-3-Clause-Clear.html'. */ /** * @author <NAME> */ #include <algor...
#include "GBasic_Window.h" #include "GWindow.h" GBasic_Window::GBasic_Window(GBasic_Window* Parent, int Window_X, int Window_Y, int Screen_X, int Screen_Y) :GBasic_Window(Parent, { Window_X, Window_Y }, { Screen_X, Screen_Y }) {} GBasic_Window::GBasic_Window(GBasic_Window* Parent, const GSize& Window, const GPos&...
/** @file libuv_tcp_client.h * @brief * @author teng.qing * @date 2021/7/20 */ #include "uv_tcp_client.h" #include <atomic> #include <iostream> #include <memory> #include <thread> #include <unordered_map> #include "uv.h" using namespace std; #ifdef USE_LIBUV_WRITE typedef struct { uv_write_t req; uv_bu...
/* * Copyright (C) 2008-2010 <NAME> <<EMAIL>> * * This file may be distributed and/or modified under the terms of the * MIT License as described by the Open Source Initiative * (http://opensource.org/licenses/mit-license.php) and appearing in * the file COPYING included in the packaging of this software. * * Th...
// Autor: <NAME> // Last modifified on: March 11, 2019 #include "prediction.h" #include "helpers.h" using std::cout; using std::endl; // find the six cars around ego Environment::Environment(const vector<vector<double> > &sensor_fusion, const double &car_s) { // i is the sequence number in the sensor_fusion vector...
#include "WindowMonitor.h" #include "imgui.h" #include "SDL/include/SDL.h" #include "GL/glew.h" #include "DevIL/include/IL/il.h" #include "Leaks.h" WindowMonitor::WindowMonitor(std::string name, int windowID) : Window(name, windowID), fps_log(MAX_SIZE), ms_log(MAX_SIZE) { hw.cpuCores = SDL_GetCPUCount(); hw.cpuCach...
/* * Copyright (C) 2015 Open Source Robotics Foundation * * 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 appl...
#include <iostream> #include <algorithm> #include <filesystem> #include <set> #include "../util/ArgParser.h" namespace fs = std::filesystem; static const char SPACE_CHAR = ' '; static const char EOF_CHAR = char(26); enum comment { plain, comment_start, multiline_end, quote, line_comment, multiline_comment }; bo...
/* * Copyright (C) 2017 Google Inc. * * 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 agree...
#pragma once #include <stdexcept> void errhandler(const char* str, Window::Handle handle) { throw std::runtime_error(str); } //Code from: //https://msdn.microsoft.com/en-us/library/windows/desktop/dd145119(v=vs.85).aspx PBITMAPINFO CreateBitmapInfoStruct(HWND hwnd, HBITMAP hBmp) { BITMAP bmp; PBITMAPINFO pbmi; WORD...
/* //@HEADER // ***************************************************************************** // // reduce_integral.cc // DARMA/vt => Virtual Transport // // Copyright 2019-2021 National Technology & Engineering Solutions of Sandia, LLC // (NTESS). Under the terms of C...
/** * @file bridge.cpp * @author <NAME> */ #include <mutex> #include <iomanip> #include <ros/ros.h> #include <sensor_msgs/Imu.h> #include <sensor_msgs/PointCloud.h> #include <sensor_msgs/PointCloud2.h> #include <sensor_msgs/point_cloud2_iterator.h> #include <util/time.h> #include <util/point.h> #include <util/con...
// Copyright 2016 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 <errno.h> #include <sys/syscall.h> #include <unistd.h> #include <sstream> #include <string> #include <unordered_map> #include "base/debug/crash...
/* * randcrypt.cpp * Created by <chickchirik> on 09/04/2019. * See the description in randcrypt.hpp */ #include "randcrypt.hpp" #include <iostream> /* unknown namespace for static-like linker visibility reduction behaviour */ namespace { using std::string; using std::vector; /* base interface class. n...
#include "webwindow.h" #include "mainwindow.h" #include "ui_webwindow.h" #include "qdebug.h" #include "drawer.h" #include "drawerdp.h" #include "settingsdialog.h" #include "utils.h" #include <QDir> #include <QDirIterator> #include <QJsonObject> #include <QJsonArray> #include <QJsonDocument> #include <Q...
/** * * @class UBinterpolateTool * * @brief interpolation class for the unbiased energy algorithm * * This class provides the interpolation values for Carmelo's implementation * of the unbiased energy algorithm. * The function setBiasMap() reads in the interpolation table, the function * interpolate() returns ...
#include "Eyeball.h" CEyeball::CEyeball() { enemyType = IndoorEnemyType::Eyeball; width = EYEBALL_BBOX_WIDTH; height = EYEBALL_BBOX_HEIGHT; Health = EYEBALL_HEALTH; Damage = EYEBALL_DAMAGE; ClipSize = EYEBALL_BULLET_CLIPSIZE; reloadingTimeCount = GetTickCount(); this->x = x; this->y = y; nx = -1; } void CEy...
//------------------------------------------------------------------------ // Copyright 2007-2009 (c) <NAME> <<EMAIL>> // // This file is part of the ZBar Bar Code Reader. // // The ZBar Bar Code Reader is free software; you can redistribute it // and/or modify it under the terms of the GNU Lesser Public License as...
#include "pch_script.h" #include "game_base.h" #include "ai_space.h" #include "script_engine.h" #include "level.h" #include "xrMessages.h" u64 g_qwStartGameTime = 12 * 60 * 60 * 1000; float g_fTimeFactor = pSettings->r_float("alife", "time_factor"); u64 g_qwEStartGameTime = 12 * 60 * 60 * 1000; EGameIDs ParseStringTo...
/* * GeoUtils.cpp * Provides options and utilities for geodetic calculations * Created on: Jun 18, 2017 * Author: <NAME> */ #include "pch.h" #include "GeoUtils.h" using namespace std; // Constants const double PI = 3.1415926535898; const double Om = 7.2921155e-5; const double ECC = 0.0818191908426; const double...
#include "VideoStab.h" #include <cmath> #include <iostream> #include <iomanip> #include <opencv2/core.hpp> #include <opencv2/imgproc.hpp> #include <opencv2/highgui.hpp> #include <opencv2/video/tracking.hpp> using namespace std; using namespace cv; // Parameters for Kalman Filter #define Q1 0.004 #define R1 0.5 Vide...
#include <iostream> #include <rapidcheck.h> #include <chrono> #include "driver/ReedSolomon.hpp" #define BITS_PER_BYTE (8.0) #define BITS_PER_MEGABIT (1048576.0) /* * This method populates a standard vector with random or counter data * * Args: * input_data: Vector to populate data * data_length: The amoun...
#include <iostream> #include <complex> #include <random> #include <iomanip> #include "Blackbird.h" typedef std::vector<double> floatvec; typedef std::vector<std::vector<double>> floatmat; float trace(floatmat &A) { // return the trace of a real matrix float result = 0.0; for (int i=0; i < A.size(); i++...
//Bsplines file #include <Eigen/Sparse> #include <Eigen/Eigenvalues> #include <Eigen/StdVector> #include <cstdlib> #include <iostream> #include <mpi.h> #include <fstream> #include <iterator> #include <vector> #include <algorithm> #include <complex> #include <sstream> #include <math.h> #include <omp.h> #include <numeric...
// Functions to find all pairs in a list of integers that can make a given sum #include <cassert> #include <iostream> #include <vector> // Helper structs to make code more readable struct TwoSumPair { int x; int y; TwoSumPair(int a, int b) : x(a), y(b) {} }; struct ThreeSumPair { int x; int y; ...
/* Copyright 2016 Google Inc. 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 applicable law or agreed to in ...
/* // Copyright (c) 2019 Intel Corporation // // 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 "Tree.h" Tree::Tree() { } Tree::~Tree() { } void pathSumDfs(TreeNode *root, int sum, vector<int> &v, int &count) { if (root == NULL) return; v.push_back(root->val); pathSumDfs(root->left, sum, v, count); pathSumDfs(root->right, sum, v, count); int cursum = 0; for (int j = v.size() - 1; j >...
// ** // Demo senario: // gst-launch-1.0 videotestsrc ! video/x-raw, format=BGR, width=320, height=240, framerate=30/1 ! admetadebuger type=1 id=187 class=boy prob=0.876 x1=0.1 y1=0.2 x2=0.3 y2=0.4 ! appsink // This example only show how to get adlink metadata from appsink. // So this example does not deal with any o...
#include "common.h" #include "simple_ccl.h" tf::TransformListener *listener; ros::Publisher frontiers_map_pub,frontiers_pub; std::string base_frame; int min_frontier_size_px; bool is_frontier(const nav_msgs::OccupancyGrid::ConstPtr & map, int x, int y) { int dw,dh; dw = map->info.width; dh = map->info.he...
#include <stdio.h> // for printf() #include <stdlib.h> // for malloc() #include <algorithm> #include <fstream> // for std::ifstream #include <iostream> // for std::cout #include <map> // for std::map std::vector<char> bases = {'A', 'T', 'C', 'G'}; std::map<char, char> complement_map = {{'A'...
#include <vsg/core/Auxiliary.h> #include <vsg/core/Object.h> #include <vsg/core/observer_ptr.h> #include <vsg/core/ref_ptr.h> #include <vsg/nodes/Group.h> #include <vsg/utils/CommandLine.h> #include <chrono> #include <functional> #include <iostream> #include <vector> vsg::ref_ptr<vsg::Node> createQuadTree(unsigned ...
#pragma once #include <cpp-sdl2/sdl.hpp> #include "build_config.hpp" #include <memory> #include "node.hpp" #include <glm/glm.hpp> #ifdef _WIN32 #include "gl_dx_interop.hpp" #endif #include <atomic> #include <mutex> #include <thread> #include "shader_program_manager.hpp" #include "input_command.hpp" enum vr_system...
/******************************************************************************* Copyright (c) 2012-2019 <NAME> <<EMAIL>> Copyright (c) 2015-2019 <NAME> <<EMAIL>> 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 th...
#pragma once #include <map> #include <memory> #include <functional> #include <unordered_map> #include "ab.h" #include "message/message.hpp" #include "peer_registry.hpp" #include "registry.hpp" enum State { Leader, PotentialLeader, Follower }; struct LeaderData { LeaderData() : m_last_broadcast(0) , m_pending_...
// This code is an closed-loop GPS waypoint navigation code that uses the Pure Pursuit algorithm to track #include "mixed_reality_library/mixed_reality_library.h" using namespace std; // Publisher and Subscribers ros::Publisher husky_twist_control; ros::Subscriber gps_sub; ros::Subscriber path_sub; int path_init =...
#include "TrackballCamera.hpp" #include "ige.hpp" #include <exception> #include <fstream> #include <glm/vec3.hpp> #include <glm/vec4.hpp> #include <iostream> #include <optional> using glm::vec3; using glm::vec4; using ige::asset::Material; using ige::asset::Mesh; using ige::asset::Texture; using ige::core::App; using ...
/* Copyright 2016-2020 Intel Corporation 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 to in w...
/* This file is part of Kismet Kismet 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 later version. Kismet is distributed in the ...
// Boost string_algo library substr_test.cpp file ------------------// // Copyright <NAME> 2002-2003. Use, modification and // distribution is subject to the Boost Software License, Version // 1.0. (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // See http://www.boos...
#include <bits/stdc++.h> using namespace std; using ll = long long; using ii = pair<int, int>; using vi = vector<int>; #define all(v) begin(v), end(v) #define sz(v) (int)(v).size() #define fi first #define se second #define ts to_string /* https://stackoverflow.com/a/26221725 */ template<typename ... Args> std::strin...
#include "skybox.h" #include "config.h" #include "constant.h" #include <windows.h> #include <GL/glut.h> #include <GL/glext.h> #include "vendor/SOIL/src/SOIL.h" /** * Texture Skybox **/ int textureSkybox[] = {0, 0, 0, 0, 0, 0}; float sizeSkybox = 100.0f; /** * Penggambaran Skybox **/ namespace SkyboxGL { /** *...
/************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to y...
/***************************************************************************** Copyright 2004 <NAME> 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/...
/* Copyright (c) 2012 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. */ /** @file matrix.cc * Implements simple matrix manipulation functions. */ //-------------------------------------------------------------------...
/** * Copyright Soramitsu Co., Ltd. 2017 All Rights Reserved. * http://soramitsu.co.jp * * 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/LICENS...
/*************************************************************************** * * 23.vector.capacity.cpp - test exercising [lib.vector.capacity] * * $Id$ * *************************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one or more * contri...
#include "asw_random_missions.h" #include "asw_mission_chooser_source_local.h" #include "asw_system.h" #include "asw_mission_chooser.h" #include "asw_key_values_database.h" #include "asw_mission_text_database.h" #include "asw_location_grid.h" #include "cdll_int.h" #include "asw_spawn_selection.h" #include "tie...
/** \copyright * Copyright (c) 2014, <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 copyright notice, * this list of...
/* Copyright 2020 The TensorFlow Authors. 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 applicable law or a...
#include <cstdio> #include <cmath> #include <iostream> #include <string> #include <cstring> #include <algorithm> #include <vector> #include <utility> #include <stack> #include <queue> #include <map> #define fi first #define se second #define pb push_back #define mp make_pair #define pi 2*acos(0.0) #de...
#include <ros/ros.h> #include <sensor_msgs/JointState.h> #include <boost/asio.hpp> #include <boost/asio/serial_port.hpp> #include <thread> #include <string> #include <vector> #include <functional> #include <mutex> #include <realtime_tools/realtime_publisher.h> using namespace std; using namespace boost; const stri...