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

Composing motions

We have already learned how to find the actual X, Y, and Z axes of the robot. Go back to Chapter 4, Creating the Virtual Two-Wheeled ROS Robot, the Building a differential drive robot with URDF section, if you need to remember how.

Keeping their orientations in mind, let's design a more complex trajectory by combining both translation (linear X) and rotation (angular Z). The goal is to get GoPiGo3 to follow a circumferential path that has a 0.25 m radius at a speed of 45º/s:

  • The angular Z speed is 45º/s = 0.785 rad/s. We just need to change units from sexagesimal degrees to radians.
  • The linear X speed can be obtained by multiplying the requested radius by the angular speed; that is, 0.25 m * 0.785 rad/s = 0.196 m.

Follows ...

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