ROS2 URDF
315 words · 2 min read · 1 source
URDF (Unified Robot Description Format) describes a robot's links, joints, and visuals as XML. The standard way to model robots in ROS2 + Gazebo.
URDF (Unified Robot Description Format) is an XML format that describes a robot's physical structure — its links (rigid parts), joints (how they connect and move), masses, visuals, and collision shapes. It is the standard input for ROS2 visualisation, simulation, and motion planning.
What is ROS2 URDF?
URDF (Unified Robot Description Format) is an XML format that describes a robot's physical structure — its links (rigid parts), joints (how they connect and move), masses, visuals, and collision shapes. It is the standard input for ROS2 visualisation, simulation, and motion planning.
How It Works
A URDF file lists <link> elements (each with inertial, visual, and collision children) and <joint> elements (each with parent, child, type — fixed, revolute, prismatic, etc. — and limits). Robot State Publisher reads the URDF and joint_states topic, then publishes a tf tree describing exactly where every link is in space. The same URDF feeds Gazebo for physics, RViz2 for visualisation, MoveIt2 for motion planning, and Webots/Isaac Sim for advanced simulation. Modern projects use Xacro (XML macro) to compose URDFs from parametric building blocks.
Real-World Example
Every ROS2-compatible robot ships a URDF: TurtleBot4, Spot, Universal Robots UR5, Franka Panda. Indian academic robots (the IIT Madras swimming robot, IISc humanoid leg) all have URDFs. Even tutorials on R2BOT's Academy include URDFs you can load in the Visualizer.
Why It Matters for Robotics
Without a URDF, your robot cannot be simulated, visualised, or motion-planned in ROS2. Reading and writing URDF is a daily skill. Knowing how to debug <inertial> blocks (zero mass, wrong CoG) is essential — most simulation problems trace back to bad URDF.
Try It Yourself
Write a minimal URDF with one base link and one wheel joint. Load it with ros2 launch urdf_tutorial display.launch.py model:=my_robot.urdf, open RViz2, and move the wheel slider to see it spin live. Then expand to a full differential-drive robot.
Quick Quiz
Quick Quiz
3 questions
1.URDF is written in which format?
2.Which is NOT a typical URDF element?
3.A URDF feeds which of the following tools?
Further Reading
Ask R2 About This
Open the R2 Co-pilot (press ⌘K anywhere on R2BOT) and ask: "Explain ROS2 URDF for a Class 9 student in India, with one real-world Indian example." You'll get a tailored, sourced answer in seconds.
🐍 Python Playground · runs in your browser
Editor · 15 lines
Output
Press ▶ Run to execute. First run downloads Python (~6MB) — only happens once per page.
Powered by Pyodide · Python in WebAssembly · no server required.
Next: the course path
Five free courses, from zero to your own robot design
Short videos with a quiz after each one, a final activity and a certificate per course.
See the course path →Plain English. Free. Unsubscribe in one click.
Keep going
ROS2
Robot Operating System 2 — the DDS-based middleware that runs nearly every modern research and commercial robo…
ConceptROS2 TF (tf2)
tf2 in ROS2 tracks every coordinate frame on a robot and lets nodes transform points and poses between them. T…
ConceptKinematics
Kinematics describes the geometry of a robot's motion — where each part is and where it will be — without aski…
Last updated · 2026-05-21
Spotted something off? Report an error →