Challenge - 5 Problems
URDF Link Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
❓ component_behavior
intermediateWhat does the element define in a ROS URDF ?
In a URDF file, the element inside a specifies what aspect of the robot's link?
ROS
<link name="arm_link"> <visual> <geometry> <box size="1 0.5 0.5"/> </geometry> <material name="blue"/> </visual> </link>
Attempts:
2 left
💡 Hint
Think about what you see when you look at a robot model in a viewer.
✗ Incorrect
❓ component_behavior
intermediateWhat role does the element play in a ROS URDF ?
Inside a element, what is the purpose of the element?
ROS
<link name="wheel_link"> <collision> <geometry> <cylinder radius="0.3" length="0.1"/> </geometry> </collision> </link>
Attempts:
2 left
💡 Hint
Think about what helps the robot know when it bumps into something.
✗ Incorrect
❓ state_output
advancedWhat happens if the element is missing in a URDF ?
Consider a element without an child. What is the effect on simulation?
ROS
<link name="base_link"> <visual> <geometry> <box size="1 1 0.5"/> </geometry> </visual> <collision> <geometry> <box size="1 1 0.5"/> </geometry> </collision> </link>
Attempts:
2 left
💡 Hint
Think about what physics needs to simulate movement correctly.
✗ Incorrect
Without , the link has no mass or inertia, which breaks physics simulation or causes errors.
📝 Syntax
advancedWhich URDF snippet correctly defines a with visual, collision, and inertial elements?
Select the snippet that is syntactically correct and complete for a with all three elements.
Attempts:
2 left
💡 Hint
Check for well-formed XML tags and valid numeric values.
✗ Incorrect
Option A is well-formed XML with correct numeric values. B misses closing tag for . C uses invalid mass value 'two'. D misses izz attribute in inertia.
🔧 Debug
expertWhy does this URDF link cause a physics simulation error?
Given this snippet, what is the cause of the physics simulation error?
ROS
<link name="faulty_link"> <visual> <geometry> <box size="1 1 1"/> </geometry> </visual> <collision> <geometry> <box size="1 1 1"/> </geometry> </collision> <inertial> <mass value="0"/> <inertia ixx="0" ixy="0" ixz="0" iyy="0" iyz="0" izz="0"/> </inertial> </link>
Attempts:
2 left
💡 Hint
Physics engines require positive mass values.
✗ Incorrect
A mass of zero is physically impossible and causes simulation errors. Other issues do not cause physics errors.
