Book Image

ROS Robotics By Example

Book Image

ROS Robotics By Example

Overview of this book

The visionaries who created ROS developed a framework for robotics centered on the commonality of robotic systems and exploited this commonality in ROS to expedite the development of future robotic systems. From the fundamental concepts to advanced practical experience, this book will provide you with an incremental knowledge of the ROS framework, the backbone of the robotics evolution. ROS standardizes many layers of robotics functionality from low-level device drivers to process control to message passing to software package management. This book provides step-by-step examples of mobile, armed, and flying robots, describing the ROS implementation as the basic model for other robots of these types. By controlling these robots, whether in simulation or in reality, you will use ROS to drive, move, and fly robots using ROS control.
Table of Contents (17 chapters)
ROS Robotics By Example
Credits
About the Authors
About the Reviewer
www.PacktPub.com
Preface
Index

Controlling a real Baxter


The baxter_examples programs described in the subsections within the Launching Baxter Simulator in Gazebo section also work on a real Baxter robot. Some additional arm control programs that work on a real Baxter but not on Baxter Simulator are described in the following sections.

Commanding joint position waypoints

This program is another example of joint position control for Baxter's arms. Baxter's arm is moved using the Zero-G mode to freely configure the arm's joints to a desired position. When the desired position is attained, the corresponding navigator button on the arm is pressed to record the waypoint position. This baxter_examples program is executed with the following command specifying either right or left for the arm to be moved:

$ rosrun baxter_examples joint_position_waypoints.py -l <right or left>

The output should be as follows:

...

Press Navigator 'OK/Wheel' button to record a new joint position waypoint.Press Navigator 'Rethink' button when...