Recall & Review
beginner Click to reveal answer
What does it mean to preempt an action in ROS?
Preempting an action means stopping the current goal before it finishes, so a new goal can start. It helps the robot change tasks quickly.
beginner Click to reveal answer
Which ROS component handles preemption of goals?
The action server handles preemption. It listens for new goals and can cancel or replace the current goal when needed.
intermediate Click to reveal answer
How does a client request preemption of a running goal?
The client sends a new goal or explicitly cancels the current goal to request preemption.
intermediate Click to reveal answer
What is the role of the
is_preempt_requested() method in an action server?It checks if the client has requested to stop the current goal, so the server can safely stop and clean up.
beginner Click to reveal answer
Why is preempting actions important in robotics?
It allows robots to be flexible and responsive, stopping one task to start a more urgent one without waiting.
What happens when an action server receives a new goal while processing another?
✗ Incorrect
The action server preempts the current goal to handle the new goal immediately.
Which method should an action server use to check if preemption was requested?
✗ Incorrect
The is_preempt_requested() method tells the server if the client wants to stop the current goal.
How does an action client request to stop a running goal?
✗ Incorrect
The client can cancel the current goal or send a new goal to preempt the running one.
Why should an action server check for preemption regularly during execution?
✗ Incorrect
Checking for preemption lets the server stop the current goal safely when the client asks.
What is a real-life example of preempting an action?
✗ Incorrect
Stopping one task (cooking) to do a more urgent one (answering phone) is like preempting an action.
Explain how preempting actions work in ROS and why they are useful.
Think about how a robot changes what it is doing when a new command comes.
You got /4 concepts.
Describe the steps an action server takes when it receives a preemption request.
Focus on how the server handles stopping and switching goals.
You got /4 concepts.
