text stringlengths 3.08k 22k |
|---|
#include <ros/ros.h>
#include <ros/package.h>
#include <kuka_manipulation_moveit/KukaMoveit.hpp>
#include <kuka_cv/Color.h>
#include <kuka_cv/RequestPalette.h>
#include <kuka_cv/RequestCanvas.h>
#include <std_srvs/Empty.h>
#include <visualization_msgs/Marker.h>
#include <boost/thread/thread.hpp>
// TF
#include <tf2_r... |
/*
* Copyright 2008 <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/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... |
#include "EnemyCarNode.h"
using namespace oaksleep_city_racing;
#include "SixCatsLogger.h"
#include "SixCatsLoggerMacro.h"
#include <sstream>
USING_NS_CC;
using namespace std;
static const int kGearMax = 4;
static const int kLineMax = 2;
static const int kMoveActionTag = 222;
static const int kSingleMoveDistance =... |
#include "accumulate_knn_cpu.h"
#include "accumulate_knn_grad_cpu.h"
#include <helpers.h>
#include "utils.h"
#include <torch/extension.h>
#include <string> //size_t, just for helper function
#include <cmath>
inline static float distanceWeight(const float& distsq) {
return exp(-1. * ACCUMULATE_KNN_EXPONENT * dists... |
// ref: 0x10004054
void __stdcall UiCopyProtError(int a1) { return; }
//signed int __stdcall UiCopyProtError(int *a1) { return 0; }
/* {
int v1; // eax
int v2; // eax
CHAR Buffer; // [esp+0h] [ebp-80h]
if ( DiabloUI_10005C2A() )
LoadStringA(hInstance, 0x3Fu, &Buffer, 127);
else
LoadStringA(hInstanc... |
/**************************************************************************\
*
* This file is part of the Coin 3D visualization library.
* Copyright (C) by <NAME> & Gas Technologies.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License... |
//
// Created by louis on 6/26/19.
//
#include <iostream>
#include <cstring>
#include <string>
#include <boost/tokenizer.hpp>
#include <ncurses.h>
#include <regex>
#include <bitset>
#include <sstream>
#include <iostream>
#include <assert.h>
#include <math.h>
#include <jmorecfg.h>
#include "Art.h"
#include "BitBoardUt... |
#pragma once
#include "pfm.hxx"
#include "krn.hxx"
#include <functional>
#include <memory>
#include <string>
#include <vector>
class mws_app_storage_impl;
class mws_mod_ctrl;
class mws_mod_list;
class mws_page_tab;
class mws_key_ctrl;
class mws_touch_ctrl;
class updatectrl;
class gfx_scene;
class mws_camera;
class m... |
#include "camera.hpp"
// Standard Headers
#include <utility>
#include <math.h>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtx/rotate_vector.hpp>
#include <glm/gtx/string_cast.hpp>
// Local Headers
#include "common/planet.hpp"
#include "graphics/window_size.hpp"
#include "graphics/input/key_input.hpp"
#inc... |
#include <fstream>
#include <memory>
#include <string>
#include <thread>
using std::string;
#include <boost/asio.hpp>
#include <boost/bind.hpp>
#include <CLI/CLI.hpp>
#include <libg3logger/g3logger.h>
#include "liboculus/DataRx.h"
#include "liboculus/IoServiceThread.h"
#include "liboculus/PingAgreesWithConfig.h"
#... |
#include "testApp.h"
#include "ofxSimpleGuiToo.h"
#include "RamVideo.h"
void testApp::setupGraphics() {
ofSetFrameRate(30);
ofSetVerticalSync(true);
ofEnableAlphaBlending();
ofEnableNormalizedTexCoords();
frame.loadImage("frame.png");
progressBar.loadImage("bar.png");
move.loadImage("move.png");
next... |
#include "stdafx.h"
#if defined(UNICODE)
#define _tcout std::wcout
#else
#define _tcout std::cout
#endif
using namespace Eigen;
void GenMXH() {
using namespace std;
VectorXd mxl(50), mxl1(1000), mxl2(2000), mxl3(5000), mxl4(10000);
mxl.setOnes(); mxl1.setOnes(); mxl2.setOnes(); mxl3.setOnes(); mxl4.setOnes();
mxl *... |
#include "include/branchless_enum.hpp"
#include <chrono>
#include <vector>
#include <iostream>
#include <random>
branchless_enum(branchless,
name_1,
name_2,
name_3,
name_4,
name_5,
name_6,
name_7,
... |
#include <Power.h>
#include <Wireless.h>
#include <SPI.h>
// #define DEBUG // toggle Debug Output
#ifdef DEBUG
unsigned long m_PowerHandlerDuration = 0; // store the duation of last handler run
#endif
// ######## Power measurement
const uint8_t m_CsPins[] = {4, 5, 6, 7}; // list of ADC Chip-Sele... |
#include "Powerkeypad.h"
#include "../../sys_io.h"
PowerkeyPad::PowerkeyPad(void)
{
numDigitalOutputs = 0;
numAnalogOutputs = 12; //hard coded for powerkey pro 2600 which as 12 buttons. Used to run the LED lights
numDigitalInputs = 12; //hard coded for powerkey pro 2600 which has 12 buttons. There are other units ... |
//MIT License
//
//Copyright(c) 2020 <NAME>
//
//Permission is hereby granted, free of charge, to any person obtaining a copy
//of this softwareand associated documentation files(the "Software"), to deal
//in the Software without restriction, including without limitation the rights
//to use, copy, modify, merge, publis... |
#pragma once
#include <inttypes.h>
#include <map>
#include <phosg/Encoding.hh>
#include <memory>
#include <vector>
#include "../Emulators/MemoryContext.hh"
////////////////////////////////////////////////////////////////////////////////
// Overall structure
// PEFF files have, in this order:
// ... |
/*
* Copyright (c) 2010-2015 Pivotal Software, 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 req... |
/* Copyright (c) Stanford University, The Regents of the University of
* California, and others.
*
* All Rights Reserved.
*
* See Copyright-SimVascular.txt for additional details.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated doc... |
#include <fstream>
#include <iostream>
#include <sstream>
#include <stdlib.h>
#include <tuple>
#include <vector>
void pprint(std::vector<std::tuple<int,int>> v, std::string prefix = "")
{
return;
if (prefix.size() > 0) std::cout << prefix << " :: ";
for (auto it = v.begin(); it != v.end(); ++it) {
std::tuple<int,... |
/**
@file bayes_classifier.cpp
@author <NAME>
Project 1: Bayesian Minimum Error Classification
@brief Class implementations for the BayesClassifier defined in
bayes_classifier.h.
@version Original Code 1.00 (3/8/2014) - <NAME>
*/
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~... |
//////////////////////////////////////////////////////////////////////////////////////
// This file is distributed under the University of Illinois/NCSA Open Source License.
// See LICENSE file in top directory for details.
//
// Copyright (c) 2016 <NAME> and QMCPACK developers.
//
// File developed by: <NAME>, <EMAIL>... |
/* ============================================================================
Copyright (c) 2011-2014, Institute for Microelectronics,
Institute for Analysis and Scientific Computing,
TU Wien.
-----------------
ViennaSHE - Th... |
#include "calculate.hpp"
#include "operators.h"
#include "tree.hpp"
#include "utils.hpp"
#include <iostream>
#include <stack>
#include <cmath>
void M_sanity_check(const std::vector<Cell> &cells) {
double M0 = 0;
for(size_t c = 1; c < cells.size(); c++) {
if (cells[c].nchild == 0) {
M0 += cells[c].M[0];
... |
#include <Arduino.h>
#include <WiFi.h>
#include <PubSubClient.h>
#include <Wire.h>
#include "SSD1306Wire.h"
#include <Adafruit_Sensor.h>
#include <DHT.h>
#include <DHT_U.h>
#include <Adafruit_ADS1015.h>
#define DHTPIN 18
#define DHTTYPE DHT22 // DHT 22 (AM2302)
#define USE_MQTT 1
DHT_Unified dht(DHTPIN, DH... |
#include "Board.h"
#include "randomNum.h"
#include "Move_.h"
/*
* Board is represented as a 64-bit integer
* left most digit is top left (i.e. the most significant bit):
* 0x0123456789ABCDEF:
* 0 1 2 3
* 4 5 6 7
* 8 9 A B
* C D E F
*/
uint16_t Board::forwardTable[65536];
uint16_t Board:... |
/**
* Pipeline merge sort
* <NAME>
* xdobis01
* PRL 2021
*/
#include <iostream>
#include <mpi.h>
#include <math.h>
#include <queue>
#include <fstream>
#define NUM_FILE "numbers" /// Name of the input file with numbers.
#define FIRST_P 0 /// Rank of the first process, reading "numbers" file.
#define PIPELINE_... |
#include "Chip8.hpp"
#include <cstdio>
#include <cstring>
#include <chrono>
const uint8_t Chip8::font[SIZE_FONT] = {
0xF0, 0x90, 0x90, 0x90, 0xF0, // 0
0x20, 0x60, 0x20, 0x20, 0x70, // 1
0xF0, 0x10, 0xF0, 0x80, 0xF0, // 2
0xF0, 0x10, 0xF0, 0x10, 0xF0, // 3
0x... |
// Copyright 2019 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 <stdint.h>
#include <unistd.h>
#include <memory>
#include <string>
#include <vector>
#include <base/at_exit.h>
#include <base/command_line.h... |
/// \file
/// The source for the class InstrLvlAbs.
#include <ilang/ila/instr_lvl_abs.h>
#include <ilang/util/log.h>
// Do the simplification by hashing AST sub-trees.
static const bool kUnifyAst = false;
// please design a better hash function -- HZ
// ISSUE: hash collision on large designs like AES128 function
n... |
#include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
#include <climits>
#include <iterator>
#include <cstddef>
#include <chrono>
#include <map>
#include <type_traits>
#include <iomanip>
#include <functional>
using namespace std;
using namespace std::chrono;
using namespace std:... |
#include <iostream>
#include <stdlib.h>
#include <vector>
#include <opencv2/highgui.hpp>
#include <opencv2/imgproc.hpp>
#include <opencv2/opencv.hpp>
#include <signal.h>
#include <termios.h>
#include <unistd.h>
#include "GPIOlib.h"
#define PI 3.1415926
//Uncomment this line at run-time to skip GUI rendering
//#def... |
#include <charmonia.h>
#include <visual.h>
#include <iostream>
#include <string>
#include <vector>
#include <iomanip>
#include <algorithm>
#include <memory>
#include <sstream>
#include <QApplication>
#include <QToolBar>
#include <QAction>
#include <QTextEdit>
#include <QFont>
#include <QatPlotWidgets/MultipleViewWindow... |
// Copyright 2011 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... |
/*
SDL - Simple DirectMedia Layer
Copyright (C) 1997-2011 <NAME>
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.1 of the License, or (at your option) any later version.... |
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include "rpi_ws281x/ws2811.h"
#include <execinfo.h>
#include <stdlib.h>
#include <unistd.h>
#include <chrono>
#include <csignal>
#include <iostream>
#include <string>
#include <thread>
constexpr int LED_COUNT = 300;
constexpr size_t IMAG... |
// Misc.cpp
#include <glad.h>
#include <stdio.h>
#include <float.h>
#include <stdlib.h>
#include "Draw.h"
#include "Misc.h"
// Sphere
int LineSphere(vec3 ln1, vec3 ln2, vec3 center, float radius, vec3 &p1, vec3 &p2) {
// set points intersected by line ln1,ln2 with sphere, return # intersection
vec3 base = ln... |
#include "subui.h"
#include "subtile.h"
#include <glad/glad.h>
#include <glad/glad.c>
#include <glfw/glfw3.h>
class stGraphics
{
public:
stGraphics(stGraphics const&) = delete;
stGraphics()
{
static char const* const VertexSource = {
"#version 330\n"
"unifo... |
/************************************************************************************
***
*** File Author: Dell, 2018-11-06 17:11:09
***
************************************************************************************/
#include "cpu/vision.h"
#include <stdio.h>
#include <math.h>
void crop_per_box(
const flo... |
#include "TiledFloor.h"
#include <osg/Geometry>
using namespace Turtle;
TiledFloor::TiledFloor(
const Index2D & size,
const QColor & clearColor,
const Position2D & tileSize)
{
m_texture = new osg::Texture2D;
//Create default members to avoid dereferencing null pointers
m_textureImage = new osg::Image;
m_f... |
/*
* preprocess.cpp
* $Id$
*
* Author
* <NAME> <<EMAIL>>
*
* Graph@FIT
* Department of Computer Graphics and Multimedia
* Faculty of Information Technology
* Brno University of Technology
*
* Description
*
*/
#include <cv.h>
#include "preprocess.h"
#include "lbp.h"
#include <iostream>
using na... |
/*
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 later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ... |
// http下载工具
// 作者:龚一帆
// 创建日期:2017年11月7日
#include <iostream>
#include "http_down.h"
using namespace std;
struct thpread_pack
{
int t_num;
long range_start;
long range_end;
char * FileDir;
};
long gSumLength;
long gFileLength[20];
char gURL[2048];
const int gMaxPthreadNum = 20;
int gpthreadnum=5... |
// Copyright 2015 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.
// This fuzzer is simplified & cleaned up pdfium/samples/pdfium_test.cc
#include <assert.h>
#include <limits.h>
#include <stddef.h>
#include <stdint.h>
#... |
#include "list.h"
#include "nodedata.h"
#include "employee.h"
//---------------------- testCopyConstructor --------------------------------
// Not a member function, pass by value forces a copy to be made.
// After makeEmpty, the pass by reference list will be empty, while
// the pass by value list will be the origin... |
#include"scurve_equations.cpp"
//============================== one_dof_scurve_coef ===========================
/* the main function that will be called to compute the scurve coeffients for specific trajectory with specific max limits of Pos, Vel, Acc, Jrk
input argument:
P_wpt: waypoints, ref_T: reference time fo... |
#include "qlearn.hpp"
void QLearn::init() {
sf::VideoMode video_mode(window_width, window_height);
window = std::make_shared<sf::RenderWindow>(video_mode, heading);
window->setFramerateLimit(framerate_limit);
// Set companion object
drawer = std::unique_ptr<SFMLDrawer>(new SFMLDrawer(window));
drawer->se... |
//
// Created by luoyuchu on 2020/6/20.
//
#include "exp_converter.h"
#include <bits/stdc++.h>
#include <json/json.h>
using namespace std;
int flagfirst=0;
class myNode {
public:
enum NODETYPE {OP, LEAF, CONST, TREF, SREF};
public:
NODETYPE type;
char op;
string id, expText;
... |
/*
* (C) 2006-2018 see Authors.txt
*
* This file is part of MPC-BE.
*
* MPC-BE 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.
... |
/**
* This library is an adaptation of https://github.com/geeksville/Micro-RTSP
* suited for use with the AsyncTCP library https://github.com/me-no-dev/AsyncTCP
*
*/
#include <AsyncRTSP.h>
#define getRandom() random(65536)
/**
* Sets up a new client connection / session
*
* Creates the callba... |
/*
* VGDE - Video Game Development Environment
* Copyright (c) 2020-2021 <NAME>
*
* 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 s... |
/*
* File: letterboxedsolver.cpp
* Author: <NAME>
* ---------------------------
* This is a program to solve the NY Times online puzzle Letter Boxed
* (https://www.nytimes.com/puzzles/letter-boxed).
*
* The NY Times says they use the Oxford English Dictionary, for which I could
* not find a text file with all r... |
/* @flow */
// Copyright (c) 2012-2013 The PPCoin developers
// Copyright (c) 2015-2017 The PIVX Developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "kernel.h"
#include <uint256.h>
#include <primitives/tran... |
/*========================================================================*
* *
* Distributed by Whiteley Research Inc., Sunnyvale, California, USA *
* http://wrcad.com *
* Copyright (... |
//**************************************************************************************
//Formant Filter Module for VCV Rack by Autodafe http://www.autodafe.net
//
//And part of code Public source code by <EMAIL>
//on musicdsp.org: http://www.musicdsp.org/showArchiveComment.php?ArchiveID=110
//**********************... |
/*
MIT License
Copyright (c) 2021 <NAME> <<EMAIL>>
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, publis... |
//
// Created by Gebruiker on 23/12/2020.
//
#include "Temple_scene.h"
#include "../backgrounds/temple_input.h"
#include "../sprites/pink_guy_sprites.h"
#include "../sprites/owlet_sprites.h"
#include "../sprites/dude_sprites.h"
#include "../sounds/coinsound.h"
std::vector<Sprite *> Temple_scene::sprites(){
std... |
#include <iostream>
#include "find-rectangle.hpp"
using namespace std;
//////////////////////////////////////////////////////////////////////
// img: CV_8UC1 or CV_8UC3
// deltaRho: resolution for rho
// deltaTheta: resolution for Theta
// bHorizontal: true for horizontal lines, the grident at Y direction is used for... |
/* Let's call a lattice point (x, y) inadmissible if x, y and x + y are all
positive perfect squares. For example, (9, 16) is inadmissible, while (0, 4),
(3, 1) and (9, 4) are not.
Consider a path from point (x1, y1) to point (x2, y2) using only unit steps
north or east. Let's call such a path admissible if none of it... |
// Copyright 2021 The Fuchsia 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 <lib/stdcompat/array.h>
#include <cstdint>
#include <pretty/cpp/sizes.h>
#include <zxtest/zxtest.h>
using pretty::FormattedBytes;
using pretty:... |
#include <gloat.hpp>
#include <string>
#include <vector>
#include "EGL/egl.h"
#include "EGL/eglext.h"
#include "glad/glad.h"
extern bool g_opengl_core;
extern int g_opengl_major;
extern int g_opengl_minor;
void fs_free(void *ptr, size_t unk) // unk = size?
{
free(ptr);
}
void init_fs(void) {
nn::fs::SetAllo... |
#include "exact_cover_u.h"
std::vector<transver> baza_trans;
std::vector<exact_cover::data*> exact_cover::O;
std::vector<exact_cover::data> exact_cover::heads;
std::vector<exact_cover::data> exact_cover::nodes;
bool is_dlk(const kvadrat& kvad){
long long flag, t;
for(int i = 0; i < raz; i += por){
f... |
#include "WallBreakerOperator.h"
#include "SectorInclusionOperator.h"
#include <algorithm>
WallBreakerOperator::WallBreakerOperator(const SectorInclusions &iSectorInclusions, std::vector<KDBData::Sector> &iSectors) :
m_SectorInclusions(iSectorInclusions),
m_Sectors(iSectors)
{
}
WallBreakerOperator::~WallBr... |
/********************* */
/*! \file main.cpp
** \verbatim
** Top contributors (to current version):
** <NAME>
** This file is part of the Reluplex project.
** Copyright (c) 2016-2017 by the authors listed in the file AUTHORS
** (in the top-level source directory)... |
/* demo_io.cpp: sample UNIBUS controller with Linux GPIO logic
Copyright (c) 2018, <NAME>
<EMAIL>, www.retrocmp.com
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, inclu... |
/*
Copyright (c) 1999 - 2010, Vodafone Group Services Ltd
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 condit... |
#include "EditorLayer.h"
#include <imgui.h>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
using namespace Rocket;
void EditorLayer::OnAttach()
{
std::string checkboard_path = ProjectSourceDir + "/Assets/textures/Checkerboard.png";
m_CheckerboardTexture = Texture2D::Create(checkboard... |
//
// Created by nima on 21/05/17.
//
#include <opencv2/highgui.hpp>
#include <opencv2/aruco/charuco.hpp>
#include <iostream>
#include <opencv2/opencv.hpp>
#include <ros/ros.h>
#include <sensor_msgs/Image.h>
#include <cv_bridge/cv_bridge.h>
#include <image_transport/image_transport.h>
#include <geometry_msgs/PoseSt... |
#include <ESKF.h>
#include <iostream>
#include <chrono>
#include <ParseDataFiles.h>
#include <VehicleSimulator.h>
#include <math.h>
#include <lTime.h>
#include <fenv.h>
#include <debug.h>
#define SQ(x) (x*x)
#define GRAVITY 9.781 // Singapore g value.
#define I_3 (Eigen::Matrix3f::Identity())
using namespace Eigen... |
/*
* Copyright (C) 2011-2016 Intel Corporation. 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 li... |
// Copyright 2017 Mobvoi Inc. All Rights Reserved.
#include <assert.h>
#include <pthread.h>
#include <unistd.h>
#include <algorithm>
#include <algorithm>
#include <iomanip>
#include <iostream>
#include "http_util.h"
#include "player.h"
#include "recorder.h"
#include "speech_sdk.h"
static pthread_mutex_t mutex;
stat... |
/*******************************************************************************
@ddblock_begin copyright
Copyright (c) 1997-2019
Maryland DSPCAD Research Group, The University of Maryland at College Park
Permission is hereby granted, without written agreement and without license or
royalty fees, to use, copy, modif... |
/*
* BufferingLogic.cpp
*****************************************************************************
* Copyright (C) 2014 - 2020 VideoLabs, VideoLAN and VLC authors
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published
... |
/*!
* stream_manager.h (https://github.com/SamsungDForum/NativePlayer)
* Copyright 2016, Samsung Electronics Co., Ltd
* Licensed under the MIT license
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPL... |
/*
* Copyright (c), <NAME> (<EMAIL>)
* 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 condition... |
// ------------------------------------------
// File ack.cc
// ------------------------------------------
#include <string>
#include "a.h"
#include "abc.h"
#include "abscissa.h"
#include "absurdum.h"
#include "ack.h"
// ------------------------------------------
int annanstans(int* sil, std::string sill) {
if (... |
/*Header-MicMac-eLiSe-25/06/2007
MicMac : Multi Image Correspondances par Methodes Automatiques de Correlation
eLiSe : ELements of an Image Software Environnement
www.micmac.ign.fr
Copyright : Institut Geographique National
Author : <NAME>
Contributors : <NAME>, <NAME>.
[1] <NAME>, <NAM... |
/*
* Author: kayo
*/
#include <pthread.h>
#include "../../debug.h"
#include "Thread.h"
#include "../heap/Object.h"
#include "../../interpreter/interpreter.h"
#include "../heap/StringObject.h"
#include "../../loader/bootstrap_class_loader.h"
#include "../../symbol.h"
#include "../../kayo.h"
#include "../ma/Class.h"
#... |
#include <ping360_sonar/ping360_node.h>
#include <ping360_sonar/sector.h>
#include <ping-message-common.h>
#include <ping-message-ping360.h>
using namespace std::chrono_literals;
using namespace ping360_sonar;
using std::string;
using std::vector;
Ping360Sonar::Ping360Sonar(rclcpp::NodeOptions options)
: Node("pin... |
#include "Section_5_7_H_.h"
void rescaling_intensities(cv::Mat& tempImage)
{
//Rescalling the values of the image to be non-negative
cv::Mat gm = cv::Mat::zeros(tempImage.rows, tempImage.cols, CV_32FC1);
cv::Mat gs = cv::Mat::zeros(tempImage.rows, tempImage.cols, CV_32FC1);
std::vector<float> min_vector;
auto f =... |
#include <glog/logging.h>
#include <limits>
#include "math_utils.h"
#include "lidar_data.h"
LidarData::LidarData() {}
void LidarData::Initialization(const size_t point_size) {
nrays = point_size;
valid.resize(point_size, 0);
readings.resize(point_size, std::numeric_limits<double>::quiet_NaN());
readings_sigm... |
// Copyright (c) 2017-2021 Intel Corporation
//
// 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,... |
//#define WANT_STREAM
#include "include.h"
#include "newmatap.h"
#include "tmt.h"
#ifdef use_namespace
using namespace NEWMAT;
#endif
ReturnMatrix Inverter(const CroutMatrix& X)
{
Matrix Y = X.i();
Y.Release();
return Y.ForReturn();
}
void trymatd()
{
Tracer et("Thirteenth test of Matrix package");
... |
/***************************************************************************
* This file is part of the ReViSy project
* Copyright (C) 2007 by Neon
***************************************************************************/
#include "frustrum.h"
Frustrum* Frustrum::m_instance = NULL;
Frustrum::Frustrum()
... |
#include "rtcommon.h"
// My additions
#include "image.h"
#include "scene.h"
#include <chrono>
#include <iostream>
#include <ctime>
#include <string>
#include "external/thread_pool.h"
color ray_color(const ray& r, const color& background, const hittable& world, int depth) {
hit_record rec;
// If we've exceeded th... |
/* @file
A four bar linkage demo demonstrating the use of a linear bushing as
a way to model a kinematic loop. It shows:
- How to model a four bar linkage in SDF.
- Use the `multibody::Parser` to load a model from an SDF file into a
MultibodyPlant.
- Model a revolute joint with a `multibody::LinearBushingRoll... |
#include "sycl.hpp"
#include <algorithm>
#include <chrono>
#include <cstdint>
#include <iostream>
#include <iterator>
#include <math.h>
#include <thread>
#include <vector>
#define STB_IMAGE_WRITE_IMPLEMENTATION
#include <stb/stb_image_write.h>
#include "render.hpp"
// Function to save image data in ppm format
void d... |
#include "extdll.h"
#include "enginecallback.h"
#include "util.h"
#include "cbase.h"
#include "entity_state.h"
#include "soundent.h"
#include "studio.h"
#include "bot.h"
#include "avdll.h"
#include "sadll.h"
#include "avsign.h"
extern GETENTITYAPI other_GetEntityAPI;
extern enginefuncs_t g_engfuncs;
extern globalva... |
// Copyright 2021 <NAME> (crankyoldgit)
/// @file
/// @brief Support for Truma protocol.
/// This protocol uses mark length bit encoding.
/// @see https://github.com/crankyoldgit/IRremoteESP8266/issues/1440
/// @see https://docs.google.com/spreadsheets/d/1k-RHu0vSIB6IweiTZSa3Rxy3Z_qPUtqwcqot8uXVO6I/edit?usp=sharing
... |
//
// Created by Nikita on 02.06.2021.
//
#include <Types/Geometry/Mesh3D.h>
// TODO: UNSAFE SHIT!
inline static std::map<unsigned int, unsigned long> VAO_usages = std::map<unsigned int, unsigned long>();
inline static std::map<std::string, unsigned int> VAO_names = std::map<std::string, unsigned int>();
inline s... |
#include <kr_mav_msgs/TRPYCommand.h>
#include <Eigen/Geometry>
#include "quadrotor_simulator_base.hpp"
namespace QuadrotorSimulator
{
typedef struct _TRPYCommand
{
float thrust;
float roll, pitch, yaw;
float angular_velocity[3];
float kR[3];
float kOm[3];
bool enable_motors;
} TRPYCommand;
class Quadrot... |
#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <iostream>
using namespace std;
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
blockSize = 0;
connected = false;
systemPaused = false;
blueChampIndex = 0;
blueChampNumNeuron... |
// TODO fix code block parsing (any number of backticks > 3, 4-space indent, etc)
#include <algorithm>
#include <fstream>
#include <iostream>
#include <sstream>
#include <unordered_map>
#include <vector>
#define TRY_OR_ERR(cmd) do { \
err = cmd; \
if (err) { \
return err; ... |
// Stdlib
#include <stdlib.h>
#include <cmath>
#include <limits.h>
#include <iterator>
#include <vector>
#include <boost/format.hpp>
#include <stdint.h>
// PCL input/output
#include <pcl/console/parse.h>
#include <pcl/io/pcd_io.h>
#include <pcl/visualization/pcl_visualizer.h>
#include <pcl/visualization/point_cloud_co... |
#pragma once
#include "pch.h"
#include "drawgui.h"
#include "SolidShader.h"
#include "CGUI.h"
#include "ModelLoader.h"
// external objects decleared in main.h
extern ModelLoader SLoader;
extern CGUI SGUI;
extern std::vector<CMesh> vMeshString;
extern std::vector<short> vSelectedMeshID;
extern sh... |
// -------------------------------------------------------------------------------
// Copyright (c) 2012, <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:
//
// 1. Redistribution... |
#include <iostream>
#include <iomanip>
#include <vector>
#include <string>
#include <chrono>
#include <random>
#include <thread>
#include <mutex>
#include <random>
#include <limits>
#include <fstream>
#include "seal/seal.h"
using namespace seal;
auto start = std::chrono::steady_clock::now();
const std::vector<int>... |
/**
Copyright (c) 2016, <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:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the followin... |
// Generated from /POI/java/org/apache/poi/util/HexRead.java
#include <org/apache/poi/util/HexRead.hpp>
#include <java/io/ByteArrayInputStream.hpp>
#include <java/io/File.hpp>
#include <java/io/FileInputStream.hpp>
#include <java/io/IOException.hpp>
#include <java/io/InputStream.hpp>
#include <java/io/Serializable.hpp... |
#include "shader_uniforms.h"
#include <algorithm>
#include <tuple>
namespace {
using namespace std;
tuple<GLenum, uint32_t, uint32_t> get_full_type_info(GLenum type){
switch(type){
case GL_FLOAT: return make_tuple(GL_FLOAT, 1, 1);
case GL_FLOAT_VEC2: return make_tuple(GL_FLOAT, 1, 2);
case GL_FLOAT_VE... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.