Adding Body Tracking in ROS 2
The ROS 2 wrapper offers full support for the Body Tracking module of the ZED SDK. The Body Tracking module is not available for the older ZED camera model.
The Body Tracking module can be configured to use one of the available detection models:
|Keypoints based, specific to human skeleton, real time performance even on NVIDIA® Jetson or low end GPU cards|
|Keypoints based, specific to human skeleton, compromise between accuracy and speed|
|Keypoints based, specific to human skeleton, state of the art accuracy, requires powerful GPU|
The Body Tracking module can be configured to use one of the available body formats:
|18 keypoints model. Basic Body model|
|34 keypoints model. Body model, requires body fitting enabled|
|38 keypoints model. Body model, including feet simplified face and hands|
|70 keypoints model. Body model, including feet and full hands models (and simplified face)|
Enable Body Tracking #
Body Tracking can be started automatically when the ZED Wrapper node starts by setting the parameter
true in the file
It is also possible to start the Body Tracking processing manually by calling the service
with the parameterTrue`.
In both cases, the Body Tracking processing can be stopped by calling the service
with the parameterFalse`.
See the services documentation for more info.
Body Tracking results in RVIZ2 #
To visualize the results of the Body Tracking processing in Rviz2 the new
ZedOdDisplay plugin is required. The plugin is available in the zed-ros2-examples GitHub repository and can be installed following the online instructions.
Topic: Selects the body tracking topic to visualize from the list of available images in the combo box.
Depth: The depth of the incoming message queue.
History policy: Set the QoS history policy.
Keep Lastis suggested for performance and compatibility.
Reliability Policy: Set the QoS reliability policy.
Best Effortis suggested for performance and compatibility.
Durability Policy: Set the QoS durability policy.
Volatileis suggested for compatibility.
Transparency: the transparency level of the structures composing the detected bodies.
Show skeleton: enable/disable the visualization of the skeleton of the detected persons.
Show Labels: enable/disable the visualization of the label.
Show Bounding Boxes: enable/disable the visualization of the bounding boxes of the detected bodies.
Link Size: the size of the bounding boxes’ corner lines and skeleton link lines.
Joint Radius: the radius of the spheres placed on the corners of the bounding boxes and on the skeleton joint points.
Label Scale: the scale of the label of the bodies.