Challenge - 5 Problems
Nav2 Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediateWhat is the primary role of Nav2 in ROS 2?
Nav2 is a key component in ROS 2 for robot navigation. What is its main purpose?
Attempts:
2 left
💡 Hint
Think about what a navigation stack typically includes for a robot.
✗ Incorrect
Nav2 provides a full navigation stack that includes path planning, controlling the robot to follow the path, and handling recovery behaviors when obstacles or errors occur.
❓ component_behavior
intermediateHow does Nav2 handle dynamic obstacles during navigation?
When a robot using Nav2 encounters a new obstacle while moving, how does Nav2 typically respond?
Attempts:
2 left
💡 Hint
Consider how autonomous navigation systems adapt to changes in their environment.
✗ Incorrect
Nav2 includes recovery behaviors that try to clear the path or replan a new path when obstacles are detected dynamically.
❓ lifecycle
advancedWhat is the purpose of lifecycle nodes in Nav2?
Nav2 uses lifecycle nodes extensively. What benefit do lifecycle nodes provide in the Nav2 system?
Attempts:
2 left
💡 Hint
Think about managing node states and resource usage in a complex system.
✗ Incorrect
Lifecycle nodes allow Nav2 components to be brought up and down cleanly, managing resources and allowing configuration changes without restarting the entire system.
📝 Syntax
advancedWhich YAML snippet correctly configures a Nav2 planner plugin?
Given the need to configure the planner plugin in Nav2, which YAML snippet is syntactically correct?
ROS
planner_server:
ros__parameters:
expected_planner: "GridBased"
planner_plugins:
- GridBased
GridBased:
plugin: "nav2_navfn_planner/NavfnPlanner"
tolerance: 0.5Attempts:
2 left
💡 Hint
Check YAML indentation, key names, and list syntax carefully.
✗ Incorrect
Option B uses correct YAML syntax with proper indentation, key names (ros__parameters), and list format for planner_plugins.
🔧 Debug
expertWhy does Nav2 fail to start the controller server node?
You launch Nav2 but the controller server node fails immediately with the error: "Failed to load plugin 'FollowPath'". What is the most likely cause?
Attempts:
2 left
💡 Hint
Consider what 'Failed to load plugin' errors usually mean in ROS 2.
✗ Incorrect
This error typically means the plugin library is missing, not built, or not found in the plugin path, causing the controller server to fail loading the required plugin.
