Code Monkey home page Code Monkey logo

openvr_ros's Introduction

openvr_ros

This package connects to SteamVR through OpenVR SDK and publishes tracking information of all connected devices (i.e. headsets, controllers, and trackers) to ROS.

This package is tested with Ubuntu 16.04, ROS Kinetic, and HTC Vive.

For calibration of frame origins and CAD model sizes please watch:

Calibration of HTC Vive ROS interface with a point cloud sensor

Installation

# AppID of SteamVR on Steam store is 250820: https://steamdb.info/app/250820/
steamcmd +login anonymous +app_update 250820 +quit
cd
wget https://raw.githubusercontent.com/ValveSoftware/steam-devices/master/60-steam-vr.rules
sudo mv 60-steam-vr.rules /etc/udev/rules.d/
sudo udevadm control --reload && sudo udevadm trigger
git clone https://github.com/ValveSoftware/openvr.git
cd openvr
mkdir build && cd build
cmake ..
make
sudo make install
  • Clone the openvr_ros package into your catkin workspace.
cd <path_to_your_catkin_workspace>
catkin_make

Usage

  • Connect your VR device.
  • Run SteamVR, then calibrate the device:
cd ~/.steam/SteamApps/common/SteamVR/bin
STEAM_RUNTIME=0 ./vrstartup.sh >> /dev/null 2>&1
  • Run the tracker:
source <path_to_your_catkin_workspace>/devel/setup.bash

roslaunch openvr_ros start.launch

TODO

  • Publish all tracking information for the headset, controllers, and trackers.
  • Add 3D models of the headset and controllers/trackers to the rviz visualization.
  • Publish controller states.
  • Publish events, e.g. button press, device connections, standby, etc.

Issues

Please file issues under the issues tab.

References

openvr_ros's People

Contributors

sharif1093 avatar

Stargazers

 avatar JiangYancheng avatar  avatar  avatar  avatar Xiaohan Liu avatar  avatar Jonas Dech avatar Kasra avatar Erik Sebastian avatar Vinicius Schettino avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.