Skip to content

Instantly share code, notes, and snippets.

@rpavlik
Created Sep 3, 2014
Embed
What would you like to do?
SpaceMouse (Magellan) on Linux using VRPN
#!/bin/sh
# shell script - put in bin along with your vrpn server
exec vrpn_server -f $(cd $(dirname $0) && cd ../etc && pwd)/spacemouse.cfg
# I have a serial SpaceMouse Plus XT on my only hardware serial port
vrpn_Magellan Magellan0 /dev/ttyS0 9600 altreset
# For a good simulated wand for testing VR Juggler applications with a SpaceMouse:
vrpn_Tracker_AnalogFly Tracker0 60.0 differential
X *Magellan0 0 0.0 0.0 20.0 1
Y *Magellan0 1 0.0 0.0 20.0 1
Z *Magellan0 2 0.0 0.0 20.0 1
RX *Magellan0 3 0.0 0.01 -5 1.0
RY *Magellan0 4 0.0 0.01 -5 1.0
RZ *Magellan0 5 0.0 0.01 -5 1.0
RESET NULL 0
CLUTCH NULL 0
WORLDFRAME
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment