Overview - Why actions for long-running tasks
What is it?
In ROS (Robot Operating System), actions are a way to handle tasks that take a long time to complete. Unlike simple commands that finish quickly, long-running tasks need a way to report progress and allow interruption. Actions provide a communication pattern where a client can send a goal, receive feedback during execution, and get a final result when done.
Why it matters
Without actions, managing long tasks would be clumsy or unreliable. For example, if a robot is asked to move to a distant point, it might take several seconds or minutes. Without a way to track progress or cancel the task, the system could become unresponsive or stuck. Actions solve this by enabling smooth control and monitoring of ongoing tasks, improving robot reliability and user experience.
Where it fits
Before learning about actions, you should understand ROS topics and services, which handle simple messaging and quick requests. After mastering actions, you can explore advanced task coordination, such as action servers with multiple goals or integrating actions with state machines for complex robot behaviors.
