Skip to content

ROS nodes for working with the NaturalPoint Optitrack motion capture setup

Notifications You must be signed in to change notification settings

PREDICT-EPFL/mocap_optitrack

 
 

Repository files navigation

ROS Nodes for NaturalPoint Optitrack Motion Capture System

A ROS package for extracting streaming information from Optitrack system and publishing rigid-body and free marker information.

This has been tested in the EPFL Predict setup with Motive 3.0.1 and ROS2 Humble.


Installation and Setup

Clone this repository to your ROS [ROS_WS]/src folder and then run catkin_make to build the package.

ROS Configuration

Modify the mocap_optitrack/config/mocap.yaml configuration file. The optitrack_config parameters in this file are currently set for the EPFL Predict setup. Set free_markers to true if you want all unlabeled markers (not belonging to rigid bodies) to be published. Define a new rigid-body for each rigid-body that is being tracked by the Optitrack system that you want published. The number corresponds to the Streaming ID value set in the Motive software for the particular asset. The remaining parameters for each rigid-body specify the ROS topic name information.

Motive:Tracker Configuration

Create any assets in the scene that you want to stream information for.

Enable Broadcast Frame Data

Under View -> Data Streaming Pane make sure Local Interface is set to the IP address of the computer running Motive:Tracker corresponding to the network that is used to share the data stream.

Enable Rigid Bodies and Unlabeled Markers

Set Transmission Type to Multicast

Ensure the Command Port, Data Port, and Multicast Interface match the values in the mocap_optitrack/config/mocap.yaml configuration file.


Use

Run the mocap ROS node by:

roslaunch mocap_optitrack mocap.launch

About

ROS nodes for working with the NaturalPoint Optitrack motion capture setup

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 94.4%
  • Python 3.1%
  • CMake 2.5%