1 4
play

1.4 request response communication Mukunda Bharatheesha ROS - PowerPoint PPT Presentation

ROS Services 1.4 request response communication Mukunda Bharatheesha ROS Services the basic idea ROS nodes communicating with Topics Many to many one-way communication ROS Wiki. No acknowledgement.


  1. ROS Services – 1.4 “request – response” communication Mukunda Bharatheesha

  2. ROS Services – the basic idea • ROS nodes communicating with Topics • “Many to many one-way communication” – ROS Wiki. • No acknowledgement. • Useful for monitoring. • ROS Services • Request – Response communication. • Two message types – a request , and a response . • “ Event-based ” execution for ROS applications. http://wiki.ros.org/Services

  3. ROS Services – on the filesystem, utility cmds • ROS services are also defined in the ROS messages package • hrwros_msgs/ srv folder. list all available ROS services $ rosservice list call a ROS service $ rosservice call <service_name> <arguments_req>

  4. ROS Services – an example service type • Requirement: convert measurement in SI units to Imperial Units • request message – measurement in SI units (m). • response message – measurement in Imperial Units (ft). hrwros_msgs/srv/ConvertMetresToFeet.srv float64 measurement_metres request field --- float64 measurement_feet response field Bool success • A service request is processed in a service callback .

  5. ROS Services – code nomenclature • A ROS Node: service server “advertises” a service • makes the service available for other ROS nodes. • A ROS Node: service client “calls” a service • sends a request message once a service is available.

  6. ROS services – a few properties Attention! • ROS services block the program flow. • Useful for designing sequential behaviors. • Desirable to have quickly executing computations in service callback. • No going back after a service call!

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend