Robotics StackExchange | Archived questions

Why can't amcl subcribe /map topic and call static_map service in a rapp

As the instruction of amcl in ros wiki. The amcl node should call staticmap service. When "usemap_topic " is set to be true. “AMCL will subscribe to the map topic rather than making a service call to receive its map”

But after I create a rapp which I have stated in the question here, the info of /sotbot/amcl is listed as follows. it doesn't call service /softbot/staticmap which is provided by /softbot/mapsever. Why this happen and how to sovle it?

Node [/softbot/amcl]
Publications: 
 * /softbot/amcl/parameter_updates [dynamic_reconfigure/Config]
 * /softbot/particlecloud [geometry_msgs/PoseArray]
 * /softbot/softbot_amcl_pose [geometry_msgs/PoseWithCovarianceStamped]
 * /tf [tf2_msgs/TFMessage]
 * /rosout [rosgraph_msgs/Log]
 * /softbot/amcl/parameter_descriptions [dynamic_reconfigure/ConfigDescription]

Subscriptions: 
 * /tf [tf2_msgs/TFMessage]
 * /tf_static [unknown type]
 * /softbot/initialpose [unknown type]
 * /softbot/scan [unknown type]

Services: 
 * /softbot/amcl/set_parameters
 * /softbot/request_nomotion_update
 * /softbot/amcl/get_loggers
 * /softbot/global_localization
 * /softbot/amcl/set_logger_level

Asked by scopus on 2014-05-09 04:30:06 UTC

Comments

Answers