Skip to content

Software

vrpn_mocap

From github.com/alvinsunyixiao/vrpn_mocap (opens in a new tab)

  • Perception
  • Driver or SDK
  • MIT

A ROS2 client for the VRPN protocol that receives pose data from motion capture systems such as VICON and OptiTrack and publishes it as ROS topics.

Facts

GitHub stars
41read on 29 Nov 2026
Last update
25 Sept 2026Newest commit on main
Maintenance
Activea commit in the last 90 days
Difficulty
Intermediate

Checked on GitHub on 29 Nov 2026.

Licenses

Code
MIT (opens in a new tab)

Read by Robotheca from LICENSE (opens in a new tab) (MIT) at commit 1414a4f (opens in a new tab), on 16 Oct 2026.

Commercial use
Yes

At a glance

What it is
  • Connects to a VRPN server by IP address or domain name and port, defaulting to localhost on port 3883.
  • Publishes a pose topic for each tracked object, named after the tracker.
  • Optionally publishes twist and acceleration topics when the motion capture system reports velocity or acceleration.
  • Can be installed from a binary release package or built from source in a ROS2 workspace with colcon.
  • Configurable update and refresh frequencies, quality-of-service settings, and support for multiple sensors reporting on the same object.
  • Can use timestamps from VRPN so that the interval between frames is preserved.

Robotheca's summary of the project's documents, not the creator's words.

Robots on Robotheca
No robot on Robotheca uses it yet.
Licence
MIT. Commercial use: Yes. Where it was read
Install
In the creator's words: The project's README (opens in a new tab)
Maintenance
Active, last commit on 25 Sept 2026.

Use it

How to install it, in the creator's words: The project's README (opens in a new tab)

Robotheca doesn't review code. Read it before running it.

Files and versions

Facts read at commit 1414a4f

Robotheca never hosts the code: each link goes to the creator's own page.

The README

The creator's own README, copied as written: README.md by @alvinsunyixiao, at commit 1414a4f, under MIT (opens in a new tab). The original on GitHub (opens in a new tab).

Read the README here

vrpn_mocap

ROS2 VRPN (opens in a new tab) client built pirmarily to interface with motion capture devices such as VICON and OptiTrack. A detailed list of supported hardware can be found on vrpn wiki (opens in a new tab).

Installation
Install From Binary Release

sudo apt install ros-<rosdistro>-vrpn-mocap

Build From Source
  1. Clone this repo into your ROS2 workspace
  2. Run rosdep install --from-paths src -y --ignore-src to install dependencies
  3. Run colcon build
  4. Your usual ROS2 routines: source install/setup.zsh, etc.
Usage
Launch Default Configuration from Command Line

Run the following command,

ros2 launch vrpn_mocap client.launch.yaml server:=<server ip> port:=<port>

replacing <server ip> and <port> with your VRPN server ip and port, e.g.

ros2 launch vrpn_mocap client.launch.yaml server:=192.168.0.4 port:=3883

Then with ros2 topic list, you should be able to see the following topics

/vrpn_mocap/<tracker_name>/pose
/vrpn_mocap/<tracker_name>/twist # optional when mocap reports velocity data
/vrpn_mocap/<tracker_name>/accel # optional when mocap reports acceleration data

where <tracker_name> is usually the name of your tracked objects.

Customized Launch

Check out the default parameter file (opens in a new tab) and launch file (opens in a new tab). You can then write your own launch file with custom configurations.

Parameters
  • server (string) -- server name, either ip address or domain name (default: "localhost")
  • port (int) -- VRPN server port (default: 3883)
  • frame_id (string) -- frame name of the fixed world frame (default: "world")
  • update_freq (double) -- frequency of the motion capture data publisher (default: 100.)
  • refresh_freq (double) -- frequency of dynamic adding new tracked objects (default: 1.)
  • sensor_data_qos -- use best effort QoS for VRPN data stream, set to false to use system default QoS which is reliable (default: true)
  • multi_sensor (bool) -- set to true if there are more than one sensor (frame) reporting on the same object (default: false)
  • use_vrpn_timestamps (bool) -- use timestamps coming from VRPN. This ensures that the interval between frames timestamps is not modified (default: false)
Acknowledgement

Some ideas are borrowed from the well known vrpn_client_ros (opens in a new tab) -- a ROS1 package for interfacing with VRPN devices. I thank the authors and developers for delivering and maintaining the original implementation.

Robotheca lists software as a reference: nothing is hosted or run here, and every fact links to where it was read.