Skip to content

Instantly share code, notes, and snippets.

@jonbinney
jonbinney / shader_backtrace
Created October 22, 2012 18:33
backtrace for shader error
#1 0x00007ffff608fbab in abort () from /lib/x86_64-linux-gnu/libc.so.6
#2 0x00007ffff66e069d in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#3 0x00007ffff66de846 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#4 0x00007ffff66de873 in std::terminate() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#5 0x00007ffff66de96e in __cxa_throw () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#6 0x00007fffae493b00 in ?? () from /usr/lib/x86_64-linux-gnu/OGRE-1.7.4/RenderSystem_GL.so
#7 0x00007fffae49dead in Ogre::GLSLProgram::compile(bool) ()
from /usr/lib/x86_64-linux-gnu/OGRE-1.7.4/RenderSystem_GL.so
#8 0x00007fffae49e30c in Ogre::GLSLProgram::loadFromSource() ()
from /usr/lib/x86_64-linux-gnu/OGRE-1.7.4/RenderSystem_GL.so
@jonbinney
jonbinney / shader_bug_glxinfo
Created October 22, 2012 18:36
glxinfo output for bug
jbinney@jdb-qx-> glxinfo
name of display: :0
display: :0 screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.4
server glx extensions:
GLX_ARB_multisample, GLX_EXT_import_context, GLX_EXT_texture_from_pixmap,
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_copy_sub_buffer,
GLX_OML_swap_method, GLX_SGI_swap_control, GLX_SGIS_multisample,
@jonbinney
jonbinney / gist:3940551
Created October 23, 2012 18:25
rosinstall file for interactive manipulation
# pointer to your local ros install. to make sure you have all the right packages, install
# ros-fuerte-pr2-interactive-manipulation using apt-get
- other: {local-name: /opt/ros/fuerte/share/ros}
- other: {local-name: /opt/ros/fuerte/share}
- other: {local-name: /opt/ros/fuerte/stacks}
- setup-file: {local-name: /opt/ros/fuerte/setup.sh}
# interactive manipulation source code from github
- git: {local-name: src/object_manipulation, uri: 'git@github.com:ros-interactive-manipulation/object_manipulation.git'}
- git: {local-name: src/pr2_object_manipulation, uri: 'git@github.com:ros-interactive-manipulation/pr2_object_manipulation.git'}
jbinney@bih-> catkin_make
Base path: /wg/stor5/jbinney/ws/manip_groovy
Source space: /wg/stor5/jbinney/ws/manip_groovy/src
Build space: /wg/stor5/jbinney/ws/manip_groovy/build
Devel space: /wg/stor5/jbinney/ws/manip_groovy/devel
Install space: /wg/stor5/jbinney/ws/manip_groovy/install
####
#### Running command: "cmake /wg/stor5/jbinney/ws/manip_groovy/src -DCATKIN_DEVEL_PREFIX=/wg/stor5/jbinney/ws/manip_groovy/devel -DCMAKE_INSTALL_PREFIX=/wg/stor5/jbinney/ws/manip_groovy/install" in "/wg/stor5/jbinney/ws/manip_groovy/build"
####
-- The C compiler identification is GNU
@jonbinney
jonbinney / gist:4508201
Created January 11, 2013 05:31
Changes to openni_camera needed for SXGA resolution with xtion
diff --git a/cfg/OpenNI.cfg b/cfg/OpenNI.cfg
index 82fbd70..d023a2f 100755
--- a/cfg/OpenNI.cfg
+++ b/cfg/OpenNI.cfg
@@ -7,16 +7,18 @@ from dynamic_reconfigure.parameter_generator_catkin import *
gen = ParameterGenerator()
# TODO Only offer modes supported by known hardware
-output_mode_enum = gen.enum([ gen.const( "SXGA_15Hz", int_t, 1, "1280x1024@15Hz"),
- gen.const( "VGA_30Hz", int_t, 2, "640x480@30Hz"),
@jonbinney
jonbinney / gist:4513079
Created January 11, 2013 19:04
openni_launch patch
diff -r 7126145eb885 launch/includes/depth.launch
--- a/launch/includes/depth.launch Tue Dec 11 11:23:14 2012 -0800
+++ b/launch/includes/depth.launch Thu Dec 13 18:04:46 2012 -0600
@@ -4,6 +4,8 @@
<arg name="manager" />
<arg name="points_xyz" default="true" />
<arg name="rectify" default="true" />
+ <arg name="publish_metric" default="true" />
+ <arg name="publish_metric_rect" default="true" />
@jonbinney
jonbinney / gist:4513125
Created January 11, 2013 19:10
patch for using openni_camera with oni files
# HG changeset patch
# User ruben.smits@intermodalics.eu
# Date 1354264641 -3600
# Node ID f0a77d69738b2eac0cbcb938280434b53ea0dc5e
# Parent 4ece7c6f00fbda4bd63f2e5d7a1743485e2e2304
Add support to read from oni files. No extra parameters are added. Will always loop and stream.
diff -r 4ece7c6f00fb -r f0a77d69738b src/nodelets/driver.cpp
--- a/src/nodelets/driver.cpp Sun Jun 10 22:38:34 2012 -0500
+++ b/src/nodelets/driver.cpp Fri Nov 30 09:37:21 2012 +0100
@jonbinney
jonbinney / gist:4513241
Created January 11, 2013 19:24
Allow nodelets to run under a given namespace
diff -r 7126145eb885 launch/kinect_frames.launch
--- a/launch/kinect_frames.launch Tue Dec 11 11:23:14 2012 -0800
+++ b/launch/kinect_frames.launch Sat Jan 05 19:33:48 2013 +0530
@@ -9,13 +9,13 @@
<arg name="optical_rotate" value="0 0 0 -$(arg pi/2) 0 -$(arg pi/2)" />
<node pkg="tf" type="static_transform_publisher" name="$(arg camera)_base_link"
- args="0 -0.02 0 0 0 0 /$(arg camera)_link /$(arg camera)_depth_frame 100" />
+ args="0 -0.02 0 0 0 0 $(arg camera)_link $(arg camera)_depth_frame 100" />
<node pkg="tf" type="static_transform_publisher" name="$(arg camera)_base_link1"
@jonbinney
jonbinney / gist:4513252
Created January 11, 2013 19:26
Allow nodelets to run under a given namespace
diff -r 7126145eb885 launch/kinect_frames.launch
--- a/launch/kinect_frames.launch Tue Dec 11 11:23:14 2012 -0800
+++ b/launch/kinect_frames.launch Sat Jan 05 19:33:48 2013 +0530
@@ -9,13 +9,13 @@
<arg name="optical_rotate" value="0 0 0 -$(arg pi/2) 0 -$(arg pi/2)" />
<node pkg="tf" type="static_transform_publisher" name="$(arg camera)_base_link"
- args="0 -0.02 0 0 0 0 /$(arg camera)_link /$(arg camera)_depth_frame 100" />
+ args="0 -0.02 0 0 0 0 $(arg camera)_link $(arg camera)_depth_frame 100" />
<node pkg="tf" type="static_transform_publisher" name="$(arg camera)_base_link1"
@jonbinney
jonbinney / gist:5558335
Last active December 17, 2015 05:29
Recursively checks a catkin workspace for missing _gencpp dependencies
#!/usr/bin/env python
import sys, re, os, os.path
def find_files(root_dir, exclude_re, include_re):
files = []
for dirpath, dirnames, filenames in os.walk(root_dir, topdown=True):
for filename in filenames:
if include_re.match(filename):
files.append((dirpath, filename))