Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Learning ROS for Robotics Programming Second Edition

You're reading from  Learning ROS for Robotics Programming Second Edition

Product type Book
Published in Aug 2015
Publisher Packt
ISBN-13 9781783987580
Pages 458 pages
Edition 1st Edition
Languages
Concepts

Table of Contents (27) Chapters

Learning ROS for Robotics Programming Second Edition
Credits
About the Author
Acknowledgments
About the Author
Acknowledgments
About the Author
Acknowledgments
About the Author
Acknowledgments
About the Reviewer
About the Reviewer
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Getting Started with ROS Hydro ROS Architecture and Concepts Visualization and Debug Tools Using Sensors and Actuators with ROS Computer Vision Point Clouds 3D Modeling and Simulation The Navigation Stack – Robot Setups The Navigation Stack – Beyond Setups Manipulation with MoveIt! Index

Creating our first URDF file


The robot that we are going to build in the following sections, is a mobile robot with four wheels and an arm with a gripper.

To start with, we create the base of the robot with four wheels. Create a new file in the chapter7_tutorials/robot1_description/urdf folder with the name robot1.urdf, and enter the following code; this URDF code is based on XML, and the indentation is not mandatory but advisable. So, use an editor that supports it or an adequate plugin or configuration (for example, an appropriate .vimrc file in Vim):

<?xml version="1.0"?>
  <robot name="Robot1">
    <link name="base_link">
      <visual>
        <geometry>
          <box size="0.2 .3 .1"/>
        </geometry>
        <origin rpy="0 0 0" xyz="0 0 0.05"/>
        <material name="white">
          <color rgba="1 1 1 1"/>
        </material>
      </visual>
    </link>

    <link name="wheel_1">
      <visual...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}