Skip to main content

Listed

, home
FREN

Action (ROS 2)

Definition

In ROS 2, an action is a remote call designed for a long-running task: one node sends a goal to another, receives intermediate feedback while the task runs, then a final result. The goal can be cancelled along the way. It is used, for example, to ask the navigation system to reach a point, which takes several seconds.

Checked on against the references below. · Written with AI · checked against the sources Source: Official ROS 2 documentation (Jazzy), “Actions”.

Concrete examples

The ROS 2 repository for Stretch 4 describes its navigation stack as “built on Nav2”. Nav2 relies on actions: its planner, controller, smoother, behavior and route servers are action servers, which the behavior tree calls.

What it changes for you

According to the Nav2 documentation, the stack relies on actions, in some cases with no simple topic interface.

Not to be confused with

A service is limited to a request and its response. An action adds progress feedback sent by the server and a cancellation request sent by the client. Under the hood, it is made of three services and two topics.

Additional material checked on .

Related terms

References

Back to the glossary