Complete the code to define the robot's base link in URDF.
<link name="base_link"> <visual> <geometry> <box size="[1]"/> </geometry> </visual> </link>
The base link box size should represent the robot's base dimensions, here 0.5m x 0.3m x 0.2m.
Complete the code to define a joint connecting the base_link to the wheel_link.
<joint name="wheel_joint" type="[1]"> <parent link="base_link"/> <child link="wheel_link"/> <origin xyz="0 0 0" rpy="0 0 0"/> </joint>
The wheel joint should be continuous to allow full rotation.
Fix the error in the joint axis definition to rotate around the correct axis.
<joint name="wheel_joint" type="continuous"> <parent link="base_link"/> <child link="wheel_link"/> <axis xyz="[1]"/> </joint>
The wheel rotates around the y-axis (lateral axle), so axis xyz should be '0 1 0'.
Fill both blanks to define the origin position and rotation of the sensor link relative to the base_link.
<joint name="sensor_joint" type="fixed"> <parent link="base_link"/> <child link="sensor_link"/> <origin xyz="[1]" rpy="[2]"/> </joint>
The sensor is positioned 0.2m forward and 0.1m up, rotated 90 degrees (1.57 radians) around the y-axis.
Fill all three blanks to create a dictionary comprehension that maps each wheel name to its radius if the radius is greater than 0.1.
wheel_radii = { [1] : [2] for [3] in wheels if wheels[[3]] > 0.1 }We use 'wheel' as the variable name, map it to its radius wheels[wheel], and iterate over wheels.
