text stringlengths 3.08k 22k |
|---|
/**
* Author: Dr. Ing. <NAME>
* Email: <EMAIL>
* Modified: 30 June 2021
* Description: UFOMap is an extension to the octomapping.
* It provides the explicit handling of unknown, free, and occupied space in a map.
* Note:
* IMPORTANT:
* To use UFOMap in your package you need to add at the begin... |
// Copyright 2020 Makani Technologies LLC
//
// 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 <time.h>
#include <unistd.h>
#include <sys/time.h>
#include <iostream>
#include <stdlib.h>
#include "RTIambImplementor.h"
#include "FedAmbImplementor.h"
#include <map>
#define DO_EXIT throw RTI_InternalError(e.what())
#define catching()\
cout<< __FILE__ << ":" << __LINE__ << "->" << e.what() << endl;\
DO_EX... |
#include <std_msgs/msg/string.hpp>
#include <sensor_msgs/msg/image.hpp>
#include <onnx/onnx_tracker.h>
#include <onnx/yolo_processor.h>
#include <onnx/pose_processor.h>
#include <string>
#include <codecvt>
#include <locale>
#include <numeric>
using std::placeholders::_1;
const uint32_t kDefaultTensorWidth = 416;
co... |
/*
Cafu Engine, http://www.cafu.de/
Copyright (c) <NAME> and other contributors.
This project is licensed under the terms of the MIT license.
*/
/**************/
/*** Shader ***/
/**************/
// Required for #include <GL/gl.h> with MS VC++.
#if defined(_WIN32) && defined(_MSC_VER)
#define WIN32_LEAN_AND_MEAN
... |
#include <apps/utils/drawing_functions.hpp>
#include <common/pose_trace.hpp>
#include <lcmtypes/pose_xyt_t.hpp>
#include <lcmtypes/lidar_t.hpp>
#include <lcmtypes/robot_path_t.hpp>
#include <planning/frontiers.hpp>
#include <planning/obstacle_distance_grid.hpp>
#include <slam/occupancy_grid.hpp>
#include <lcmtypes/part... |
#include <algorithm>
#include <cstdio>
#include <limits>
#include <sstream>
#include <unordered_set>
#include "nomscheduler/Scheduler/CriticalPathAnalyzer.h"
#include "nomscheduler/Scheduler/HEFTScheduler.h"
#include "nomscheduler/Scheduler/Scheduler.h"
#include <gtest/gtest.h>
namespace nomscheduler {
... |
/*
* Phusion Passenger - https://www.phusionpassenger.com/
* Copyright (c) 2010-2013 Phusion
*
* "Phusion Passenger" is a trademark of <NAME> & <NAME>.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to ... |
/*
Copyright 2015 Concurrent Computer 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... |
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <gtest/gtest.h>
#include <json/json.h>
#include <fstream>
#include <functional>
#include <iostream>
#include <string>
#i... |
// (C) 1992-2016 Intel Corporation.
// Intel, the Intel logo, Intel, MegaCore, NIOS II, Quartus and TalkBack words
// and logos are trademarks of Intel Corporation or its subsidiaries in the U.S.
// and/or other countries. Other marks and brands may be claimed as the property
// ... |
// ***************************************************************************
// BamHttp_p.cpp (c) 2011 <NAME>
// Marth Lab, Department of Biology, Boston College
// ---------------------------------------------------------------------------
// Last modified: 24 July 2013 (DB)
// --------------------------------------... |
#include "layer_bank.h"
using namespace std;
// softmax layer
softmax_layer::softmax_layer(){
network_cost = 0.0;
output_size = 0;
weight_decay = 0.0;
momentum_derivative = 0.0;
momentum_second_derivative = 0.0;
iter = 0;
mu = 0.0;
w = NULL;
b = NULL;
wgrad = NULL;
bgrad =... |
/* include librarys */
//#include <math.h>
#include <stdlib.h>
#include "mex.h"
// #include "ap_int.h"
// #include "ap_fixed.h"
#define Nt 2560
#define N 253
#define M 390
#define Nf 21
#define cs 1540
#define fs 31250000
#define H 390
#define W 23
// const float alpha[21] = { -0.17453292,... |
// acquire.cpp
#include <iostream>
#include <fstream>
#include <string>
#include <math.h>
#include <vector>
#include <algorithm>
#include <fftw3.h> // Fast Fourier Transform
using namespace std;
# define TRUE 1
# define FALSE 0
const double PI = 3.141592;
// Declarations
struct settings_t {
double SF; // S... |
/* AutoGrader
* ----------
* Compiles and collects the output from user programs
* and checks to see if they match the specified output.
* Motivation: School used an autograder and thought it
* would be a cool side-project to mimic it using the new
* things I've learned :D
* (Obviously) not complete/robus... |
/***********************************************************************************************************************
* *
* ANTIKERNEL v0.1 ... |
#include <windows.h>
#include "imgui.h"
#include "imgui_impl_glfw.h"
#include "imgui_impl_opengl3.h"
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <GL/glext.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtx/transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <iostream>
... |
/*
* Copyright (c) 2016, Graphics Lab, Georgia Tech Research Corporation
* Copyright (c) 2016, Humanoid Lab, Georgia Tech Research Corporation
* Copyright (c) 2016, Personal Robotics Lab, Carnegie Mellon University
* All rights reserved.
*
* This file is provided under the following "BSD-style" License:
* Redi... |
/*
* Copyright 2013 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "src/gpu/GrPathProcessor.h"
#include "include/private/SkTo.h"
#include "src/gpu/GrShaderCaps.h"
#include "src/gpu/gl/GrGLGpu.h"
#ifdef SK_GL
#include "src/gpu/gl/GrGLVary... |
#include "MyModel.h"
#include "Data.h"
#include <math.h>
#include "DNest4/code/DNest4.h"
#include <iostream>
#include <algorithm>
#include <gsl/gsl_sf_bessel.h>
#include <cassert>
#include <cmath>
using namespace std;
using namespace DNest4;
MyModel::MyModel()
:params(Data::get_instance().get_rsb().size()),
mvis(Dat... |
//
// Created by lllll on 12/28/2021.
//
#include "FBM.hpp"
void PlantArchitect::FBM::OnCreate() {
}
void PlantArchitect::FBM::OnInspect() {
static bool draw = true;
ImGui::Checkbox("Render field", &draw);
if (draw) {
static auto minRange = glm::vec3(-25, 0, -25);
static auto maxRange = ... |
/*
* Software License Agreement (BSD License)
*
* Point Cloud Library (PCL) - www.pointclouds.org
* Copyright (c) 2012, <NAME>, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met... |
#include <GrExprAdaptor.h>
// standard includes
#include <deque>
#include <set>
GrExprAdaptor::GrExprAdaptor(const std::string& expr) {
// squeeze all blanks out
for (std::size_t i = 0; i < expr.size(); ++i) {
char c = expr[i];
if (c != ' ') {
this->expr.push_back(c);
}
}
... |
/**********************************************************************
smartstest.cpp - Test SMARTS algorithms and atom typing.
This file is part of the Open Babel project.
For more information, see <http://openbabel.org/>
Copyright (C) 1998-2001 by OpenEye Scientific Software, Inc.
Some portions Copyright (C)... |
/** Implementation of libpqxx STL-style cursor classes.
*
* These classes wrap SQL cursors in STL-like interfaces.
*
* Copyright (c) 2000-2020, <NAME>.
*
* See COPYING for copyright license. If you did not receive a file called
* COPYING with this source code, please notify the distributor of this
* mistake, o... |
//
// Created by 黄隆 on 16/5/11.
//
#include <stdio.h>
#include <sys/epoll.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <sys/types.h>
#include <signal.h>
#include <unistd.h>
#include <fcntl.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
//stl head... |
#include <pbbam/../../src/FileUtils.h>
#include <cassert>
#include <cctype>
#include <chrono>
#include <cstdio>
#include <cstdlib>
#include <string>
#include <tuple>
#include <vector>
#include <gtest/gtest.h>
#include <boost/algorithm/string.hpp>
#include <pbbam/../../src/TimeUtils.h>
#include "PbbamTestData.h"
... |
/**
*******************************************************************************
* MembershipServer.cpp *
* *
* Membership server: ... |
//============================================================================
// Name : main.cpp
// Author : <NAME>
// Version :
// Copyright : Aregtech (c) 2021
// Description : This project demonstrates use of timers. The demo initializes,
// starts and stops multiple timers processed... |
#include "core/FileSystem.h"
#include "debugger/RstParser.h"
#include "subprocess/subprocess.h"
#include <fstream>
#undef FAIL
#include "gtest/gtest.h"
namespace {
void StringToFile(const std::string& s, fs::path path) {
std::ofstream fout(path);
fout << s;
}
bool Exec(std::vector<const c... |
#include <assert.h>
#include <chrono>
#include <utility>
#include "common/configmanager/configmanager.h"
#include "log/clog.h"
#include "simhub.h"
using namespace std::chrono_literals;
// TODO: FIX EVERYTHING
std::shared_ptr<SimHubEventController> SimHubEventController::_EventControllerInstance = NULL;
//! static ... |
/**
* @file offboard_velocity.cpp
* @brief Example that demonstrates offboard velocity control in local NED and
* body coordinates
*
* @authors Author: <NAME> <<EMAIL>>,
* <NAME> <<EMAIL>>
* @date 2017-10-17
*/
#include <chrono>
#include <cmath>
#include <fstream>
#include <iostream>
#include ... |
/**
* Copyright © 2021 <wotsen>.
*
* 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,
* ... |
/* Copyright (c) 2015 Northeastern University
* All rights reserved.
*
* Developed by:Northeastern University Computer Architecture Research (NUCAR)
* Group, Northeastern University, http://www.ece.neu.edu/groups/nucar/
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this so... |
#include "Grid.h"
#include "Node.h"
using namespace qge;
/// Constructs an empty Grid (no cells).
Grid::Grid():
numXCells_(0),
numYCells_(0),
cellWidth_(0),
cellHeight_(0),
width_(0),
height_(0)
{
}
/// Constructs a Grid with the specified number of cells and the specified cell size.
Grid::... |
/*!
* \file ExecMocker.cpp
* \project WonderTrader
*
* \author Wesley
* \date 2020/03/30
*
* \brief
*/
#include "ExecMocker.h"
#include "WtHelper.h"
#include "../Includes/WTSVariant.hpp"
#include "../Share/TimeUtils.hpp"
#include "../Share/decimal.h"
#include "../WTSTools/WTSLogger.h"
#incl... |
/*
Serial example program solving the advection equation.
Copyright 2013, 2014, 2015, 2016 <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 (c) 2017 Franka Emika GmbH
// Use of this source code is governed by the Apache-2.0 license, see LICENSE
#include <franka_typing_aid/examples_common.h>
#include <algorithm>
#include <array>
#include <cmath>
#include <iostream>
#include <franka/exception.h>
#include <franka/robot.h>
void setImpedanceBeha... |
/******************************************************************
*
* Copyright 2015 Samsung Electronics 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
*
... |
#include "Cell.h"
#include "opencv2/opencv.hpp"
#include "../functions/SegmenterTools.h"
double getRandomDouble(double x, double y) {
double random = ((double) rand()) / (double) RAND_MAX;
double diff = y - x;
double r = random * diff;
return x + r;
}
namespace segment {
/*
* calcMaxRadius ca... |
#include "StereogramSolver.h"
std::vector<cv::Point3f> convertMatToPointsCloud(const cv::Mat& img) {
std::vector<cv::Point3f> outArray;
if (img.type() == CV_8UC1) {
for (int r = 0; r < img.rows; ++r) {
for (int c = 0; c < img.cols; ++c) {
if (img.at<unsigned char>(r, c) > 5) {
outArray.... |
/********************************************************************************
* Volatile - Volume Visualization Software for SAGE
* Copyright (C) 2004 Electronic Visualization Laboratory,
* University of Illinois at Chicago
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with ... |
#include "mp_network.h"
void mp_network::set_recv_handler(std::function<void(int, std::vector <unsigned char>, boost::system::error_code)> on_recv_handler) {
m_party->set_recv_handler(on_recv_handler);
}
void mp_network::set_recv_handler(int player_j, std::function<void(int, std::vector <unsigned char>, boost::s... |
/*
Q Light Controller Plus
webaccesssimpledesk.cpp
Copyright (c) <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.txt
Unless r... |
// Copyright 2015 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// TODO(jochen): Remove this after the setting is turned on globally.
#define V8_IMMINENT_DEPRECATION_WARNINGS
#include <utility>
#include "src/compil... |
#include "demoqpitem.h"
#include <QPainter>
#include <QPainterPath>
#include <QPen>
#include <QPointF>
#include <QFontDatabase>
#define _USE_MATH_DEFINES
#include <math.h>
#include <algorithm>
DemoQPItem::DemoQPItem(QQuickItem *parent)
: QQuickPaintedItem(parent)
, m_animationTime(0.0)
, m_enabledTests(0)
... |
#include <SFML/Graphics.hpp>
#include "ResourcePath.h"
#include "Overlap.h"
#include <cstdlib>
#include <ctime>
#include <iostream>
#include <string>
#include <sstream>
using namespace std;
const int ROW = 9;
const int COL = 11;
void handleEvent(sf::RenderWindow& window, sf::Event &event)
{
while (window.pollEvent(... |
#include <algorithm>
#include <cassert>
#include <fstream>
#include <iostream>
#include <vector>
#include "tsl/robin_map.h"
#include "tsl/robin_set.h"
typedef std::vector<std::vector<unsigned>> VecVec;
typedef std::vector<tsl::robin_set<unsigned>> VecSet;
typedef tsl::robin_map<unsigned, unsigned> MapCount;
typede... |
/* Copyright (c) 2018-2019, NVIDIA 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 list of ... |
/*************************************************************************
*
* File Name : coilfwd.cpp
* Platform : gnu C++ compiler
* Author : <NAME>
* Date : 16 May 2003
*
*
* SYNOPSIS
* This file finds the plasma surface Bnormal for a given coil current.
*
**... |
/*
Copyright 2020 Standard Cyborg
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, sof... |
#include "Game.h"
#include <fstream>
#include <sstream>
#include <algorithm>
#include <SDL/SDL_ttf.h>
#include <rapidjson/document.h>
#include "Font.h"
#include "Renderer.h"
#include "AudioSystem.h"
#include "InputSystem.h"
#include "PhysWorld.h"
#include "UiScreen.h"
#include "Actor.h"
#include "HUD.h"
#include "Point... |
//
// BLACK - Bounded Ltl sAtisfiability ChecKer
//
// (C) 2021 <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... |
////////////////////////////////////////////////////////////////////////////////
//
// cagey-engine - Toy 3D Engine
// Copyright (c) 2014 <NAME> <<EMAIL>>
//
// The MIT License (MIT)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation file... |
#include "range_utility.h"
#include "../../util/utility.h"
Interval get_osn_octave_range_2d(OpenSimplexNoise *noise, const Interval &x, const Interval &y, int octave) {
// Any unit vector away from a given evaluation point, the maximum difference is a fixed number.
// We can use that number to find a bounding range ... |
// Copyright (C) 2018-2020 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include <gtest/gtest.h>
#include <ie_core.hpp>
#include "single_layer_common.hpp"
#include "tests_common.hpp"
#include "common_test_utils/data_utils.hpp"
using namespace ::testing;
using namespace InferenceEngine;
struct region_... |
//*****************************************************************************
//
// File: pathcurv.cpp
// Author: <NAME>
// Date Created: 11/09/98
//
// Abstract: Implementation of CPathCurve object
//
// Modification List:
// Date Author Change
// 11/09/98 jeffwall Created this file from path.cpp
//... |
#include "TaoDecoder.h"
#include <QDebug>
/* Enable or disable frame reference counting. You are not supposed to support
* both paths in your application but pick the one most appropriate to your
* needs. Look for the use of refcount in this example to see what are the
* differences of API usage between them. */
st... |
////////////////////////////////////////////////////////////////////////////////
// Copyright (C) 2021 <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, includ... |
#pragma once
#include "Entities/HeroTypes.hpp"
#include "Entities/MonsterTypes.hpp"
#include "Utilities/Random.hpp"
/// A class with data and methods regarding the creation of beings and merchandise ... This class ///
/// cannot be instantiated (the constructor is deleted) and only its static methods can be us... |
/*
* Copyright 2021 Xilinx 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 ... |
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
#include <unistd.h>
enum{
READ, WRITE
};
int to_contestant[2], from_contestant[2];
int stdio[2];
bool connected_to_contestant = false;
void init(){
if (pipe(to_contestant)) return exit(1);
if (pipe(from_contestant)) return exit(1);
s... |
// Created by <NAME> on 30.05.2018
// Copyright 2018 ETH Zurich
#undef NDEBUG
#include <cassert>
#include <cmath>
#include <functional>
#include <iostream>
#include <sstream>
#include "geom/mesh.h"
#include "solver/approx.h"
#include "solver/approx_eb.h"
#include "solver/cond.h"
#include "solver/solver.h"
template <... |
/* <stig/spa/flux_capacitor/sync.test.cc>
Unit test for <stig/spa/flux_capacitor/sync.h>.
Copyright 2010-2014 Tagged
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
htt... |
/* Copyright (C) 2012 <NAME>
*
* Optimist Racing 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.
*
* Optimist Racing is distrib... |
//-------------------------------------------------
//
// Class: L1MuDTTSTheta.cpp
//
// Description: Implementation of TS Theta trigger algorithm
//
//
// Author List:
// <NAME>
// Modifications:
// III/2005 : <NAME> NEWGEO update
// I/2007 : <NAME> Config class update
// mar07 - <NAME> : p... |
// MadronaLib: a C++ framework for DSP applications.
// Copyright (c) 2013 Madrona Labs LLC. http://www.madronalabs.com
// Distributed under the MIT license: http://madrona-labs.mit-license.org/
#include "MLMultiButton.h"
#include "MLLookAndFeel.h"
#include "MLAppView.h"
MLMultiButton::MLMultiButton(MLWidget* pConta... |
#include "stdafx.h"
#include <GWCA/Constants/Constants.h>
#include <GWCA/GameContainers/GamePos.h>
#include <GWCA/GameEntities/Agent.h>
#include <GWCA/GameEntities/Skill.h>
#include <GWCA/Managers/AgentMgr.h>
#include <GWCA/Managers/MapMgr.h>
#include <GWCA/Managers/SkillbarMgr.h>
#include <Widgets/Minimap/RangeRen... |
#include <math.h>
#include <geometry_msgs/Quaternion.h>
#include "ta_control/haversine.hpp"
#pragma once
#define maxiter 500
struct EulerAngles {
double roll, pitch, yaw;
};
namespace ta_math
{
double heading(double lat1, double lon1, double lat2, double lon2)
{
double d_lat = lat2 - lat1;
... |
/**
* Copyright Soramitsu Co., Ltd. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#include "main/iroha_conf_loader.hpp"
#include <fstream>
#include <limits>
#include <sstream>
#include <rapidjson/document.h>
#include <rapidjson/error/en.h>
#include <rapidjson/istreamwrapper.h>
#include <rapidjson/... |
#include <utility>
#include <vector>
#include <string>
#include <algorithm>
#include <functional>
#include "matrix_bench.h"
#include "bench.h"
#include "random.h"
using lib_calvin_matrix::matrix;
using namespace lib_calvin_benchmark::matrix;
std::vector<std::string>
lib_calvin_benchmark::matrix::getAlgorithmNamesAnd... |
//--------------------------------------------------------------------------//
// iq / rgba . tiny codes . 2008 //
//--------------------------------------------------------------------------//
#define WIN32_LEAN_AND_MEAN
#define WIN32_EXTRA_LEAN
#include <windows.h>
#... |
/*
* The MIT License
*
* Copyright (c) 2016-2017 The University of Utah
*
* 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
* right... |
// <NAME>
//
// See .h file.
#include <stdio.h>
#include <math.h>
#include <iostream>
#include <algorithm>
#include <functional>
#include "spectrum.pb.h"
#include "spectrum_collection.h"
#include "mass_constants.h"
#include "records.h"
#include "records_to_vector-inl.h"
using namespace std;
using google::protobuf::ui... |
/**********
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. (See <http://www.gnu.org/copyleft/lesser.html>.)
This libr... |
//===-- ARMMCInstLower.cpp - Convert ARM MachineInstr to an MCInst --------===//
//
// 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
//
//===---------------------------... |
/*
* Copyright 2016 Collapsed Team
*
* 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 i... |
/* Images
*
* GtkImage is used to display an image; the image can be in a number of formats.
* Typically, you load an image into a GdkPixbuf, then display the pixbuf.
*
* This demo code shows some of the more obscure cases, in the simple
* case a call to gtk_image_new_from_file() is all you need.
*
* If you wan... |
/*
Copyright (c) 2017-2019, Intel Corporation
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 conditions and the following disc... |
/*
Author: <NAME>
File: s4.cpp
Purpose: computes surface albedo of object from images
*/
#include <iostream>
#include <vector>
#include <cmath>
#include <utility>
#include <fstream>
#include "image.h"
using namespace ComputerVisionProjects;
using namespace std;
typedef vector<vector<double>> d_matrix;
void... |
//
// Created by sun on 16-8-26.
//
#include<iostream>
#include<string>
#include<map>
#include<set>
#include<vector>
#include <algorithm>
#include <cmath>
#include <queue>
#include <list>
#include <functional>
#include <string.h>
using namespace std;
template<typename T>
ostream &operator<<(ostream &out, const vector<... |
/*
* cellular::main for Raspberry Pi Pico
*
* @version 1.0.1
* @author smittytone
* @copyright 2021
* @licence MIT
*
*/
#include "cellular.h"
using std::string;
using std::vector;
using std::stringstream;
/*
* GLOBALS
*/
Sim7080G modem = Sim7080G();
MCP9808 sensor = MCP9808();
HT16K33_Segmen... |
//
// Created by yona on 11/5/16.
//
#include "HumanInterface.h"
#include "MachineComm.h"
#define DEFAULT_SERIAL_TIMEOUT (1000)
void clearSerialInputBuffer();
MachineControlState machineState = {
.positionRequested = false,
.positionReceived = false,
.positionError = false,
.joggingError = false,
};
Vector3 la... |
/*
* utils_pcl_ros.cpp
*
* Created on: Sep 9, 2014
* Author: baris
*/
#include<utils_pcl_ros.hpp>
int findFeatVecByHue(std::vector<pc_cluster_features> &feats, double main_hue)
{
std::vector<double> hue_diffs (feats.size());
double min_diff = 1000;
int color_index = -1;
for(int i = 0; i < feats.siz... |
#include "vk/Pipeline.h"
#include "vk/Shader.h"
#include "spooky/SpookyV2.h"
#include <array>
using namespace std;
using namespace of::vk;
// ----------------------------------------------------------------------
::vk::Pipeline ComputePipelineState::createPipeline( const ::vk::Device & device, const std::shared_ptr<... |
//
// main.cpp
// Hw8
// Huge Integer Addition, Subtraction, Multiplication, and Division with Struct and Dynamic Memory Allocation
//
// Created by <NAME> on 2017/11/13.
// Copyright © 2017年 <NAME>. All rights reserved.
//
#include <iostream>
using std::cin;
using std::cout;
using std::endl;
#include <fstream>
... |
/// @file VOTableAccessor.cc
///
/// @copyright (c) 2012 CSIRO
/// Australia Telescope National Facility (ATNF)
/// Commonwealth Scientific and Industrial Research Organisation (CSIRO)
/// PO Box 76, Epping NSW 1710, Australia
/// <EMAIL>
///
/// This file is part of the ASKAP software distribution.
///
/// The ASKAP s... |
//$Id: TestClient.cpp 94108 2011-05-27 10:10:58Z msmit $
#include "TestClient.h"
#include "MessengerC.h"
#include "tao/ORB_Constants.h"
#include "ace/OS_NS_time.h"
#include "ace/OS_NS_unistd.h"
#include "ace/OS_NS_stdlib.h"
#include "ace/Get_Opt.h"
TestClient::TestClient (CORBA::ORB_ptr orb, int argc, ACE_TCHAR *arg... |
#include <iostream>
#include <queue>
#include <stack>
using namespace std;
namespace AVL
{
template<typename KT, typename VT> // key type, value type
struct Node
{
KT key;
VT val;
Node<KT, VT> *left, *right;
int height;
Node(const KT &_key, const VT &_val, Node *_le... |
#include "Preview.hpp"
#include <GLFW/glfw3.h>
#include <Kernel.hpp>
#include <algorithm>
#include <iostream>
#include <cassert>
#include <PreviewPSColorMap_spv.h>
#include <PreviewPS_spv.h>
#include <PreviewVS_spv.h>
Preview* previews[4];
static VkPipeline s_pipeline;
static VkPipeline s_pipeline_color_map;
static... |
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
*
* THE BSD LICENSE
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistribut... |
#include<bits/stdc++.h>
using namespace std;
const int N = 3e5 + 9;
using F = long long; using W = long long; // types for flow and weight/cost
struct S{
const int v; // neighbour
const int r; // index of the reverse edge
F f; // current flow
const F cap; // capacity
const W cost; // unit cost
S(int v, int ri... |
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
// PARTICULAR PURPOSE.
//
// Copyright (c) Microsoft Corporation. All rights reserved
#include "pch.h"
#include <... |
#include "EventFilter/RctRawToDigi/plugins/RctRawToDigi.h"
// System headers
#include <vector>
#include <sstream>
#include <iostream>
// Framework headers
#include "FWCore/ParameterSet/interface/ConfigurationDescriptions.h"
#include "FWCore/ParameterSet/interface/ParameterSetDescription.h"
#include "FWCore/MessageLog... |
/*
* Clang Libtool Sample for SYSSEC-FSU Workshop
* Author: <NAME>
* Affliation: Florida State University
*/
#include <sstream>
#include <string>
#include "clang/AST/AST.h"
#include "clang/AST/ASTConsumer.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include "clang/ASTMatchers/ASTMatchers.h"
#include "clang/Ba... |
#include "FaceSwapper.h"
#include <iostream>
FaceSwapper::FaceSwapper(const std::string landmarks_path)
{
try
{
dlib::deserialize(landmarks_path) >> pose_model;
}
catch (std::exception& e)
{
std::cerr << "Error loading landmarks from " << landmarks_path << std::endl
<< ... |
/**********************************************************************
// @@@ START COPYRIGHT @@@
//
// 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. ... |
#include "interface/command_sender.hpp"
#include "interface/asio.hpp"
#include "ros/ros.h"
#include "interface/network_configuration.hpp"
#include <chrono>
#include <thread>
#include <inttypes.h>
// Auxiliary function that turns on the radar
static bool startRadar(asio::ip::udp::socket& socket, asio::ip::udp::endpo... |
#include <cutils/memory.h>
#include <utils/Log.h>
#include <android/native_window.h>
#include <binder/IPCThreadState.h>
#include <binder/ProcessState.h>
#include <binder/IServiceManager.h>
#include <gui/Surface.h>
#include <gui/SurfaceComposerClient.h>
using namespace android;
#define R10G10B10A2_COLOR_CHANNEL_MAX ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.