Skip to content

Latest commit

 

History

History
38 lines (22 loc) · 1005 Bytes

README.md

File metadata and controls

38 lines (22 loc) · 1005 Bytes

README

CircleCI

ros_service_example

Example nodes for ROS service and action server

Service

Add numbers:

Accepts list of (float) numbers and returns their sum

roslaunch ros_service_example add_numbers.launch

To call service from command line use rosservice call add_numbers [1,2,3,4,5.02]

Reverse string

Accepts string and returns reversed string

roslaunch ros_service_example reverse_string.launch

To call service from command line use rosservice call reverse_string 'The quick brown fox jumps over the lazy dog'

Action server

Accepts number as goal and counts to that number (e.g 24). During feedback returns current count (1, 2, 3, ...) and as result final number (24).

roslaunch ros_service_example count_to.launch