I hereby claim:
- I am adamheins on github.
- I am adamheins (https://keybase.io/adamheins) on keybase.
- I have a public key whose fingerprint is BE6E 8AB0 440B 2DA4 9880 A284 8393 976B CE8F 5796
To claim this, I am signing this object:
import numpy as np | |
import pybullet as pyb | |
import pybullet_data | |
def make_box( | |
position, half_extents, orientation=(0, 0, 0, 1), mass=1.0, color=(1, 0, 0, 1) | |
): | |
collision_uid = pyb.createCollisionShape( | |
shapeType=pyb.GEOM_BOX, |
# run a secondary ROS and Gazebo instance | |
# | |
# when starting ROS master, the new port needs to be specified: | |
# roscore -p $ROS_PORT | |
# | |
# gzweb does not require any environment variables, but the port must be | |
# specified when gzweb is started: | |
# npm start -p $GZWEB_PORT | |
# | |
# Gazebo does not require any special options when run |
if [ -d /opt/ros/kinetic ]; then | |
source /opt/ros/kinetic/setup.bash | |
# path to charlottetown installation | |
export DSL_ROS_DIR=~/dev/charlottetown | |
if [ -f "$DSL_ROS_DIR"/extras/devel/setup.bash ]; then | |
source "$DSL_ROS_DIR"/extras/devel/setup.bash | |
fi | |
if [ -f "$DSL_ROS_DIR"/dsl/devel/setup.bash ]; then |
#!/bin/bash | |
# Get the name of the current network if one is not provided. | |
if [ -z "$1" ]; then | |
network_name=$(iwconfig 2>&1 | grep "SSID" | cut -d '"' -f2) | |
else | |
network_name=$1 | |
fi | |
# Probably very system-dependent on Ubuntu and on using NetworkManager. |
#!/usr/bin/env python | |
from __future__ import print_function | |
import os | |
CMAKELISTS_FILE_NAME = 'CMakeLists.txt' | |
I hereby claim:
To claim this, I am signing this object:
#!/bin/zsh | |
# Author: Adam Heins | |
# Date: 2015-10-22 | |
t() { | |
# Make the ~/.t directory if it does not exist. | |
[ ! -d ~/.t ] && mkdir ~/.t | |
if [ -z "$1" ]; then |
# ALT-C - cd into the selected directory or open file | |
fzf-cd-widget() { | |
local p="${$(command \find -L . \( -path '*/\.*' -o -fstype 'dev' -o -fstype 'proc' \) -prune \ | |
-o -print 2> /dev/null | sed 1d | cut -b3- | $(__fzfcmd) +m):-.}" | |
if [ -d "$p" ]; then | |
cd "$p" | |
elif [ -f "$p" ]; then | |
"$EDITOR" < /dev/tty "$p" | |
else | |
echo "$p" |
# Sourced here: | |
# https://gist.github.com/2491147 | |
# | |
# Modified by Adam Heins | |
# | |
# Usage: git submodule rm [-c] <path/to/submodule> | |
# You must be in the root of the git repository to use this command. The -c | |
# (or --clean) option indicates that the submodule files should also be removed | |
# from the working tree. |
import imp | |
import os | |
def secret_import(path): | |
""" Alternative way to import a module that allows importing of hidden | |
directories and files. """ | |
if os.path.isdir(path): | |
name = path.split(os.path.sep)[-1] | |
if name[0] == '.': | |
name = name[1:] |