Skip to content

Instantly share code, notes, and snippets.

View fix_bag_tf.py
#!/usr/bin/env python
from __future__ import print_function
import sys
import os
from multiprocessing import Pool
import rosbag
View asyncservice.py
#!/usr/bin/env python
from __future__ import print_function
import rospy
from concurrent.futures import ThreadPoolExecutor
class AsyncServiceProxy(object):
"""Asynchronous ROS service proxy
View font-size
#!/usr/bin/perl
#
# On-the-fly adjusting of the font size in urxvt
#
# Copyright (c) 2008 David O'Neill
# 2012 Noah K. Tilton <noahktilton@gmail.com>
# 2012-2013 Jan Larres <jan@majutsushi.net>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to
View mp4.launch
<launch>
<!-- This launchfile should bring up a node that broadcasts a ros image
transport on /videofile/image_raw -->
<arg name="FILENAME"/>
<arg name="LOOP" default="true"/>
<arg name="PUBLISH_FRAME" default="false"/>
<node ns="videofile" name="gscam_driver_v4l" pkg="gscam" type="gscam" output="screen">
<param name="camera_name" value="default"/>
View REP-0145.rst

REP: 145 Title: ROS Buildsystem Evolution (post-catkin, ament buildsystem) Author: Thibault Kruse Status: Draft Type: Process Content-Type: text/x-rst Created: 08-Jul-2015 Post-History:

View asynctest.py
#!/usr/bin/env python
from __future__ import print_function
import glob
import sys
import threading
import time
import traceback
View gist:7e8f4ca5303879935e11
../gazebo/physics/bullet/libgazebo_physics_bullet.so.2.2.2: undefined reference to `btHinge2Constraint::btHinge2Constraint(btRigidBody&, btRigidBody&, btVector3&, btVector3&, btVector3&)'
../gazebo/physics/bullet/libgazebo_physics_bullet.so.2.2.2: undefined reference to `btAlignedAllocInternal(unsigned long, int)'
../gazebo/physics/bullet/libgazebo_physics_bullet.so.2.2.2: undefined reference to `btCollisionObject::~btCollisionObject()'
../gazebo/physics/bullet/libgazebo_physics_bullet.so.2.2.2: undefined reference to `btTriangleMesh::addTriangle(btVector3 const&, btVector3 const&, btVector3 const&, bool)'
../gazebo/physics/bullet/libgazebo_physics_bullet.so.2.2.2: undefined reference to `btPoint2PointConstraint::btPoint2PointConstraint(btRigidBody&, btVector3 const&)'
../gazebo/physics/bullet/libgazebo_physics_bullet.so.2.2.2: undefined reference to `btAlignedFreeInternal(void*)'
../gazebo/physics/bullet/libgazebo_physics_bullet.so.2.2.2: undefined reference to `vtable for btCollisionObject'
../gazebo/physic
View install_openni2.sh
#!/bin/sh
set -e
sudo apt-get install git-buildpackage libudev-dev default-jdk
# set java alternative
java_selection=$(update-alternatives --query java | awk '/^Value: /{print $NF}')
javadoc_selection=$(update-alternatives --query javadoc | awk '/^Value: /{print $NF}')
echo "java: $java_selection"
@jbohren
jbohren / carmine_109.yml
Created Apr 7, 2015
primesense carmine 1.09 factory calibration
View carmine_109.yml
height: 480
width: 640
distortion_model: plumb_bob
D: [0.0, 0.0, 0.0, 0.0, 0.0]
K: [574.0527954101562, 0.0, 319.5, 0.0, 574.0527954101562, 239.5, 0.0, 0.0, 1.0]
R: [1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0]
P: [574.0527954101562, 0.0, 319.5, 0.0, 0.0, 574.0527954101562, 239.5, 0.0, 0.0, 0.0, 1.0, 0.0]
View rospy_cb_args.py
#!/usr/bin/env python
import rospy
from std_msgs.msg import Empty
def cb(msg, args):
a1, a2, a3 = args
rospy.logwarn('args: %s %d %g' % (a1, a2, a3))