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

Hector Slam : Saving and Loading a Map

asked 2017-02-07 08:26:40 -0500

burf2000 gravatar image

So I know you can save a map to disk once your robot has mapped an area, but when you reload it, is it likely the robot will know where it is or do you need to set its pose?

The reason I ask is, when the hector slam gets confused, the whole map goes haywire, it basically loses its rotation etc.

Now I want to be able to map an area once. Then uses it over and over again.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2023-07-27 16:54:15 -0500

KevWal gravatar image

"is it likely the robot will know where it is or do you need to set its pose"

"It depends" is the answer in my experiance. AMCL for example can sometimes figure out where it is, but sometimes gets confused and I need to set pose in rviz.

"Now I want to be able to map an area once. Then uses it over and over again."

I use hector_mapping to generate and save a map once, and then I use map_server to reload it and navigate it with AMCL and move_base.

edit flag offensive delete link more

Comments

@burf2000 After a map is built, we also switch to using map_server. Extending an existing map using hector slam was discussed in question #q47496.

Mike Scheutzow gravatar image Mike Scheutzow  ( 2023-07-29 08:43:20 -0500 )edit

Question Tools

2 followers

Stats

Asked: 2017-02-07 08:26:40 -0500

Seen: 680 times

Last updated: Jul 27 '23