-
Notifications
You must be signed in to change notification settings - Fork 557
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, which map topics do rtabmap publish to? #417
Comments
|
Hi. Thank you for your answer. I am still a bit confused. Would it be possible to use multiple sessions and continue on the same map, first time using only lidar and next time using only cameras? |
In the examples, when the lidar is used, by default It is possible to merge two lidar scans into a single fake one, that is then provided to rtabmap. (laser scan to PointCloud2 -> aggregate the clouds -> then convert the combined PointCloud2 back to laser scan). If you have many sensors from which you want to detect obstacles, you can convert all data to many PointCloud2 and use rtabmap_ros::PointCloudAggregator to merge them into a single PointCloud2 that can be fed to rtabmap ( Note as I stated previously, the dynamic obstacles or some 3D obstacles don't need to be in the static map, as long as the local costmaps include them when revisiting the area (in which we can combine lidars and cameras easily). For your last question, yes, you can switch from |
Thank you for a very clarifying answer! I will test the different methods and see which gives the best result! :) |
The clearing of the walls may be caused by the ray tracing. Can you share the database? You would have to convert all the different point clouds to the most basic ones, i.e., only XYZ channels, before concatenating them. pcl::copyPointCloud can be used to convert to PointXYZ format. |
Hi.
In the documentation for RTABMAP belonging to ROS1, it says that the rtabmap node publish to the following topics:
When running the RTABMAP node for ROS2 I can use
ros2 node info rtabmap
to see that the node publish nav_msgs/OccupancyGrid to two topics:/map
and/grid_prob_map
.Are these two topics the same as grid_map and proj_map from the documentation? In that case, which are which?
I am using both a 2D lidar scan and a 3D camera, which means i want to save a 2Dmap using both the laser scan and the projected 3D point clouds. I am using the nav2_map_server to save the map which means i have to subscribe to a topic with nav_msgs/OccupancyGrid messages.
The text was updated successfully, but these errors were encountered: