Performance: Building a mobile robot URDF
This affects the robot simulation load time and real-time control responsiveness by influencing the complexity of the robot model and its rendering in visualization tools.
Jump into concepts and practice - no test required
<robot name="mobile_robot"> <link name="base_link" /> <link name="wheel_assembly" /> <joint name="wheel_joint" type="continuous"> <parent link="base_link" /> <child link="wheel_assembly" /> </joint> </robot>
<robot name="mobile_robot"> <link name="base_link" /> <link name="wheel_link_1" /> <link name="wheel_link_2" /> <link name="wheel_link_3" /> <link name="wheel_link_4" /> <joint name="joint_1" type="fixed"> <parent link="base_link" /> <child link="wheel_link_1" /> </joint> <joint name="joint_2" type="fixed"> <parent link="base_link" /> <child link="wheel_link_2" /> </joint> <joint name="joint_3" type="fixed"> <parent link="base_link" /> <child link="wheel_link_3" /> </joint> <joint name="joint_4" type="fixed"> <parent link="base_link" /> <child link="wheel_link_4" /> </joint> </robot>
| Pattern | DOM Operations | Reflows | Paint Cost | Verdict |
|---|---|---|---|---|
| Many small links and fixed joints | High number of nodes | N/A (not DOM but parsing overhead) | High due to complex model rendering | [X] Bad |
| Fewer combined links with appropriate joints | Lower number of nodes | N/A | Lower rendering cost | [OK] Good |
base_link in a URDF file?<joint name="wheel_joint" type="continuous"> <parent link="base_link"/> <child link="wheel_link"/> </joint>
type="continuous" mean for this joint?<joint name="wheel_joint" type="revolute"> <parent link="base_link"/> <child link="wheel_link"/> </joint>