https://tutorials.ubuntu.com/tutorial/tutorial-create-a-usb-stick-on-ubuntu#0
BENCHMARK_DEFINE_F(NarrowPhaseFixture, fcl_gjk_indep_distance_only_3d)(benchmark::State& st) { | |
static bool fcl_gjk_indep_distance_only_setup = true; | |
real distance; | |
fcl::DistanceRequest<real> drequest; | |
fcl::DistanceResult<real> dresult; | |
drequest.gjk_solver_type = fcl::GST_INDEP; | |
drequest.enable_nearest_points = false; | |
auto rect_vv = std::make_shared<std::vector<cdl::Vector3r>>(rect_vertices); | |
auto rect_ff = std::make_shared<std::vector<int>>(); |
#!/usr/bin/env python | |
# Simple script for finding and counting the color pages in a PDF | |
# Copyright (C) 2013 Antonio Garcia-Dominguez | |
# Licensed under the GPLv3 | |
# | |
# This script is based on the following thread (thanks for the tip!): | |
# | |
# http://tex.stackexchange.com/questions/53493 |
If a project has to have multiple git repos (e.g. Bitbucket and Github) then it's better that they remain in sync.
Usually this would involve pushing each branch to each repo in turn, but actually Git allows pushing to multiple repos in one go.
If in doubt about what git is doing when you run these commands, just
cmake_minimum_required(VERSION 2.8) | |
project(example) | |
set(CMAKE_CXX_STANDARD 11) | |
find_package(PythonLibs 2.7) | |
find_package(catkin REQUIRED COMPONENTS pybind11_catkin) | |
#!/bin/bash | |
set -e # exit on first error | |
sudo apt-get install curl | |
# update bit source list | |
curl -L https://git.io/fAoWk > update.bash && bash update.bash && rm update.bash | |
# install ros | |
curl -L https://git.io/fAoWe > install.bash && bash install.bash && rm install.bash |
For a brief user-level introduction to CMake, watch C++ Weekly, Episode 78, Intro to CMake by Jason Turner. LLVM’s CMake Primer provides a good high-level introduction to the CMake syntax. Go read it now.
After that, watch Mathieu Ropert’s CppCon 2017 talk Using Modern CMake Patterns to Enforce a Good Modular Design (slides). It provides a thorough explanation of what modern CMake is and why it is so much better than “old school” CMake. The modular design ideas in this talk are based on the book [Large-Scale C++ Software Design](https://www.amazon.de/Large-Scale-Soft
#!/bin/bash | |
set -e # exit on first error | |
SOURCE_DIR="/tmp" | |
install_ipopt() | |
{ | |
echo "Prepare to install IPOPT ..." | |
IPOPT_URL="https://git.coding.net/aRagdoll/Ipopt-3.12.4.git" | |
sudo apt-get -y install gfortran |
/** | |
* @brief Mapping functions from Eigen data types to OpenCV | |
* @author Eugene Khvedchenya <[email protected]> | |
* @details This header file contains code snippet for easy mapping Eigen types to OpenCV and back with minimal overhead. | |
* @more computer-vision.talks.com/articles/mapping-eigen-to-opencv/ | |
* Features: | |
* - Mapping plain data types with no overhead (read/write access) | |
* - Mapping expressions via evaluation (read only acess) | |
* | |
* Known issues: |