This document provides instructions for replicating the setup used by participating HAPTIX teams.
Please note that you can install the full simulation environment on a standalone Linux machine by simply following the installation tutorial. This tutorial is for users who want to integrate 3D vision and motion capture for a full virtual reality experience.
There are two options to replicate the HAPTIX setup. One requires two physical computers, and the other requires one Linux computer (with a virtual machine installed).
The two-computer HAPTIX system consists of both Linux computer and a Windows computer. Gazebo relies on Linux, while OptiTrack must run on Windows. A USB switch allows these two computers to share a single monitor, keyboard, and other peripherals. The following diagram depicts the connections between each component in the system.
Connect both the Linux computer and the Windows computer to power.
Connect the Linux computer to the monitor using the DisplayPort cable and the Windows computer with the DVI cable.
Connect one Nvidia emitter to a USB port on the Linux computer.
Connect the VESA cable of the same emitter to the 3-pin DIN port on the back of the Linux computer.
If you are using stereo on the Windows computer: connect a second Nvidia emitter to the Windows computer.
The USB switch has two USB cables. Connect one to the Linux computer and one to the Windows computer.
Connect the keyboard and mouse to the USB switch.
Connect the 2-port hub to the USB switch. Optionally connect the 2-port hub to its power adaptor.
Connect the Spacenav to the 2-port hub.
Power on the computers.
You should see the Nvidia stereo emitter shine dull green when the computer it is connected to is powered on.
You may need to charge the Nvidia glasses before using them. Plug them into the computer using the micro-USB cable.
To switch between the two computers, press the button connected to the USB switch, and use the buttons on the monitor display to switch the input source (pictures).
For a one-computer setup, one Linux computer is required. A Windows virtual machine must be installed on the Linux computer to interface with the Optitrack. (You can learn more about virtual machines here.)
Connect the Linux computer to power.
Connect the monitor to the computer via DisplayPort.
Connect all of the USB peripherals (keyboard, mouse, Spacenav, OptiTrack, emitter, and glasses if they need to be charged) to the Linux computer.
Connect the emitter to the 3-pin port on the back of the computer with the VESA cable.
Power the computer on.
Make sure to connect your computer to the internet with an Ethernet cable before continuing.
To install the full simulation environment, open a Terminal (under "Applications", "Accessories") and type:
sudo apt-get install handsim
If this command does not work, you need to tell your computer it's okay to accept software from OSRF:
sudo sh -c 'echo "deb http://packages.osrfoundation.org/gazebo/ubuntu `lsb_release -cs` main" > /etc/apt/sources.list.d/gazebo-latest.list' wget https://packages.osrfoundation.org/gazebo.key -O - | sudo apt-key add -; sudo apt-get update sudo apt-get install handsim
You can start Gazebo in the terminal by typing:
gazebo --verbose worlds/arat.world
The HAPTIX teams were provided with a set of user-friendly icons and startup scripts. To replicate this setup, install the
haptix-tools package with the following instructions.
haptix-tools package may be harmful to an existing desktop environment. In particular, if you have heavily modified your
xorg.conf, you may want to avoid installing
Create a new user called "haptix" by going to "System Tools", "Administration" and "User Accounts".
Open a terminal and type:
sudo adduser haptix sudo
to add the new user to the sudoers list. Reboot the machine.
Log back in as the new
haptix user, open a terminal and type:
sudo apt-get install haptix-tools
On the desktop, you should see three icons.
haptixStart: Double-click to launch the Gazebo prosthetic arm simulator.
haptixUpdate: Double-click to check for software updates and install them if found.
haptixSupport: This will open up a secure connection with the support staff at OSRF for troubleshooting purposes. If your simulation system or connection to peripheral hardware appears broken, please contact firstname.lastname@example.org and schedule a support session. Then double-click on this icon to initiate the connection.
checkStereo: This will open a window that displays two rotating gears in stereo. Use this icon to test whether stereo is enabled on your system.
On your Linux machine, follow the link on this website to install VMWare player for Linux 64-bit.
Download the Windows virtual machine image from the OSRF web servers from here. WARNING: this is a large file, about 5 gigabytes.
Untar the file to
~/vmware. The tarball should contain a file ending in
.vmx. Start VMware Player using the graphical menu icon or in the terminal by typing
.vmx file in VMWare Player. This should start the Windows virtual machine.
To find the correct Nvidia drivers for stereo vision, go to
this page and use the drop-down menus
to select your video card model. For the
Operating System field, be sure to select "Linux 64-bit".
On the next page, note the number in the "Version:" field, but do not download anything. Ignore the part of the version number after the dot. For example, if the Nvidia website said your required driver version was 346.59, the version number is simply "346", ignore the ".59" part.
If the version number is between 304 and 331:
sudo apt-get install nvidia-<version number>
If the number is greater than 331, you will need to install nvidia drivers from a PPA. Type the following into the terminal:
sudo add-apt-repository -y ppa:xorg-edgers/ppa sudo apt-get update
sudo apt-get install nvidia-<version number>
You will need to restart your computer for the new drivers to take effect.
Make sure the stereo glasses are charged and turned on and the emitter is glowing dull green.
Double click on the Gazebo icon. You should see the Gazebo window come up, displaying the simulated prosthetic arm and manipulation environment. You should also see the stereo emitter change to bright green, indicating that stereo has been turned out.
The screen should appear "blurry", as if there are two images on top of each other.
Put the glasses on. The Gazebo window should look 3D.
You can use the keyboard to move the arm and the mouse to change the viewpoint. Or, you can use the Spacenav to control the arm and viewpoint position. Press the button on the Spacenav to toggle between arm and viewpoint. The number keys (1-5) will control pre-defined grasps (see the teleop tutorial for more information).
Move to the next tutorial for instructions on configuring the OptiTrack 3D camera for viewpoint and arm pose control.
If the screen does not look blurry and stereo does not work, contact OSRF support (email@example.com).
Disconnecting and reconnecting the emitter will cause it to glow red and stop functioning. This is usually fixable by logging out and logging back in again. If at any point the emitter is red and logging off does not fix the emitter, please contact OSRF support.
If the Spacenav is non-functional, first check if the blue LED light is on. If it is on, open up a Terminal and type:
sudo service spacenavd restart
You will have to type in your password.
If the Spacenav does not glow blue even if it is connected, or the terminal command does not work, contact OSRF support.
If Gazebo does not load or the arm is unresponsive to keyboard input, contact OSRF support.