Rviz cannot find transform
Hi,
I am trying to visualize a point cloud generated by rtabmap on Rviz, but I am getting the following error:
Transform [sender=unknown_publisher]
For frame [map]: No transform to fixed frame [base_footprint]. TF error: [Could not find a connection between 'base_footprint' and 'map' because they are not part of the same tree.Tf has two or more unconnected trees.]
But I visualized my rqttftree and everything seems connected, as you can see on the image.
Also, when running rtabmap though the stereo launch file, I can see the point clouds generated by the stereo images.
So, what might be wrong?
Asked by czr on 2020-05-28 07:55:30 UTC
Answers
The Error is about base_footprint, but the tf tree shows map -> base_link. I dont see how base_footprint has any relevance here. Either link ekf to base_footprint instead of base_link and footprint to base_link (static transform publisher maybe). Or get rid of base_footprint, depending on robot base.
Asked by Dragonslayer on 2020-05-28 08:49:22 UTC
Comments
Maybe somewhere in the config files there is a reference to base_footprint. If you are not yet mapping or navigating, I would check the rtabmap launchfiles and parameters. Would be helpful if you could post a "rosparam dump" should be the quickest way to find out if its set as a frame_id somewhere.
Asked by Dragonslayer on 2020-05-28 08:54:52 UTC
Thanks for your response,
rosparam dump
only mentions base_footprint
on husky definition.
Here the output:
https://pastebin.com/ZhyxM3LS
Asked by czr on 2020-05-28 17:06:13 UTC
I would suggest making base_footprint the reference:
ekf_localization: base_link_frame: base_link --------> base_link_frame: base_footprint
or get rid of base_footprint in the husky urdf, dont forget the joints though. However Iam not really sure why the build tf tree, that seems to be fine, would block your pointcloud from being displayed.
Asked by Dragonslayer on 2020-05-28 19:21:37 UTC
Comments