Challenge - 5 Problems
ROS Mastery Badge
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediateWhat is the primary role of the ROS master?
In the Robot Operating System (ROS), what is the main function of the ROS master?
Attempts:
2 left
💡 Hint
Think about how nodes find each other to talk in ROS.
✗ Incorrect
The ROS master acts like a phone book. It keeps track of all nodes, topics, and services so they can find and talk to each other.
❓ component_behavior
intermediateWhat happens if you start a ROS node before running roscore?
Consider you try to start a ROS node without first running
roscore. What will happen?Attempts:
2 left
💡 Hint
Remember what roscore provides before nodes can communicate.
✗ Incorrect
Without roscore, the ROS master is not running, so nodes cannot register or communicate, causing errors.
❓ state_output
advancedWhat is the output of running
roscore in a terminal?When you run
roscore in a terminal, what output do you expect to see?Attempts:
2 left
💡 Hint
Think about what information helps you know roscore is ready.
✗ Incorrect
Running roscore starts the ROS master and prints its URI and logging info so you know it is running.
🔧 Debug
advancedWhy does a ROS node fail to communicate even though roscore is running?
You have
roscore running and started a node, but the node cannot communicate with others. What is a likely cause?Attempts:
2 left
💡 Hint
Check environment variables that tell nodes where the master is.
✗ Incorrect
If ROS_MASTER_URI is wrong, nodes cannot find the master even if roscore is running, causing communication failure.
📝 Syntax
expertWhich command correctly starts roscore with a custom ROS master URI?
You want to start
roscore but specify a custom ROS master URI http://192.168.1.10:11311. Which command is correct?Attempts:
2 left
💡 Hint
Environment variables can be set before commands in the shell.
✗ Incorrect
The correct way is to set the environment variable ROS_MASTER_URI before running roscore. The other options are invalid syntax.
