Skip to content

Instantly share code, notes, and snippets.

View jbohren's full-sized avatar

Jonathan Bohren jbohren

View GitHub Profile
@jbohren
jbohren / gist:6998220
Last active December 25, 2015 15:29
Bootstrap system
# Vim 7.4
sudo add-apt-repository -y ppa:fcwu-tw/ppa
# Google Chrome
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
# Update lists
sudo apt-get update
@jbohren
jbohren / ubuntu_fakeraid.md
Created October 9, 2013 22:27
installing Ubuntu Lucid 12.04 (12.04.3) on a system with with "fakeraid" (motherboard-based raid) RAID-1 Mirroring
  1. Configure your system's mirror setup
  2. Boot into Ubuntu livecd (or xubuntu if you hate Unity)
  3. Select Try Ubuntu
  4. Open up gparted (gnu partition editor)
  5. Select the RADIDed device (/dev/mapper/something...)
  6. Select the Device menu and select "create partition table"
  7. Under the Advanced dropdown, select gpt for the partition type, and continue
  8. Close gparted
  9. Open the Ubuntu installer program from the desktop
  10. Select "Something else" when it comes to the "Installation Type" panel, and continue
@jbohren
jbohren / gist:6419537
Last active December 22, 2015 04:49
link link link link link...

Linking an orocos/xenomai/barrett package:

/usr/lib/ccache/c++  -fPIC -g -Wl,-z,defs   -shared
-Wl,-soname,libbarrett_hw_manager-gnulinux.so -o
/home/jbohren/ws/groovy/wam/devel/lib/orocos/gnulinux/rtt_barrett_hw/libbarrett_hw_manager-gnulinux.so
CMakeFiles/barrett_hw_manager.dir/src/barrett_hw_manager.cpp.o
-L/home/jbohren/ws/groovy/underlay_isolated/install_isolated/lib
/home/jbohren/ws/groovy/underlay_isolated/install_isolated/lib/liborocos-rtt-gnulinux.so.2.6.0
-lboost_thread-mt -lpthread -lboost_python -L/usr/lib -lgsl -lgslcblas -lm
prefix=/opt/ros/hydro
Name: actionlib
Description: Description of actionlib
Version: 1.10.1
Cflags: -I/opt/ros/hydro/include -I/usr/include
Libs: -L/opt/ros/hydro/lib -lactionlib -l:/usr/lib/libboost_thread-mt.so -lpthread
Requires: actionlib_msgs message_runtime roscpp std_msgs
# generated from catkin/cmake/template/pkgConfig.cmake.in
# append elements to a list if they are not already in the list
# copied from catkin/cmake/list_append_unique.cmake to keep pkgConfig
# self contained
macro(_list_append_unique listname)
foreach(_item ${ARGN})
list(FIND ${listname} ${_item} _index)
if(_index EQUAL -1)
list(APPEND ${listname} ${_item})
" Vim syntax file
" Language: roslaunch XML
" Maintainer: Jonathan Bohren
" Latest Revision: 8 July 2013
"
" roslaunch xml syntax hilighting with inline yaml support
"
" Put this file in ~/.vim/syntax/roslaunch.vim
" Put the following in your .vimrc:
" autocmd BufRead,BufNewFile *.launch setfiletype roslaunch
[ moldy-crow: ~/ws/ros_control/ros_control/controller_manager ] time rosmake controller_manager --pre-clean
real 1m12.880s
user 1m47.095s
sys 0m20.865s
[ moldy-crow: ~/ws/ros_control/ros_control/controller_manager ] time rosmake controller_manager
real 0m20.672s
user 0m30.462s
@jbohren
jbohren / gist:4997805
Last active December 14, 2015 00:19
Building controller_manager in fuerte
[ moldy-crow: ~/ws/ros_control/ros_control/controller_manager ] time rosmake controller_manager --pre-clean
real 0m32.831s
user 0m39.910s
sys 0m10.821s
[ moldy-crow: ~/ws/ros_control/ros_control/controller_manager ] time rosmake controller_manager
real 0m4.720s
user 0m4.964s
@jbohren
jbohren / gist:4997788
Last active December 14, 2015 00:19
Building controller_manager in groovy
[ moldy-crow: ~/ws/ros_control/ros_control/controller_manager ] time rosmake controller_manager --pre-clean
real 3m11.488s
user 5m34.313s
sys 0m21.373s
[ moldy-crow: ~/ws/ros_control/ros_control/controller_manager ] time rosmake controller_manager
real 1m15.435s
user 2m12.640s
@jbohren
jbohren / wstool_aliases.bash
Last active December 13, 2015 22:49
Useful bash aliases for wstool/rosws
#!/usr/bin/env bash
# Set the workspace to the current directory
alias wspwd='export ROS_WORKSPACE=$(pwd)'
# Save the workspace used in this shell as the current workspace
alias wssave='echo -e "$ROS_WORKSPACE" > ~/.curws'
# Load the saved workspace into this shell
alias wsload='source $(cat ~/.curws)/setup.bash'