PKG - actionlib
Last updated
Was this helpful?
Last updated
Was this helpful?
Service can: send a request to a node to perform some task, and also receive a reply to the request.
actionlib = Service + long executing time (ability to cancel the request or get periodic feedback)
Example:
moving the base to a target location
performing a laser scan and returning the resulting point cloud
detecting the handle of a door
The ActionClient and ActionServer communicate via a "ROS Action Protocol", built on top of ROS messages.
The client and server provide a simple API for users to request goals (on the client side) or to execute goals (on the server side) via function calls and callbacks.
ActionServer -> goal (msg) -> ActionClient
ActionServer -> goal (msg: progress) -> ActionClient
When completion of the goal, ActionServer -> goal (msg: once) -> ActionClient