Skip to content

Instantly share code, notes, and snippets.

@mstaflex
mstaflex / distribute.sh
Created February 25, 2014 14:22
Script that distributes all the ROS files from the central control station to the TWISTbots
#!/bin/bash
stations="tbot_unit01 tbot_unit02 tbot_unit03 tbot_unit04 tbot_unit05"
excluds="distribute build msg_gen srv_gen log packs"
# Author Jasper Buesch
####################################################################################
############# DO NOT CHANGE BELOW THIS #############################################
@mstaflex
mstaflex / ros.bash
Created February 10, 2014 13:55 — forked from mchwalisz/ros.bash
#!/bin/bash
RP_BASEDIR=~/Code/ros
export TURTLEBOT_BASE=kobuki
export TURTLEBOT_STACKS=hexagons
export TURTLEBOT_3D_SENSOR=kinect
# source /opt/ros/groovy/setup.bash
source /home/opt/ros-hydro-ws/install_isolated/setup.bash
@mstaflex
mstaflex / vector_util.py
Last active December 27, 2015 19:29
Vektor operations (basic) in python - always need it - always reprogram it - until now ;)
import math
from math import sin, cos, pi
from numpy import dot, matrix, array
from numpy.linalg import norm
#import numpy as np
# author Jasper Buesch
def rotate_vector(angle=0, vector=(0,0)):
rot_mat = matrix( ((cos(angle),-sin(angle)), (sin(angle), cos(angle))) )