stereolabs / zed-ros-examples

Examples for the ZED SDK ROS wrapper
https://www.stereolabs.com/docs/ros/
MIT License
85 stars 51 forks source link

"rosrun zed_tracking_sub_tutorial zed_tracking_sub" gives nothing back #17

Closed cnpcshangbo closed 4 years ago

cnpcshangbo commented 4 years ago

Hi, I have followed the steps to install ROS wrapper and example. The ZED 2 node works wells. I am able to use rviz to check topics. However, when I run the tracking sub, it gives nothing back. Hope to get your suggestions. Thanks, Bo

Myzhar commented 4 years ago

Hi @cnpcshangbo the tutorial has been written with the "original zed" in mind and it does not take in consideration the fact that the "zed mini" and the "zed2" use different namespaces.

To correctly get the output you must remap the topics to match the correct names: $ rosrun zed_tracking_sub_tutorial zed_tracking_sub /zed/zed_node/odom:=/zed2/zed_node/odom /zed/zed_node/pose:=/zed2/zed_node/pose

Let me know if this works for you.

cnpcshangbo commented 4 years ago

Hi @Myzhar It works for me. Thanks. Bo