Action definition files let robots do tasks that take time and give updates while working. They help robots talk about goals, progress, and results clearly.
When a robot needs to move somewhere and report progress until it arrives.
When a robot must pick up an object and tell if it succeeded or failed.
When a task takes a long time and you want to cancel it if needed.
When you want to get feedback during a robot's task, like how far it has moved.
When coordinating complex tasks that need start, progress, and finish messages.
The file has goal fields first, then feedback fields, then result fields, separated by --- lines.
Step 2: Verify field types in each section
Goal has int32, feedback has float32, result has int32. However, the correct order is goal, result, feedback.
Final Answer:
Result section must come before feedback -> Option A
Quick Check:
Correct order is goal, result, feedback [OK]
Hint: Check section order and field types carefully [OK]
Common Mistakes:
Thinking feedback must come last
Assuming feedback cannot have fields
Mixing up result and feedback order
5. You want to define an action for a robot to move to a position with feedback on distance left and a result indicating success. Which .action file snippet correctly defines this?
The goal should specify the target position (target_x, target_y). Feedback should provide ongoing info (distance_left). Result should indicate success (bool success).
Step 2: Match the correct order in the .action file
The order is goal fields first, then feedback fields, then result fields. float64 target_x
float64 target_y
---
float64 distance_left
---
bool success matches this order correctly.