Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ROS2 Humble runs rtabmap slam, there is data in /mapData but no 3D map appears in rviz2 #1150

Open
miku54 opened this issue Apr 24, 2024 · 5 comments

Comments

@miku54
Copy link

miku54 commented Apr 24, 2024

Hi everyone, I'm using ros2-humble to test rtabmap slam and navigation, using [sudo apt install ros-humble-rtabmap-*] to install the algorithm with version number 0.21.4-2 jammy.20240416. My steps are as follows:

  1. Start lidar
  2. Start the binocular camera
  3. Start rtabmap slam
    During the test, it was found that everything ran normally, with 0 errors and 0 warnings. I cannot view the 3D map in rviz2. Is there any problem with the operation?
    7efc7b754f4780e42798ead50e1ee66b
@matlabbe
Copy link
Member

You have "Cloud from scan" checked in MapCloud plugin, to see the camera cloud, uncheck that.

@miku54
Copy link
Author

miku54 commented Apr 29, 2024

You have "Cloud from scan" checked in MapCloud plugin, to see the camera cloud, uncheck that.

I want to prove in this way that there is no problem with rtabmap navigation. When I try to open an rviz2 again and cancel Cloud from scan, I still cannot display the 3D map? Is it a problem with the Raspberry Pi?

@matlabbe
Copy link
Member

I am not aware of your full config, but there could be a possibility that rtabmap node is not subscribed to image data. You can also use rtabmap-databaseViewer, to verify that you have image and scan data in the database.

@miku54
Copy link
Author

miku54 commented Apr 29, 2024

I am not aware of your full config, but there could be a possibility that rtabmap node is not subscribed to image data. You can also use rtabmap-databaseViewer, to verify that you have image and scan data in the database.

When I perform the above steps, running in another terminal: ros2 topic info /Mapdata shows that a node is subscribed to it. In this case, can we rule out the reason that the rtabmap node may not be subscribed to image data? I haven't tried rtabmap-databaseViewer yet. Based on the output of ros2 topic echo /Mapdata, it should be possible to determine that there is image data in the database. If you need more information, please let me add it. (;_;)

@matlabbe
Copy link
Member

With MapData msg, if nodes has image field left set in their SensorData, then yes images are there:
http://docs.ros.org/en/noetic/api/rtabmap_msgs/html/msg/SensorData.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants