Read-only mirror of https://github.com/ethz-asl/ros_vrpn_client — ETHZ ASL. Issues & pull requests at the source.
  • C++ 92.2%
  • Python 5.4%
  • C 1.4%
  • CMake 1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Acey 073fdab2d4
Merge pull request #65 from ethz-asl/feature/ubuntu_22
switch to c++17 for ubuntu 22.4 support
2025-04-11 11:38:45 +02:00
.github/workflows Checkout glog_catkin in CI 2025-04-10 18:57:03 +02:00
include Couple more corrections. 2016-06-07 11:37:18 +02:00
launch added capability_group argument to launch file 2022-06-17 09:17:29 +02:00
msg Small clean up. 2016-06-06 16:53:39 +02:00
src Migration to tf2 2023-01-11 12:39:51 +00:00
viz imported original code 2014-11-03 14:30:17 +01:00
.gitignore Adding stuff for complete crash handeling and code clean up 2016-06-06 14:33:31 +02:00
CMakeLists.txt switch to c++17 for ubuntu 22.4 support 2025-04-10 12:53:03 +02:00
LICENSE Initial commit 2014-11-03 14:16:53 +01:00
package.xml Migration to tf2 2023-01-11 12:39:51 +00:00
README.md fixed style in README.md 2015-12-14 09:31:11 +01:00

ros_vrpn_client

Ros interface for http://www.cs.unc.edu/Research/vrpn/

Dependencies

vrpn_catkin package from: https://github.com/ethz-asl/vrpn_catkin

Usage

You have to start a ROS node per tracked object and the ROS node name has to be the name of the trackable object.

 rosrun ros_vrpn_client ros_vrpn_client _object_name:=object_name _vrpn_server_ip:=192.168.1.1

Or in a launch file:

<arg name="object_name" default="some_object_name" />
<node name="some_object_name_vrpn_client" type="ros_vrpn_client" pkg="ros_vrpn_client" output="screen">
 <param name="vrpn_server_ip" value="192.168.1.100" />
 <param name="object_name" value="$(arg object_name)" />
 <!-- or directly:
 <param name="object_name" value="some_object_name" /> -->
</node>

Installation HowTo

Installation Ubuntu

A catkinized version of VRPN can be found here: https://github.com/ethz-asl/vrpn_catkin

For further information about VRPN, please consult their website: https://github.com/vrpn/vrpn

Installation OS X

Use the catkinized package above.

TF coord frames

  1. /optitrak - world frame that we will use. - X axis is along the x axis of the calibration pattern. - Z axis is vertically up.

  2. Every tracked object has a coord frame whose TF name is the name of the ros node (given from the launch file or command line).

    Hitting "Reset To Current Orientation" in the TrackingTools software (Trackable properties) aligns the object coord frame with the /optitrak frame.

Coord frames vodoo

The TrackingTools software outputs the position and orientation in a funky coord frame which has the Y axis pointing vertically up, the X axis along the x axis of the calibration square and Z axis along the -ve z axis of the calibration square.

We perform some rotations to get rid of this funky frame and use the /optitrak frame described above as our fixed world coord frame. The code is in the "VRPN_CALLBACK track_target" function in ros_vrpn_client.cpp