Skip to content

Instantly share code, notes, and snippets.

View jbohren's full-sized avatar

Jonathan Bohren jbohren

View GitHub Profile
Dbg [parser.cc:356] No <sdf> element in file[test.urdf]
Dbg [parser_urdf.cc:1323] extension [<sensor name="camera" type="camera"><update_rate>30.0</update_rate><camera name="camera"><horizontal_fov>1.3962634</horizontal_fov><image><width>800</width><height>800</height><format>R8G8B8</format></image><clip><near>0.02</near><far>300</far></clip></camera><plugin filename="libgazebo_ros_camera.so" name="camera_controller"><alwaysOn>true</alwaysOn><updateRate>0.0</updateRate><cameraName>camera</cameraName><imageTopicName>image_raw</imageTopicName><cameraInfoTopicName>camera_info</cameraInfoTopicName><frameName>camera</frameName><hackBaseline>0.07</hackBaseline><distortionK1>0.0</distortionK1><distortionK2>0.0</distortionK2><distortionK3>0.0</distortionK3><distortionT1>0.0</distortionT1><distortionT2>0.0</distortionT2></plugin></sensor>] not converted from URDF, probably already in SDF format.
Dbg [parser_urdf.cc:1323] extension [<sensor type="force_torque"><always_on>1</always_on><update_rate>100.0</update_rate><vi
#!/usr/bin/env python
from __future__ import print_function
use_catkin = True
if use_catkin:
from catkin.builder import run_command
else:
from catkin_tools.verbs.catkin_build.common import run_command
#!/usr/bin/env perl
use Term::ANSIColor;
if(@ARGV < 1) {
print " \n";
print "usage: $0 USERNAMES [--admin]\n";
print " \n";
print " This program will create a user using 'adduser' for each username\n";
print " listed in the USERNAMES file (separated by line breaks). Their\n";
@jbohren
jbohren / cm
Created March 3, 2014 04:31 — forked from mmedvede/cm
#!/usr/bin/env bash
# Use catkin_make from anywhere in a workspace.
# Ascends from current directory until a catkin workspace root is reached,
# and invokes catkin_make.
# [email protected]
set -e
set -u
#compdef rospack_complete
_arguments "1: :($(rospack list-names))"
# COMPLETION SETTINGS
# add custom completion scripts
fpath=(~/.zsh/completion $fpath)
# compsys initialization
autoload -U compinit
compinit
catkin_run_tests () {
catkin_make run_tests_$1
}
@jbohren
jbohren / ubuntu_t440p.md
Created January 9, 2014 20:49
Ubuntu on Lenovo T440p

First, uninstall everything nvidia: sudo apt-get purge nvidia-*

Second, add the precise-proposed package archive:

sudo sh -c 'echo "deb http://archive.ubuntu.com/ubuntu/ precise-proposed restricted main multiverse universe" > /etc/apt/sources.list.d/ros-latest.list'

Third, install nvidia-prime>=0.5 and nvidia drivers:

alias cm='catkin_make'
alias cmi='catkin_make_isolated'
alias cmii='catkin_make_isolated --install'
alias wspwd='export ROS_WORKSPACE=$(pwd)'
alias wssave='echo -e "$(pwd)" > ~/.curws'
alias wsload='source $(cat ~/.curws)/setup.bash'
alias wscd='cd $(cat ~/.curws)/../src'
# Source a catkin workspace
@jbohren
jbohren / optimus_precise.md
Created January 7, 2014 21:20
NVidia Optimus with Ubuntu 12.04

First, uninstall everything nvidia: sudo apt-get purge nvidia-*

Second, add the precise-proposed package archive:

sudo sh -c 'echo "deb http://archive.ubuntu.com/ubuntu/ precise-proposed restricted main multiverse universe" > /etc/apt/sources.list.d/ros-latest.list'

Third, install nvidia-prime>=0.5 and nvidia drivers:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>ABI compliance report for library libcamera_info_manager.so update from 1.10.4 to 1.10.5 version on x86_64
</title>
<!--Styles-->
<style type="text/css">
hr{color:Black;background-color:Black;height:1px;border: 0;}