Ask Your Question

Simultaneous autonomous navigation and mapping

asked 2018-04-05 17:50:44 -0600

Dox gravatar image

updated 2018-09-07 09:23:13 -0600

If I understood it correctly, in RTABMap ROS tutorials mapping and autonomous navigation is a two step process. First mapping is done by driving robot manually and afterwards autonomous navigation can be accomplished using the previously created map.

Is is possible to make my robot autonomously navigate the unknown environment and simultaneously map the area?

I'm running Ubuntu 16.04.4 LTS on an x86 with ROS Kinetic.

Thank you!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2018-04-06 11:51:02 -0600

matlabbe gravatar image

In the tutorial, the example was to map, then do localization like the official turtlebot navigation tutorial using gmapping/amcl. However, like in the original tutorial, you can still send poses to navigation system (move_base) during the mapping phase. To automatically explore the environment, you would have to integrate an exploration package like frontier_exploration, hector_exploration_planner or explore_lite using the map published by rtabmap and remapping the goals sent by the exploration to move_base.


edit flag offensive delete link more


@matlabbe Thanks for a quick response. Besides already mentioned explorers I've found cam_exploration. It is stated that it works along rtabmap_ros package. Is there any particular package that you would recommend using with RTABMap?

Dox gravatar image Dox  ( 2018-04-06 16:35:10 -0600 )edit

Thx to link cam_exploration. If an exploration package is dependent of TF and a 2d occupancy grid map, then it is compatible with rtabmap and many other slam packages. I have limited experience myself with these exploration packages, so I cannot tell which is the best.

matlabbe gravatar image matlabbe  ( 2018-04-06 16:56:33 -0600 )edit

Today I tried to publish 2D nav goal in rviz but got this

[ERROR] [1523105102.467464668]: Cannot connect to move_base action server!

RTABMap did start successfully. I'm testing with this launch file.I also consulted this. Any thoughts?

Dox gravatar image Dox  ( 2018-04-07 15:20:08 -0600 )edit

Make sure the properties of the 2D nav goal button in RVIZ is set to correct goal topic of move_base. See , looks like in your launch file that the goal topic would be /planner/move_base_simple/goal

matlabbe gravatar image matlabbe  ( 2018-04-09 09:32:55 -0600 )edit

Great, I did manage to do it, and also with the help of this now I can see:

Planning: Path successfully created (size=1)

but robot still wouldn't move. Could it be that remapping from /planner/cmd_vel to rosaria/cmd_vel is needed? I'm not able to test it atm...

Dox gravatar image Dox  ( 2018-04-09 15:58:12 -0600 )edit

Yes, you should remap cmd_vel from move_base to rosaria's cmd_vel. You can do rostopic echo /planner/cmd_vel to see if move_base is actually sending commands

matlabbe gravatar image matlabbe  ( 2018-04-10 10:48:07 -0600 )edit

Tnx! Finally, the robot is navigating! :) If I would like to do it remotely, do you know if move_base can also be remotely run with rtabmap?

Dox gravatar image Dox  ( 2018-04-10 14:03:03 -0600 )edit

Yes, , though you will have network latency issues. At least keeping move_base on the robot would be more safe.

matlabbe gravatar image matlabbe  ( 2018-04-10 14:40:45 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2018-04-05 17:50:44 -0600

Seen: 3,273 times

Last updated: Sep 07 '18