rtabmap_ros icon indicating copy to clipboard operation
rtabmap_ros copied to clipboard

How can I use RTAB-Map to display temporary obstacles in OctoMap during localization mode?

Open yuan-0816 opened this issue 1 year ago • 1 comments

My Environment: Ubuntu 22.04 ROS2 Humble

I have already built a map using RTAB-Map, but later on, I want to perform real-time 3D path planning using OctoMap. Therefore, I need to consider temporary obstacles (e.g., moving pedestrians). How can I achieve this? Your assistance would be greatly appreciated!

Additionally, are there any methods for real-time path planning using OctoMap? (This is for an autonomous drone project).

Screenshot from 2024-01-09 21-10-23

Screenshot from 2024-01-09 21-10-10

yuan-0816 avatar Jan 09 '24 13:01 yuan-0816

If rtabmap is launched in localization mode, parameter Grid/RayTracing is enabled and map_always_update is set to true, then the OctoMap will be updated with dynamic obstacles (also clearing them if possible).

Another option is to use the OctoMap created by rtabmap only for global planning assuming everything is static, then have a local voxel grid for obstacle avoidance when trying to follow the global plan (similar to this example).

For general 3D planning, there is the OMPL library: https://ompl.kavrakilab.org/

Specifically for drones, you may ask on https://github.com/PX4/PX4-Autopilot to know what people are using for indoor trajectory planning.

matlabbe avatar Jan 19 '24 03:01 matlabbe