ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
I assume your service calls are not returning, what you expect. Or what is your problem? - please clarify.
Genereally:
Your code has to return a nav_msgs/OccupancyGrid
. It seems to return, whatever map_params.map_callback()
returns. (which overwrites the GetMap()
, btw) Maybe you want to check that. See https://wiki.ros.org/rospy/Overview/Services#Providing_services for other options. e. g.
return {'map': GetMap()}