Ask Your Question
0

Settings for pure localization for cartographer_ros

asked 2020-03-23 08:56:26 -0500

AK3874 gravatar image

Hello. I wanted to do pure localization using cartographer. I have made the map as a .yaml file (which also points to .pgm). I have also successfully run slam using cartographer. However, since the map is not good I just wanna do pure localization. In the cartographer docs it says I have to give a "-load_state_filename argument" but I do not know where and how to do it. Also do I remove anything from my configuration file?

Thank you very much

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-03-24 03:30:52 -0500

bob-ROS gravatar image

updated 2020-03-24 03:36:24 -0500

Not sure how to make cartographer make use of a simple 2D map as you describe. You usually have .pbstream file generated that you can load using:

<node name="cartographer_node" pkg="cartographer_ros" type="cartographer_node" args="-load_state_filename $MAP_NAME.pbstream" />

Thereafter you retune it as seen in the documentation

E.g.

TRAJECTORY_BUILDER.pure_localization = true

Do you really need Cartographer over AMCL for this purpose?

edit flag offensive delete link more

Your Answer

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

Add Answer

Question Tools

2 followers

Stats

Asked: 2020-03-23 08:56:26 -0500

Seen: 24 times

Last updated: Mar 24