This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from morse.builder import * | |
# Append robot to the scene | |
robot = Robot('Wifibot.blend') | |
robot.name = 'wifibot' | |
# Append an actuator | |
motion = Actuator('v_omega') | |
motion.name = 'motion' | |
motion.translate(z = 0.3) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from morse.builder import * | |
# Add the Segway RMP 400 | |
robot = Robot('segwayrmp400') | |
# Add a motion controler (v,w) | |
motion = Actuator('v_omega') | |
motion.name = 'cmd_vel' | |
motion.translate(z = 0.3) | |
robot.append(motion) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
names="gama gama.wiki gama.models" | |
sec=$(date +%s) | |
for name in $names; do | |
echo "svn to git for $name" | |
cd ~/sandbox | |
mkdir tmp.${name}.old.git.${sec} | |
cd ~/sandbox/svn.${name} | |
svn cleanup |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
replace() { | |
old=$1 | |
new=$2 | |
files=$(grep "$old" . -lr --exclude="*.pyc" --exclude="*.blend" \ | |
--exclude="$0" --exclude-dir="build" --exclude-dir=".git") | |
for f in $files; do | |
sed -i "s/import $old/import bge/g" $f |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
testresult=$(mktemp) | |
roscore & | |
rospid=$! | |
sleep 5 # TODO find better way to wait roscore init (no flush stdout...) | |
echo " | |
############################################################################### | |
Start Testing |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* build as ../gradlew installApp | |
* run as ./build/install/proteus_java/bin/proteus_java proteus.Wander base_scan:=/beego/scan cmd_vel:=/beego/velocity | |
*/ | |
package proteus; | |
import org.apache.commons.logging.Log; | |
import org.ros.message.MessageListener; | |
import org.ros.concurrent.CancellableLoop; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<title>wander rosjs</title> | |
<meta http-equiv="content-type" content="text/html; charset=utf-8"> | |
<script type="text/javascript" src="ros.js"></script> | |
<script type="text/javascript"> | |
(function () { // [onload] | |
Array.prototype.sum = function (begin, end) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
Takes snapshot of full webpages using Webkit and Qt4 | |
usage: | |
python web2png.py URL [FILE] | |
example: | |
python web2png.py http://python.org out.png | |
see: | |
http://riverbankcomputing.com/static/Docs/PyQt4/html/qwebview.html#load |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from morse.builder import * | |
# EDIT HERE | |
depth = False # edit {True, False} for {depth, video} camera | |
memoryview = False # edit {True, False} for {memoryview, bytes} | |
# Append ATRV robot to the scene | |
atrv = Robot('atrv') | |
# Append an actuator |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# HOWTO Install MORSE w/ Depth camera support for ROS Fuerte | |
sudo apt-get install ros-fuerte-desktop-full python-rosinstall python-rosdep cmake | |
cd ~/work | |
wget http://python.org/ftp/python/3.3.0/Python-3.3.0.tgz | |
tar -xzvf Python-3.3.0.tgz | |
cd Python-3.3.0 | |
./configure |