Skip to content

Instantly share code, notes, and snippets.

View ahundt's full-sized avatar

Andrew Hundt ahundt

View GitHub Profile
diff --git a/src/cmake/ProjectTools.cmake b/src/cmake/ProjectTools.cmake
index 718174a..cc93775 100644
--- a/src/cmake/ProjectTools.cmake
+++ b/src/cmake/ProjectTools.cmake
@@ -803,7 +803,15 @@ function (basis_configure_public_headers)
# considered include directories
basis_get_relative_path (INCLUDE_DIR "${PROJECT_SOURCE_DIR}" "${PROJECT_INCLUDE_DIR}")
set (INCLUDE_DIRS "${PROJECT_SOURCE_DIR}/${INCLUDE_DIR}")
-
+
@ahundt
ahundt / demoBASIS.sh
Last active August 29, 2015 13:57
script that executes the basis quick start steps automatically
set -e
# Demo script:
#clone BASIS (or basis template?)
export START=`pwd`
# build basis
echo "
############################################
@ahundt
ahundt / gist:9625991
Created March 18, 2014 18:12
errors from running: brew install simbody --verbose
Hg brew install simbody --verbose
==> Downloading https://github.com/simbody/simbody/archive/Simbody-3.3.zip
Already downloaded: /Library/Caches/Homebrew/simbody-3.3.zip
==> Verifying simbody-3.3.zip checksum
unzip /Library/Caches/Homebrew/simbody-3.3.zip
Archive: /Library/Caches/Homebrew/simbody-3.3.zip
32522087f63eab536d34c9a9a281cf50d1a7d5a0
creating: simbody-Simbody-3.3/
inflating: simbody-Simbody-3.3/.gitattributes
inflating: simbody-Simbody-3.3/.travis.yml
@ahundt
ahundt / gist:9628725
Created March 18, 2014 20:23
openrave.py verbose error output OS X commit c968355cc85a44270ab9cdc8d0ddebf6e751d996
python -v /usr/local/bin/openrave.py
# installing zipimport hook
import zipimport # builtin
# installed zipimport hook
# /usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.pyc matches /usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py
import site # precompiled from /usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.pyc
# /usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.pyc matches /usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py
import os # precompiled from /usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.pyc
import errno # builtin
import posix # builtin
@ahundt
ahundt / AzmqTest.cpp
Last active August 29, 2015 14:16
azmq fast send crash
//
// echo_server.cpp
// ~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2014 Christopher M. Kohlhoff (chris at kohlhoff dot com)
// Copyright (c) 2015 Andrew Hundt
//
// Distributed under 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)
//
@ahundt
ahundt / asioSocketTest.cpp
Created March 17, 2015 23:48
rvalue reference to boost asio completion handler
// Library includes
#include <string>
#include <ostream>
#include <iostream>
#include <memory>
#include <vector>
#include <iostream>
// Boost includes
@ahundt
ahundt / compiler_output.bash
Created April 5, 2015 03:30
instantiating boost::geometry::rtree with 6D torus points
Scanning dependencies of target assignment3_context
[ 73%] Building CXX object cs436/assignment3/CMakeFiles/assignment3_context.dir/src/assignment3_context.cpp.o
In file included from /home/ahundt/catkin_ws/build/cs436/assignment3/boost-prefix/include/boost/geometry/geometry.hpp:21:0,
from /home/ahundt/catkin_ws/build/cs436/assignment3/boost-prefix/include/boost/geometry.hpp:17,
from /home/ahundt/catkin_ws/src/cs436/assignment3/src/rtree_graph_planner.hpp:14,
from /home/ahundt/catkin_ws/src/cs436/assignment3/src/assignment3_context.cpp:1:
/home/ahundt/catkin_ws/build/cs436/assignment3/boost-prefix/include/boost/geometry/core/coordinate_system.hpp: In instantiation of ‘boost::geometry::traits::coordinate_system<boost::array<double, 6ul>, void>’:
/home/ahundt/catkin_ws/build/cs436/assignment3/boost-prefix/include/boost/geometry/core/coordinate_system.hpp:71:21: instantiated from ‘boost::geometry::core_dispatch::coordinate_system<boost::geometry::point_tag, bo
@ahundt
ahundt / External_camodocal.cmake
Created May 3, 2015 18:05
ExternalProject_Add script for camodocal library
# https://github.com/hengli/camodocal
include (ExternalProject)
if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/camodocal")
set (camodocal_URL "${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/camodocal")
else ()
set (camodocal_URL "INSERT DOWNLOAD URL OR LOCAL PATH TO camodocal HERE")
message(STATUS "Add -DFRI_CLIENT_SDK_CPP_URL=/path/to/camodocal to your cmake command to build camodocal components")
endif ()
@ahundt
ahundt / error.txt
Last active August 29, 2015 14:25
CMake patch and errors for versor
make
-- “/Users/athundt/source/git/versor/scratch/../ext/glv”<<<<<<
VERSOR LINK DIRECTORES
-- link dir='/Users/athundt/source/git/versor/scratch/../build'
VERSOR INCLUDE DIRECTORES
-- include dir='/Users/athundt/source/git/versor/scratch/..'
-- include dir='/Users/athundt/source/git/versor/scratch/../vsr'
-- include dir='/Users/athundt/source/git/versor/scratch/../vsr/space'
-- include dir='/Users/athundt/source/git/versor/scratch/../vsr/draw'
-- include dir='/Users/athundt/source/git/versor/scratch/../vsr/util'
@ahundt
ahundt / VrepVFController.hpp
Created August 9, 2015 05:41
vrep mtsVFController
/// @author Andrew Hundt <athundt@gmail.com>
#ifndef _VREP_VF_CONTROLLER_
#define _VREP_VF_CONTROLLER_
#include <string>
#include <tuple>
#include <boost/format.hpp>
#include <Eigen/Core>
#include <Eigen/Geometry>