Challenge - 5 Problems
ROS Action Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
❓ component_behavior
intermediateWhat is the purpose of the Goal section in a ROS .action file?
In a ROS action definition file, the
Choose the best description.
Goal section specifies what?Choose the best description.
Attempts:
2 left
💡 Hint
Think about what the client sends to start an action.
✗ Incorrect
The Goal section defines the input data the client sends to the action server to request a specific task. Feedback and Result are separate sections.
📝 Syntax
intermediateWhich of these is a valid ROS .action file syntax for defining feedback?
Select the correct syntax snippet for the
Feedback section in a ROS .action file.Attempts:
2 left
💡 Hint
ROS .action files use simple field declarations without semicolons or commas.
✗ Incorrect
ROS .action files list fields line by line with type and name separated by space, no semicolons or commas.
❓ state_output
advancedWhat will be the output of this .action file's Result section after completion?
Given this Result section in a ROS .action file:
What data types will the client receive in the result?
bool success string message int32 final_count
What data types will the client receive in the result?
Attempts:
2 left
💡 Hint
Look carefully at the declared fields and their types.
✗ Incorrect
The Result section defines all fields sent back after action completion, including success (bool), message (string), and final_count (int32).
🔧 Debug
advancedWhy does this .action file cause a syntax error?
Consider this snippet from a ROS .action file:
What causes the syntax error?
Goal: int32 target --- Feedback: float32 progress string status_message --- Result: bool success string message,
What causes the syntax error?
ROS
Goal:
int32 target
---
Feedback:
float32 progress
string status_message
---
Result:
bool success
string message,Attempts:
2 left
💡 Hint
Check punctuation at the end of lines.
✗ Incorrect
ROS .action files do not use commas or semicolons at the end of field lines. The comma after 'string message' causes a syntax error.
🧠 Conceptual
expertHow does the Feedback section in a ROS .action file improve client-server interaction?
Choose the best explanation of the role of the Feedback section in ROS actions.
Attempts:
2 left
💡 Hint
Think about what happens during the action execution, not just at the start or end.
✗ Incorrect
The Feedback section is used by the action server to send periodic updates to the client about progress or status while the action is still running.
