-
Notifications
You must be signed in to change notification settings - Fork 14
Stereo Glasses
wngjs3 edited this page Mar 16, 2018
·
1 revision
This tutorial describes how to setup a machine and Gazebo for use with stereo glasses, such as those provided by Nvidia 3D Vision.
This tutorial assumes that you will be using Ubuntu.
Performance Note: Stencil shadows, as opposed to the default shadow maps, are used when stereo rendering is enabled. Stencil shadows utilize the CPU, which could affect your performance. Reducing the number of light sources in your world will help minimize the impact of the stencil shadows.
Hardware requirements
A 3D ready monitor. This monitor should have a 120Hz refresh rate.
An Nvida Quadro K4000 or better.
Warning: Many Nvidia cards say they support 3D stereo. Such a statement may only be true when using Windows drivers. Make sure there is a 3pin VESA connector on the card, otherwise the card will not work in Linux.
You can check your current graphics card with:
lspci | grep VGA
A complete Nvidia 3D Vision kit: glasses, emitter, sync cable, and usb cable.
Connections
Make sure you are using either a display port or dual-dvi cable. This is needed to support the high refresh rates.
Make sure the IR emitter is connected via both the USB and 3-pin VESA cables.
Make sure the glasses are charged.
Sofware requirements
Ubuntu 14.04 (Trusty).
Nvidia drivers.
sudo apt-get install nvidia-current
Install libogre3d-1.9-dev.
sudo apt-get install libogre3d-1.9-dev
Install nvidia settings.
sudo apt-get install nvidia-settings
Gazebo compiled from source. You may use the Gazebo6 debians when they are made available on July 27, 2015.
If you are using the Unity desktop environment, stereo probably won't work. Install Gnome Classic:
sudo apt-get install gnome-session-fallback
Logout and click on the icon next to your username. Select "GNOME Classic (Metacity)" and log in. Setup Nvidia Stereo
Start nvidia-settings manager.
nvidia-settings
Set the refresh rate to 120Hz. Do not use auto.
Set the resolution to be a fixed value. Do not use auto.
Select the Save to X Configuration File and follow instructions to save to /etc/X11/xorg.conf.
Add stereo option to xorg.conf.
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.original
cd /tmp
nvidia-xconfig -c xorg.conf -o xorg.conf --stereo=10
sudo cp xorg.conf /etc/X11/xorg.conf
Note: The --stereo=10 is for NVIDIA 3D VISION. Use 11 for NVIDIA 3D VISION PRO. For other settings see man nvidia-settings.
At this point your xorg.conf file should look similar to:
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Ancor Communications Inc VG248"
HorizSync 30.0 - 160.0
VertRefresh 50.0 - 150.0
Option "DPMS"
EndSection
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "Quadro K4000"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
Option "metamodes" "nvidia-auto-select +0+0; 1920x1080_100 +0+0"
Option "SLI" "Off"
Option "MultiGPU" "Off"
Option "BaseMosaic" "off"
Option "Stereo" "10"
SubSection "Display"
Depth 24
EndSubSection
EndSection
Restart X by logging out and logging back in.
Verify Stereo
The Nvidia logo on the emitter should glow green. If red, then go back through the previous steps to make sure everything was done correctly.
Open nvidia-settings.
nvidia-settings
Click on X Screen 0.
The Stereo Mode setting should say NVIDIA 3D Vision Stereo.
Install mesa-utils.
sudo apt-get install mesa-utils
Run glxgears in stereo.
glxgears -stereo
You should see blurry gears that look 3D when you put on the glasses.
Setup Gazebo
Edit ~/.gazebo/gui.ini.
gedit ~/.gazebo/gui.ini
Add the following lines, if not already present.
[rendering]
stereo=1
Note: You can disable stereo by using stereo=0, or removing the stereo line.
Run Gazebo.
gazebo worlds/shapes.world
-
Robot Simulators
-
Build a Robot
- Model structure and requirements
- How to contribute a model
- Make a model
- Make a Mobile Robot
- The relationship among Link, Joint and Axis
- Import Meshes
- Attach Meshes
- Add a Sensor to a Robot
- Make a Simple Gripper
- Attach Gripper to Robot
- Nested model
- Model Editor
- Animated Box
- Make an animated model(actor)
- Inertial parameters of triangle meshes
- Visibility layers
-
Model Editor
-
Build a World
-
Tools and utilities
-
Write a plugin
-
Plugins
-
Sensors
-
User input
-
Transport Library
-
Rendering Library
-
Connect to ROS
-
Ros Control - Advanced
-
DRCSIM for ROS Kinetic (Ubuntu16.04)
-
DRCSIM
- DRC Simulator installation
- Launchfile options
- Spawn Atlas into a custom world
- Animate joints
- Atlas Keyboard Teleoperation over ROS
- Teleoperate atlas with a music mixer
- Visualization and logging
- Atlas MultiSense SL head
- How to use the Atlas Sim Interface
- Atlas fake walking
- Grasp with Sandia hands
- DRC vehicle tele-operation
- DRC vehicle tele operation with Atlas
- Sending joint commands with ROS
- Atlas control over ROS with python
- Modify environment
- Atlas switching control modes
- Atlas Controller Synchronization over ROS Topics
- Changing Viscous Damping Coefficients Over ROS Service
- Running BDI controller demo
- Using the RobotiQ 3 Finger Adaptive Robot Gripper
- BDI Atlas Robot Interface 3.0.0 Stand In Example
-
HAPTIX
- HAPTIX software install and update
- HAPTIX C API
- HAPTIX Matlab and Octave API
- HAPTIX Simulation World API
- HAPTIX Teleoperation
- HAPTIX environment setup
- HAPTIX Optitrack Control
- HAPTIX Tactor Glove
- HAPTIX Simulation World API with Custom World Example
- HAPTIX logging
- HAPTIX DEKA Luke hand installation
- HAPTIX Simulation Scoring Plugin Example
-
MoveIt!
-
Rviz & rqt & ROSBAG
- Control Theory
- TroubleShooting
- Solidworks model to URDF
- ROS-Gazebo with MATLab
- MATLab installation in Linux
- [Gazebo simulation with MATLab]