Skip to content

Instantly share code, notes, and snippets.

View jbohren's full-sized avatar

Jonathan Bohren jbohren

View GitHub Profile
@jbohren
jbohren / gazebo.repos
Created February 16, 2015 18:12
gazebo
repositories:
gazebo:
type: hg
url: ssh://hg@bitbucket.org/jbohren/gazebo
version: disable-moi-rescaling
sdformat:
type: hg
url: ssh://hg@bitbucket.org/jbohren/sdformat
version: sdf_1.4
@jbohren
jbohren / env_loader.sh
Created February 13, 2015 18:52
env_loader
#!/usr/bin/env bash
export ROS_HOSTNAME=$HOSTNAME.hwcampus.jhu.edu
source /opt/ros/hydro/setup.bash
exec "$@"
@jbohren
jbohren / 011abe9_fixed_leak
Created February 13, 2015 04:09
RViz massif memory graphs (before and after)
MB
128.9^ #
| @ @ @:#
| ::::@@@@ :@:@:#
| :@: @@: ::@@@@ :@:@:#
| :@::@ : ::@@@@ :@:@:#
| @:@::@ : ::@@@@::@:@:#
| @:@::@ : ::@@@@::@:@:#
Depends: base-passwd (>= 3.0.4)
Depends: binutils (>= 2.20.1-15~)
Depends: binutils (>= 2.21.1)
Depends: bsdutils (>= 3.0-0)
Depends: busybox-initramfs (>= 1:1.13.3-1ubuntu5)
Depends: cmake-data (= 2.8.7-0ubuntu4)
Depends: coreutils (>= 5.93)
Depends: coreutils (>= 7.1)
Depends: cpp-4.4 (= 4.4.7-1ubuntu2)
Depends: cpp (>= 4:4.6.3-1ubuntu5)
Depends: python-catkin-pkg (>= 0.2.0)
Depends: cmake-data (= 2.8.7-0ubuntu4)
Depends: libc6 (>= 2.15)
Depends: libcurl3-gnutls (>= 7.16.2-1)
Depends: libexpat1 (>= 1.95.8)
Depends: libgcc1 (>= 1:4.1.1)
Depends: libstdc++6 (>= 4.6)
Depends: zlib1g (>= 1:1.2.3.3.dfsg)
Depends: bsdutils (>= 3.0-0)
Depends: debianutils (>= 1.8)
ros-hydro-desktop
Depends: ros-hydro-common-tutorials
Depends: ros-hydro-geometry-tutorials
Depends: ros-hydro-robot
Depends: ros-hydro-ros-full
Depends: ros-hydro-ros-tutorials
Depends: ros-hydro-urdf-tutorial
Depends: ros-hydro-visualization-tutorials
Depends: ros-hydro-viz
ros-hydro-common-tutorials
@jbohren
jbohren / altwin
Created December 16, 2014 16:00
/usr/share/X11/xkb/symbols/altwin
partial modifier_keys
xkb_symbols "meta_alt" {
key <LALT> { [ Alt_L, Meta_L ] };
key <RALT> { type[Group1] = "TWO_LEVEL",
symbols[Group1] = [ Alt_R, Meta_R ] };
modifier_map Mod1 { Alt_L, Alt_R, Meta_L, Meta_R };
// modifier_map Mod4 {};
};
// Control is mapped to the Win-keys (and the usual Ctrl keys).
@jbohren
jbohren / CMakeLists.txt
Created December 16, 2014 14:44
simplest roscpp cmakelists for testing small snippets of roscpp code (no catkin required)
cmake_minimum_required(VERSION 2.8)
project(a_ros_experiment)
find_package(roscpp REQUIRED)
include_directories(${roscpp_INCLUDE_DIRS})
add_executable(main main.cpp)
target_link_libraries(main ${roscpp_LIBRARIES})
@jbohren
jbohren / main.cpp
Last active August 29, 2015 14:11
interesting rosparam behavior...
#include <ros/ros.h>
/**
> rosparam set /some_abs_param 1337
> rosparam set /test/foo 16
> ./test
struct!
has member foo: 1
[15303:15303:1126/144646:ERROR:chrome_browser_main_extra_parts_x11.cc(56)] X IO error received (X server probably went away)
[15378:15378:1126/194646:ERROR:x11_util.cc(82)] X IO error received (X server probably went away)