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

Moveit with Octomap from SLAM package

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

Notou gravatar image

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

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: https://github.com/Notou/Moveit-External-Octomap-Updater

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

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

v4hn gravatar image

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

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

Comments

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

edit:

Yep, it works!

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

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 -0500 )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 -0500 )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 -0500 )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 -0500 )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 -0500 )edit

Question Tools

1 follower

Stats

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

Seen: 1,158 times

Last updated: Jul 05 '17