Difference between revisions of "User:Srunyon"
From Immersive Visualization Lab Wiki
(→Starting Joystick) |
(→Starting Joystick) |
||
Line 11: | Line 11: | ||
* There are a few possible ways that this command may not run properly. | * There are a few possible ways that this command may not run properly. | ||
** If the output from the terminal indicates that the "vrpn.xml" configuration file was not found, use the following command: <br><code> ./libusb_general_server XXX </code><br>Where "XXX" is the absolute path to the "vrpn.xml" configuration file. | ** If the output from the terminal indicates that the "vrpn.xml" configuration file was not found, use the following command: <br><code> ./libusb_general_server XXX </code><br>Where "XXX" is the absolute path to the "vrpn.xml" configuration file. | ||
− | ** If the terminal output indicates that: <br><code>libusb couldn't open USB device /dev/bus/usb/XXX/XXX</code><br> There are two solutions | + | ** If the terminal output indicates that: <br><code>libusb couldn't open USB device /dev/bus/usb/XXX/XXX</code><br> There are two solutions: |
− | + | *** Run the previous command again as a <code>sudo</code> command.<br><code> sudo ./libusb_general_server </code> | |
− | + | *** Modify permissions of the USB joystick. <code> sudo chmod a+rw /dev/bus/usb/XXX/XXX </code> | |
− | + | *** Note: Both solutions require sudo privileges. | |
− | *** | + | |
===Troubleshooting=== | ===Troubleshooting=== |
Revision as of 10:04, 3 December 2013
Contents |
Starting Joystick
- Joystick is plugged into USB port.
- Open Terminal window. Note: CalVR and VRPN for joystick tracking will be run in separate terminal windows.
- Navigate to directory containing Joystick tracking executable.
cd /home/neuro/CalVR/bin
- The "vrpn.xml" configuration file should already be in this directory, but if not, the most up to date file location is: "/home/neuro/CalVR/applications/vrpn_libusb_general/vrpn.xml"
- Type the following command into the terminal
./libusb_general_server
- There are a few possible ways that this command may not run properly.
- If the output from the terminal indicates that the "vrpn.xml" configuration file was not found, use the following command:
./libusb_general_server XXX
Where "XXX" is the absolute path to the "vrpn.xml" configuration file. - If the terminal output indicates that:
libusb couldn't open USB device /dev/bus/usb/XXX/XXX
There are two solutions:- Run the previous command again as a
sudo
command.sudo ./libusb_general_server
- Modify permissions of the USB joystick.
sudo chmod a+rw /dev/bus/usb/XXX/XXX
- Note: Both solutions require sudo privileges.
- Run the previous command again as a
- If the output from the terminal indicates that the "vrpn.xml" configuration file was not found, use the following command:
Troubleshooting
- To confirm that the Joystick is plugged in to the head node, open a terminal and type in the command
lsusb
and hit enter.
You should see
Logitech, Inc. ATK3 (Attack III Joystick)
among the listed USB devices.