RTABMAP-ROS "NO TF DATA RECEIVED"
I have been trying to follow the tutorial for rtabmap-ros for my turtlebot2, Upon trying roslaunch rtabmap_ros demo_turtlebot_mapping.launch
. I get these errors:
[ WARN] [1648357457.044432946]: Timed out waiting for transform from base_footprint to map to become available before running costmap, tf error: canTransform: target_frame map does not exist. canTransform: source_frame base_footprint does not exist.. canTransform returned after 0.10011 timeout was 0.1.
[ WARN] [1648357458.230320502]: /rtabmap/rtabmap: Did not receive data since 5 seconds! Make sure the input topics are published ("$ rostopic hz my_topic") and the timestamps in their header are set. If topics are coming from different computers, make sure the clocks of the computers are synchronized ("ntpdate"). If topics are not published at the same rate, you could increase "queue_size" parameter (current=10).
/rtabmap/rtabmap subscribed to (approx sync):
/camera/rgb/image_rect_color \
/camera/depth_registered/image_raw \
/camera/rgb/camera_info \
/scan
I look into my TF tree to see that no tf data is being received AT ALL. I don't know whats happening or how to fix it
Asked by distro on 2022-03-27 01:00:42 UTC
Answers
Show frame rate of the topics shown in the warning:
rostopic hz /camera/rgb/image_rect_color \
/camera/depth_registered/image_raw \
/camera/rgb/camera_info \
/scan
If some topics are missing, try debugging which nodes are supposed to publish them, or check if the actual topics you have on your robot are the same. You can remap them if so.
Asked by matlabbe on 2022-04-10 21:42:48 UTC
Comments
@matlabbe how do I show frame rates? Will the frame rates help me know which topics are missing?
Asked by distro on 2022-04-11 12:31:11 UTC
rostopic hz
command shows the current rate of the topics. If no rate is shown for a topic, it means the topic is not published.
Asked by matlabbe on 2022-04-11 15:41:25 UTC
Comments