Skip to Content
Hands-On ROS for Robotics Programming
book

Hands-On ROS for Robotics Programming

by Bernardo Ronquillo Japón
February 2020
Intermediate to advanced
432 pages
10h 50m
English
Packt Publishing
Content preview from Hands-On ROS for Robotics Programming

The URDF model's left and right wheels

Given that you already know the basic URDF tags, it is straightforward to read the definition for the right wheel, as shown in the following code snippet:

  <!-- Right Wheel -->  <link name="right_wheel">    <visual>      <origin xyz="0 0 0" rpy="1.570795 0 0" />      <geometry>          <cylinder length="0.1" radius="0.2" />      </geometry>      <material name="black">        <color rgba="0.05 0.05 0.05 1"/>      </material>    </visual>  </link>  <joint name="joint_right_wheel" type="continuous">    <parent link="base_link"/>    <child link="right_wheel"/>    <origin xyz="0 -0.30 0" rpy="0 0 0" />     <axis xyz="0 1 0" />  </joint>

Inside the <origin> tag, the first component of the rpy attribute (rotation around the X axis), 1.570795 = π/2, is what sets the wheel ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering ROS for Robotics Programming

Mastering ROS for Robotics Programming

Lentin Joseph
ROS Robotics By Example - Second Edition

ROS Robotics By Example - Second Edition

Lentin Joseph, Carol Fairchild, Dr. Thomas L. Harman

Publisher Resources

ISBN: 9781838551308Supplemental Content