Skip to content

Instantly share code, notes, and snippets.

@scpeters
scpeters / tinyxml_CMakeLists.patch
Created August 24, 2013 00:02
This is a patch that lets you use cmake to build and install tinyxml.
diff -Nu tinyxml-2.6.2/CMakeLists.txt tinyxml-2.6.2.patch/CMakeLists.txt
--- tinyxml-2.6.2/CMakeLists.txt 1969-12-31 16:00:00.000000000 -0800
+++ tinyxml-2.6.2.patch/CMakeLists.txt 2013-08-23 16:52:57.311170051 -0700
@@ -0,0 +1,12 @@
+cmake_minimum_required(VERSION 2.4.6)
+add_definitions(-DTIXML_USE_STL)
+add_library(tinyxml SHARED tinyxml.cpp tinyxmlerror.cpp tinyxmlparser.cpp)
+set_target_properties(tinyxml PROPERTIES
+ INSTALL_NAME_DIR ${CMAKE_INSTALL_PREFIX}/lib)
+
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@scpeters
scpeters / gist:7951941
Created December 13, 2013 21:49
doxygen output for simbody #85
Scanning dependencies of target doxygen
Searching for include files...
Searching for example files...
Searching for images...
Searching for files in directory /home/scpeters/osrf/simbody_fork/doc/images
Searching for files in directory /home/scpeters/osrf/simbody_fork/Simbody/doc/images
Searching for files in directory /home/scpeters/osrf/simbody_fork/SimTKmath/doc/images
Searching for files in directory /home/scpeters/osrf/simbody_fork/SimTKcommon/doc/images
Searching for dot files...
Searching for msc files...
@scpeters
scpeters / gist:7995310
Created December 16, 2013 22:06
Backtrace for gazebo issue #821
See https://bitbucket.org/osrf/gazebo/issue/821/apparent-transport-race-condition-on
Console output from INTEGRATION_imu
Branch default try 14 of 40, failed test 139
139: Test command: /tmp/gazebo_build/source/build/test/integration/INTEGRATION_imu "--gtest_output=xml:/tmp/gazebo_build/source/build/test_results/INTEGRATION_imu.xml"
139: Test timeout computed to be: 240
139: [==========] Running 9 tests from 1 test case.
139: [----------] Global test environment set-up.
139: [----------] 9 tests from PhysicsEngines/ImuTest
@scpeters
scpeters / gist:8010059
Created December 17, 2013 18:25
Another backtrace for gazebo issue #821
See https://bitbucket.org/osrf/gazebo/issue/821/apparent-transport-race-condition-on
Console output from INTEGRATION_speed_pr2:
Branch default try 5 of 40, failed test 187
187: Test command: /tmp/gazebo_build/source/build/test/integration/INTEGRATION_speed_pr2 "--gtest_output=xml:/tmp/gazebo_build/source/build/test_results/INTEGRATION_speed_pr2.xml"
187: Test timeout computed to be: 240
187: [==========] Running 3 tests from 1 test case.
187: [----------] Global test environment set-up.
187: [----------] 3 tests from PhysicsEngines/SpeedPR2Test
@scpeters
scpeters / gist:8185774
Created December 30, 2013 18:25
overnight gazebo test failure in transport
test failure in transport
~~~
Program terminated with signal 11, Segmentation fault.
#0 __pthread_mutex_lock (mutex=0x2ab2f40063a0) at pthread_mutex_lock.c:50
50 pthread_mutex_lock.c: No such file or directory.
(gdb) bt
#0 __pthread_mutex_lock (mutex=0x2ab2f40063a0) at pthread_mutex_lock.c:50
#1 0x00000000004ba318 in boost::mutex::lock (this=0x2ab40000003f)
at /usr/include/boost/thread/pthread/mutex.hpp:59
#2 0x00002ab2b20eae59 in lock (this=0x2ab30764da10)
@scpeters
scpeters / gist:8202398
Created December 31, 2013 21:28
transport seg-fault
~~~
157: [ RUN ] TransportTest.ThreadedMultiPubSub
157:
157: Msg Waiting for masterMsg Connected to gazebo master @ http://127.0.0.1:11345
157: Msg Publicized address: 192.168.1.188
157: Dbg ServerFixture load in 0.09 seconds, timeout after 60 seconds
157: Dbg ServerFixture::Unload
157: INTEGRATION_transport: /usr/include/boost/smart_ptr/shared_ptr.hpp:424: T* boost::shared_ptr<T>::operator->() const [with T = gazebo::transport::Publication]: Assertion `px != 0' failed.
158: Test command: /tmp/gazebo_build/source/tools/check_test_ran.py "/tmp/gazebo_build/source/build/test_results/INTEGRATION_transport.xml"
158: Test timeout computed to be: 9.99988e+06
@scpeters
scpeters / gist:8309238
Created January 8, 2014 00:03
gazebo ogre 1.9 deprecation warnings
gazebo/rendering/Grid.cc: In member function ‘void gazebo::rendering::Grid::SetUserData(const Ogre::Any&)’:
gazebo/rendering/Grid.cc:207:39: warning: ‘virtual void Ogre::MovableObject::setUserAny(const Ogre::Any&)’ is deprecated (declared at include/OGRE/OgreMovableObject.h:329) [-Wdeprecated-declarations]
gazebo/rendering/Light.cc: In member function ‘void gazebo::rendering::Light::CreateVisual()’:
gazebo/rendering/Light.cc:291:47: warning: ‘virtual void Ogre::MovableObject::setUserAny(const Ogre::Any&)’ is deprecated (declared at include/OGRE/OgreMovableObject.h:329) [-Wdeprecated-declarations]
gazebo/rendering/SelectionObj.cc: In member function ‘void gazebo::rendering::SelectionObj::CreateTranslateVisual()’:
gazebo/rendering/SelectionObj.cc:312:58: warning: ‘virtual void Ogre::MovableObject::setUserAny(const Ogre::Any&)’ is deprecated (declared at include/OGRE/OgreMovableObject.h:329) [-Wdeprecated-declarations]
gazebo/rendering/SelectionObj.cc:313:57: warning: ‘virtual void Ogre::MovableObject::setUser
@scpeters
scpeters / gist:8360570
Created January 10, 2014 19:11
OGRE EXCEPTION(7:InternalErrorException): Cannot create GL vertex buffer Error [Connection.hh:264] Header is empty
Branch default try 1 of 40, failed test 69
69: Test command: /tmp/gazebo_build/source/build/gazebo/rendering/UNIT_Heightmap_TEST "--gtest_output=xml:/tmp/gazebo_build/source/build/test_results/UNIT_Heightmap_TEST.xml"
69: Test timeout computed to be: 240
69: [==========] Running 1 test from 1 test case.
69: [----------] Global test environment set-up.
69: [----------] 1 test from Heightmap_TEST
69: [ RUN ] Heightmap_TEST.splitTerrain
69:
69: Msg Waiting for masterMsg Connected to gazebo master @ http://127.0.0.1:11345
69: Msg Publicized address: 192.168.1.188
@scpeters
scpeters / disable_gdal.patch
Last active August 29, 2015 13:56
patch to disable GDAL on osx
diff -r d6781bae8772 cmake/SearchForStuff.cmake
--- a/cmake/SearchForStuff.cmake Mon Feb 24 09:56:33 2014 -0800
+++ b/cmake/SearchForStuff.cmake Mon Feb 24 10:24:48 2014 -0800
@@ -476,15 +476,15 @@
########################################
# Find gdal
-include (FindGDAL)
-if (NOT GDAL_FOUND)
- message (STATUS "Looking for libgdal - not found")