Challenge - 5 Problems
Gazebo World Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
❓ component_behavior
intermediateWhat is the output of this Gazebo world snippet?
Given this snippet of a Gazebo world file, what will be the color of the ground plane when rendered?
ROS
<world name="default"> <include> <uri>model://ground_plane</uri> <material> <ambient>0 1 0 1</ambient> <diffuse>0 1 0 1</diffuse> </material> </include> </world>
Attempts:
2 left
💡 Hint
Look at the ambient and diffuse color values in the material tag.
✗ Incorrect
The ambient and diffuse colors are set to (0,1,0,1) which corresponds to green color with full opacity.
📝 Syntax
intermediateWhich option correctly defines a light source in a Gazebo world file?
Select the correct XML snippet that defines a directional light source in Gazebo.
Attempts:
2 left
💡 Hint
Check the number of values in the diffuse color and direction tags.
✗ Incorrect
The diffuse color requires 4 values (RGBA), and the direction vector requires 3 values (x,y,z). Option B is correct.
❓ state_output
advancedWhat is the position of the model after loading this Gazebo world snippet?
Given this model insertion in a Gazebo world file, what will be the position of the model named 'robot' in the simulation?
ROS
<model name="robot"> <pose>1 2 0.5 0 0 1.57</pose> <include> <uri>model://my_robot</uri> </include> </model>
Attempts:
2 left
💡 Hint
The pose tag format is x y z roll pitch yaw.
✗ Incorrect
The pose specifies position (1,2,0.5) and rotation (roll=0, pitch=0, yaw=1.57).
🔧 Debug
advancedWhy does this Gazebo world file fail to load the model?
Identify the error in this Gazebo world snippet that prevents the model from loading.
ROS
<model name="box"> <pose>0 0 0 0 0 0</pose> <include> <uri>model:/box_model</uri> </include> </model>
Attempts:
2 left
💡 Hint
Check the URI format for model references in Gazebo.
✗ Incorrect
The correct URI prefix for models is 'model://', not 'model:/'. The missing slash causes loading failure.
🧠 Conceptual
expertWhich option best describes the role of the tag in Gazebo world files?
Select the most accurate description of what the tag does in a Gazebo world file.
Attempts:
2 left
💡 Hint
Think about how Gazebo reuses models from its database.
✗ Incorrect
The tag references existing models by URI to reuse them in the world without redefining them.
