Ask Your Question

hector map static map

asked 2017-10-17 15:24:26 -0500

opo gravatar image

Hello everyone, I'm new to the forum and to ROS.

I'm trying to use hector_slam without it updating the map. The reason is I have loaded a static map via map_server, the map loads correctly but only for a few frames, after which it is replaced by hector generated map.

I modified HectorMappingRos.cpp by switching p_use_static_map. Now no new map is generated (which is good), only laser scans are shown in navViz, but the static map is still removed after a few seconds after the static map is loaded and displayed.

Is there a way to make hector mapping to listen to map_server, or to connect to mapTopic from map_server or to make it not to replace the static map at all?

Thank you,


edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2017-10-18 12:27:59 -0500

opo gravatar image


I figured it out. It was an issue with the yalm configuration file having too much offset for the center. A zoom out revealed the map and was able to fix the offset.

Thank you,


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

1 follower


Asked: 2017-10-17 15:24:26 -0500

Seen: 248 times

Last updated: Oct 18 '17