Lab 2: Advanced ROS 2 & URDF
Objective
Create a custom URDF for a simple humanoid and visualize it in Rviz2.
Steps
- Create a Package:
ros2 pkg create --build-type ament_python my_humanoid_description - Create URDF:
Create
urdf/humanoid.urdfwith a base link, torso, and head. - Create Launch File:
Create
launch/display.launch.pyto launchrobot_state_publisherandrviz2. - Visualize: Run the launch file and verify the TF tree in Rviz2.
Deliverable
A screenshot of your humanoid in Rviz2 with the TF tree expanded.