pyrobosim_ros.ros_interface.WorldROSWrapper.world_state_callback

WorldROSWrapper.world_state_callback(request, response)

Returns the world state as a response to a service request.

Parameters:
  • request (pyrobosim_msgs.srv._request_world_state.RequestWorldState_Request) – The service request.

  • response (pyrobosim_msgs.srv._request_world_state.RequestWorldState_Response) – The unmodified service response.

Returns:

The modified service response containing the world state.

Return type:

pyrobosim_msgs.srv._request_world_state.RequestWorldState_Response