ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Moveit with Octomap from SLAM package

asked 2017-06-28 10:07:11 -0600

Notou gravatar image

updated 2017-07-05 10:55:33 -0600

Hello everyone,

I'm using the SLAM package rtabmap, this package is able to output an octomap that's automatically updated on loop closures

I want to use moveit to navigate my drone in its environnement (that works) but I don't want moveit to compute another occupancy map since I already have rtabmap to do it and rtabmap's map is more accurate than anything moveit could do.

So here is my question:

How could I feed moveit with an external octomap (and disable the internal octomap computation)?

Thanks a lot.

I made it work! Here is the corresponding repo:

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2017-06-28 13:42:58 -0600

v4hn gravatar image

updated 2017-06-28 13:43:19 -0600

To make MoveIt stop building its own map just disable the OccupancyMapUpdater that is configured in your moveit config. To get the rtabmap-octomap into the move_group node you will have to write a new OccupancyMapUpdater plugin, or re-/ab-use the pointcloud_octomap_updater plugin at the cost of possibly big delays.

edit flag offensive delete link more


Thanks, This seem the proper solution. I'll mark your answer when I finally manage to have it working :)


Yep, it works!

Notou gravatar image Notou  ( 2017-07-04 05:24:12 -0600 )edit

Do you have the new plugin available online? This is clearly of interest to others, so I would very much encourage you to put it into some repository online (or contribute it to MoveIt! if you don't wish to maintain it).

v4hn gravatar image v4hn  ( 2017-07-05 06:55:01 -0600 )edit

It's not directly from a topic, but a possible alternative could have been the moveit_msgs/LoadMap service that is exposed by the OccupancyMapMonitor in MoveIt?

gvdhoorn gravatar image gvdhoorn  ( 2017-07-07 09:19:51 -0600 )edit

It's a possibility yes, and it would be easier too. That being said, I did not really consider it because I don't really like the idea of having to write and read a file that can be quite big more than once a second...

Notou gravatar image Notou  ( 2017-07-07 12:00:58 -0600 )edit

I was not aware you wanted to refresh the octomap, I had understood that it was a one-time thing. Using services for a continuous update is not a good idea.

gvdhoorn gravatar image gvdhoorn  ( 2017-07-07 12:03:54 -0600 )edit

Hi, I'm also feeding external Octomaps to MoveIt, but I do so via publishing a PlanningScene message (that contains an Octomap message) to the topics "/move_group/monitored_planning_scene" and "/planning_scene". Is there a (dis)advantage to this method in comparison to OP's custom plugin approach?

JunTuck gravatar image JunTuck  ( 2021-10-26 09:40:42 -0600 )edit

Question Tools

1 follower


Asked: 2017-06-28 10:07:11 -0600

Seen: 1,119 times

Last updated: Jul 05 '17