Challenge - 5 Problems
Navigation Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
❓ component_behavior
intermediateWhat happens when a navigation goal is sent with an unreachable position?
Consider a ROS node sending a navigation goal to a robot using the move_base action. The goal position is outside the known map boundaries. What will the robot's navigation stack most likely do?
ROS
action_client.send_goal(goal_pose);
Attempts:
2 left
💡 Hint
Think about how the navigation stack handles unreachable goals and timeouts.
✗ Incorrect
When a goal is unreachable, the navigation stack tries to find a path. If it fails within a timeout, it reports failure. It does not teleport or ignore the goal.
❓ state_output
intermediateWhat is the state of the action client after sending a valid navigation goal?
After sending a valid navigation goal using the ROS action client, what is the expected state of the client before the robot reaches the goal?
ROS
action_client.send_goal(goal_pose); current_state = action_client.get_state();
Attempts:
2 left
💡 Hint
Consider the action client states during goal execution.
✗ Incorrect
After sending a goal, the action client state is ACTIVE while the robot is moving towards the goal.
📝 Syntax
advancedWhich code snippet correctly sets a navigation goal using ROS Python API?
Select the code snippet that correctly creates and sends a navigation goal to move_base using ROS Python.
Attempts:
2 left
💡 Hint
Check the correct attribute names for setting the frame and pose.
✗ Incorrect
The correct attributes are target_pose.header.frame_id and target_pose.pose.position.x. Option A uses these correctly.
🔧 Debug
advancedWhy does the robot never reach the navigation goal?
A ROS navigation node sends a goal to move_base, but the robot never reaches it and the goal status stays ACTIVE indefinitely. What is the most likely cause?
ROS
goal.target_pose.header.frame_id = 'map' goal.target_pose.pose.position.x = 5.0 goal.target_pose.pose.position.y = 5.0 client.send_goal(goal)
Attempts:
2 left
💡 Hint
Think about what happens if the robot does not know where it is on the map.
✗ Incorrect
If localization fails, the robot cannot plan a path and will keep the goal ACTIVE without progress.
🧠 Conceptual
expertWhat is the effect of setting the 'planner_frequency' parameter too low in ROS navigation?
In the ROS navigation stack, the 'planner_frequency' parameter controls how often the global planner runs. What happens if this frequency is set too low while the robot is moving towards a goal?
Attempts:
2 left
💡 Hint
Consider how often the robot updates its path to avoid obstacles.
✗ Incorrect
A low planner_frequency means the global planner updates paths less often, so the robot may not adapt quickly to new obstacles or changes.
