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

Getting static_map in amcl does not work

asked 2012-02-24 01:06:54 -0500

Laurie gravatar image

updated 2012-02-27 07:32:34 -0500

kwc gravatar image

Hi there,

Yesterday I installed the latest updates (including the gazebo and navigation stacks). Since then, the amcl does not work anymore. I traced the problem back to the service call AMCL makes to the map_server to get the map.

This is the code (it is the standard code) link:amcl_node.cpp line 495

The call is made (AMCL printing: Request for map failed; trying again...), but it never reaches the map_server service. I tried to call it manually via a terminal ( rosservice call static_map ) and then the service is carried out correctly and a response is sent.

I'm using Ubuntu 11.10 and ros-electric.

Thank you

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2012-02-26 19:24:34 -0500

Laurie gravatar image

It was in the namespacing of the service. My amcl node ran in another namespace ("/turtlebot") then the map_server ("/"). It will work if both nodes run in the same namespace.

edit flag offensive delete link more

Question Tools


Asked: 2012-02-24 01:06:54 -0500

Seen: 1,493 times

Last updated: Feb 26 '12