Main Content

Services and Actions

Send requests, perform tasks, and get feedback for services and actions

ROS services and actions enable users to perform tasks. Services use request-response communication to gather information and trigger callback functions in the ROS network. Actions can be used to trigger tasks or goals and receive feedback during operation of these tasks.

Functions

expand all

rosaction Retrieve information about ROS actions
rosactionserver Create ROS Action Server
getFeedbackMessage Create new action feedback message
isPreemeptRequested Check if a goal has been preempted
sendFeedback Send feedback to action client during goal execution
rosActionServerExecuteGoalFcn Return function handle for ROS action server callback
rosactionclient Create ROS action client
cancelAllGoals Cancel all goals on action server
cancelGoal Cancel last goal sent by client
sendGoal Send goal message to action server
sendGoalAndWait Send goal message and wait for result
waitForServer Wait for action server to start
call Call ROS or ROS 2 service server and receive a response
isServerAvailable Determine if ROS or ROS 2 service server is available
rosservice Retrieve information about services in ROS network
rossvcclient Connect to ROS service server
rossvcserver Create ROS service server
waitForServer Wait for ROS or ROS 2 service server to start
call Call ROS or ROS 2 service server and receive a response
isServerAvailable Determine if ROS or ROS 2 service server is available
ros2 Retrieve information about ROS 2 network
ros2svcclient Connect to ROS 2 service server
ros2svcserver Create ROS 2 service server
waitForServer Wait for ROS or ROS 2 service server to start

Blocks

Call Service Call service in ROS network
Call Service Call service in ROS 2 network

Topics