Complete the code to define a robot's main link in URDF.
<robot name="my_robot"> <link name="[1]"/> </robot>
The base_link is the main reference link for the robot structure in URDF.
Complete the code to connect two links with a joint in URDF.
<joint name="joint1" type="revolute"> <parent link="[1]"/> <child link="link2"/> </joint>
The parent link is usually the main or previous link, here base_link.
Fix the error in the URDF snippet by choosing the correct joint type.
<joint name="joint1" type="[1]"> <parent link="base_link"/> <child link="link2"/> </joint>
The correct joint type for a rotating joint is continuous, not rotational.
Fill both blanks to define a link with an inertial and visual element in URDF.
<link name="link1"> <inertial> <mass value="[1]"/> </inertial> <visual> <geometry> <box size="[2]"/> </geometry> </visual> </link>
The mass value should be a number like 1.5, and the box size is three dimensions like 1.0 0.5 0.3.
Fill all three blanks to define a joint with axis and limits in URDF.
<joint name="joint2" type="revolute"> <parent link="[1]"/> <child link="[2]"/> <axis xyz="[3]"/> </joint>
The parent link is link1, child is link2, and the axis vector 0 0 1 means rotation around the z-axis.
