Skip to content

Instantly share code, notes, and snippets.

@rpavlik
Created September 3, 2014 17:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rpavlik/6ff7269c0d23813eae76 to your computer and use it in GitHub Desktop.
Save rpavlik/6ff7269c0d23813eae76 to your computer and use it in GitHub Desktop.
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