Skip to content

marco-ambrosio/mocap4r2

 
 

Repository files navigation

MOCAP4ROS2

GitHub Action Status codecov

This project provides support for ROS2 integration with Vicon cameras (MOCAP systems based on vision) and Technaid TechMCS IMUs (MOCAP systems based on motion sensors).

The project MOCAP4ROS2 is funded as a Focused Technical Project by ROSIN.

rosin_logo

Supported by ROSIN - ROS-Industrial Quality-Assured Robot Software Components.
More information: rosin-project.eu

eu_flag

This project has received funding from the European Union’s Horizon 2020
research and innovation programme under grant agreement no. 732287.


mocap4ros_arch


Description

This fork allows to read data from Vicon tracker and publish a ROS2 odometry message for a rigid body (atm only a single rigid body is supported). Body poses comes directly from Vicon readings, while linear and angular velocities are computed from differentiation of positions and orientations between 2 timestamps. For additional info about angluar velocities computation, see: https://mariogc.com/post/angular-velocity-quaternions/.

Usage

To run the node, use the following command:

ros2 launch mocap4r2_robot_gt mocap4r2_robot_gt.launch.py

After construction, the Vicon odometry message is published under /vicon/odom, together with the additional frame base_link_gt which is the center of the Vicon rigid body.

Note that, with this node, no precise alignment or positioning of the robot is needed. Just place the robot within the cameras workplace and start any localization stuff. To align the computed odometry with the ground truth one obtained from Vicon, you can use the service /mocap4r2_gt/set_get_origin with zero arguments, to align base_link_gt frame with odom frame.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 69.4%
  • Python 21.3%
  • CMake 9.3%