
Mastering ROS for Robotics Programming
Description
Alles über E-Books | Antworten auf Fragen rund um E-Books, Kopierschutz und Dateiformate finden Sie in unserem Info- & Hilfebereich.
- Gain insights into autonomous navigation in mobile robot and motion planning in robot manipulators
- Discover the best practices and troubleshooting solutions everyone needs when working on ROS
Book DescriptionThe area of robotics is gaining huge momentum among corporate people, researchers, hobbyists, and students. The major challenge in robotics is its controlling software. The Robot Operating System (ROS) is a modular software platform to develop generic robotic applications. This book discusses the advanced concepts in robotics and how to program using ROS. It starts with deep overview of the ROS framework, which will give you a clear idea of how ROS really works. During the course of the book, you will learn how to build models of complex robots, and simulate and interface the robot using the ROS MoveIt motion planning library and ROS navigation stacks. After discussing robot manipulation and navigation in robots, you will get to grips with the interfacing I/O boards, sensors, and actuators of ROS. One of the essential ingredients of robots are vision sensors, and an entire chapter is dedicated to the vision sensor, its interfacing in ROS, and its programming. You will discuss the hardware interfacing and simulation of complex robot to ROS and ROS Industrial (Package used for interfacing industrial robots). Finally, you will get to know the best practices to follow when programming using ROS. What you will learn - Create a robot model of a Seven-DOF robotic arm and a differential wheeled mobile robot
- Work with motion planning of a Seven-DOF arm using MoveIt!
- Implement autonomous navigation in differential drive robots using SLAM and AMCL packages in ROS
- Dig deep into the ROS Pluginlib, ROS nodelets, and Gazebo plugins
- Interface I/O boards such as Arduino, Robot sensors, and High end actuators with ROS
- Simulation and motion planning of ABB and Universal arm using ROS Industrial
- Explore the ROS framework using its latest version
Who this book is forIf you are a robotics enthusiast or researcher who wants to learn more about building robot applications using ROS, this book is for you. In order to learn from this book, you should have a basic knowledge of ROS, GNU/Linux, and C++ programming concepts. The book will also be good for programmers who want to explore the advanced features of ROS.
All prices
More details
Other editions
New editions

Additional editions

Person
Lentin Joseph is an author and robotics entrepreneur from India. He runs a robotics software company called Qbotics Labs in India. He has 7 years of experience in the robotics domain primarily in ROS, OpenCV, and PCL. He has authored four books in ROS, namely, Learning Robotics using Python, Mastering ROS for Robotics Programming, ROS Robotics Projects, and Robot Operating System for Absolute Beginners. He is currently pursuing his master's in Robotics from India and is also doing research at Robotics Institute, CMU, USA.
Content
- Cover
- Copyright
- Credits
- About the Author
- About the Reviewers
- www.PacktPub.com
- Table of Contents
- Preface
- Chapter 1: Introduction to ROS and Its Package Management
- Why should we learn ROS?
- Why we prefer ROS for robots
- Why some do not prefer ROS for robots
- Understanding the ROS file system level
- ROS packages
- ROS meta packages
- ROS messages
- The ROS services
- Understanding the ROS computation graph level
- Understanding ROS nodes
- ROS messages
- ROS topics
- ROS services
- ROS bags
- Understanding ROS Master
- Using the ROS parameter
- Understanding ROS community level
- What are the prerequisites to start with ROS?
- Running ROS Master and ROS parameter server
- Checking the roscore command output
- Creating a ROS package
- Working with ROS topics
- Creating ROS nodes
- Building the nodes
- Adding custom msg and srv files
- Working with ROS services
- Working with ROS actionlib
- Building the ROS action server and client
- Creating launch files
- Applications of topics, services, and actionlib
- Maintaining the ROS package
- Releasing your ROS package
- Preparing the ROS package for the release
- Releasing our package
- Creating a Wiki page for your ROS package
- Questions
- Summary
- Chapter 2: Working with 3D Robot Modeling in ROS
- ROS packages for robot modeling
- Understanding robot modeling using URDF
- Creating the ROS package for the robot description
- Creating our first URDF model
- Explaining the URDF file
- Visualizing the robot 3D model in Rviz
- Interacting with pan and tilt joints
- Adding physical and collision properties to a URDF model
- Understanding robot modeling using xacro
- Using properties
- Using the math expression
- Using macros
- Conversion of xacro to URDF
- Creating the robot description for a seven DOF robot manipulator
- Arm specification
- Type of joints
- Explaining the xacro model of seven DOF arm
- Using constants
- Using macros
- Including other xacro files
- Using meshes in the link
- Working with the robot gripper
- Viewing the seven DOF arm in Rviz
- Understanding joint state publisher
- Understanding the robot state publisher
- Creating a robot model for the differential drive mobile robot
- Questions
- Summary
- Chapter 3: Simulating Robots Using ROS and Gazebo
- Simulating the robotic arm using Gazebo and ROS
- The Robotic arm simulation model for Gazebo
- Adding colors and textures to the Gazebo robot model
- Adding transmission tags to actuate the model
- Adding the gazebo_ros_control plugin
- Adding a 3D vision sensor to Gazebo
- Simulating the robotic arm with Xtion Pro
- Visualizing the 3D sensor data
- Moving robot joints using ROS controllers in Gazebo
- Understanding the ros_control packages
- Different types of ROS controllers and hardware interfaces
- How the ROS controller interacts with Gazebo
- Interfacing joint state controllers and joint position controllers to the arm
- Launching the ROS controllers with Gazebo
- Moving the robot joints
- Simulating a differential wheeled robot in Gazebo
- Adding the laser scanner to Gazebo
- Moving the mobile robot in Gazebo
- Adding joint state publishers in the launch file
- Adding the ROS teleop node
- Questions
- Summary
- Chapter 4: Using the ROS MoveIt! and Navigation Stack
- Installing MoveIt!
- MoveIt! architecture
- The move_group node
- Motion planning using MoveIt!
- Motion planning request adapters
- MoveIt! planning scene
- MoveIt! kinematics handling
- MoveIt! collision checking
- Generating MoveIt! configuration package using Setup Assistant tool
- Step 1 - Launching the Setup Assistant tool
- Step 2 - Generating the Self-Collision matrix
- Step 3 - Adding virtual joints
- Step 4 - Adding planning groups
- Step 5 - Adding the robot poses
- Step 6 - Setup the robot end effector
- Step 7 - Adding passive joints
- Step 8 - Generating configuration files
- Motion planning of robot in Rviz using MoveIt! configuration package
- Using the Rviz MotionPlanning plugin
- Interfacing the MoveIt! configuration package to Gazebo
- Step 1 - Writing the controller configuration file for MoveIt!
- Step 2 - Creating the controller launch files
- Step 3 - Creating the controller configuration file for Gazebo
- Step 4 - Creating the launch file for Gazebo trajectory controllers
- Step 5 - Debugging the Gazebo- MoveIt! interface
- Understanding ROS Navigation stack
- ROS Navigation hardware requirements
- Working with Navigation packages
- Understanding the move_base node
- Working of Navigation stack
- Localizing on the map
- Sending a goal and path planning
- Collision recovery behavior
- Sending the command velocity
- Installing ROS Navigation stack
- Building a map using SLAM
- Creating a launch file for gmapping
- Running SLAM on the differential drive robot
- Implementing autonomous navigation using AMCL and a static map
- Creating an AMCL launch file
- Questions
- Summary
- Chapter 5: Working with Pluginlib, Nodelets, and Gazebo Plugins
- Understanding pluginlib
- Creating plugins for the calculator application using pluginlib
- Working with pluginlib_calculator package
- Understanding ROS nodelets
- Creating a nodelet
- Step 1 - Creating a package for nodelet
- Step 2 - Creating hello_world.cpp nodelet
- Step 3 - Explanation of hello_world.cpp
- Step 4 - Creating plugin description file
- Step 5 - Adding the export tag in package.xml
- Step 6 - Editing CMakeLists.txt
- Step 7 - Building and running nodelets
- Step 8 - Creating launch files for nodelets
- Understanding the Gazebo plugins
- Creating a basic world plugin
- Questions
- Summary
- Chapter 6: Writing ROS Controllers and Visualization Plugins
- Understanding pr2_mechanism packages
- pr2_controller_interface package
- Initialization of the controller
- Starting the ROS controller
- Updating ROS controller
- Stopping the controller
- pr2_controller_manager
- Writing a basic real-time joint controller in ROS
- Step 1 - Creating controller package
- Step 2 - Creating controller header file
- Step 3 - Creating controller source file
- Step 4 - Explanation of the controller source file
- Step 5 - Creating plugin description file
- Step 6 - Updating package.xml
- Step 7 - Updating CMakeLists.txt
- Step 8 - Building controller
- Step 9 - Writing controller configuration file
- Step 10 - Writing launch file for the controller
- Step 11 - Running controller along with PR2 simulation in Gazebo
- Understanding ros_control packages
- Understanding ROS visualization tool (RViz) and its plugins
- Displays panel
- RViz toolbar
- Views
- Time panel
- Dockable panels
- Writing a RViz plugin for teleoperation
- Methodology of building Rviz plugin
- Step 1 - Creating RViz plugin package
- Step 2 - Creating RViz plugin header file
- Step 3 - Creating RViz plugin definition
- Step 4 - Creating plugin description file
- Step 5 - Adding export tags in package.xml
- Step 6 - Editing CMakeLists.txt
- Step 7 - Building and loading plugins
- Questions
- Summary
- Chapter 7: Interfacing I/O Boards, Sensors, and Actuators to ROS
- Understanding the Arduino-ROS interface
- What is the Arduino-ROS interface?
- Understanding the rosserial package in ROS
- Installing rosserial packages on Ubuntu 14.04/15.04
- ROS - Arduino Publisher and Subscriber example
- Arduino-ROS, example - blink LED and push button
- Arduino-ROS, example - Accelerometer ADXL 335
- Arduino-ROS, example - ultrasonic distance sensor
- Equations to find distance using the ultrasonic range sensor
- Arduino-ROS, example - Odometry Publisher
- Interfacing Non-Arduino boards to ROS
- Setting ROS on Odroid-C1 and Raspberry Pi 2
- How to install an OS image to Odroid-C1 and Raspberry Pi 2
- Installation in Windows
- Installation in Linux
- Connecting to Odroid-C1 and Raspberry Pi 2 from a PC
- Configuring an Ethernet hotspot for Odroid-C1 and Raspberry Pi 2
- Installing Wiring Pi on Odroid-C1
- Installing Wiring Pi on Raspberry Pi 2
- Blinking LED using ROS on Odroid-C1 and Raspberry Pi 2
- Push button + blink LED using ROS on Odroid-C1 and Raspberry Pi 2
- Interfacing Dynamixel actuators to ROS
- Questions
- Summary
- Chapter 8: Programming Vision Sensors using ROS, Open-CV, and PCL
- Understanding ROS - OpenCV interfacing packages
- Understanding ROS - PCL interfacing packages
- Installing ROS perception
- Interfacing USB webcams in ROS
- Working with ROS camera calibration
- Converting images between ROS and OpenCV using cv_bridge
- Image processing using ROS and OpenCV
- Step 1: Creating ROS package for the experiment
- Step 2: Creating source files
- Step 3: Explanation of the code
- Step 4: Editing the CMakeLists.txt file
- Step 5: Building and running example
- Interfacing Kinect and Asus Xtion Pro in ROS
- Interfacing Intel Real Sense camera with ROS
- Working with point cloud to laser scan package
- Interfacing Hokuyo Laser in ROS
- Interfacing Velodyne LIDAR in ROS
- Working with point cloud data
- How to publish a point cloud
- How to subscribe and process the point cloud
- Writing a point cloud data to a PCD file
- Read and publish point cloud from a PCD file
- Streaming webcam from Odroid using ROS
- Questions
- Summary
- Chapter 9: Building and Interfacing Differential Drive Mobile Robot Hardware in ROS
- Introduction to Chefbot- a DIY mobile robot and its hardware configuration
- Flashing Chefbot firmware using Energia IDE
- Serial data sending protocol from LaunchPad to PC
- Serial data sending protocol from PC to Launchpad
- Discussing Chefbot interface packages on ROS
- Computing odometry from encoder ticks
- Computing motor velocities from ROS twist message
- Running robot stand alone launch file using C++ nodes
- Configuring the Navigation stack for Chefbot
- Configuring the gmapping node
- Configuring the Navigation stack packages
- Common configuration (local_costmap) and (global_costmap)
- Configuring global costmap parameters
- Configuring local costmap parameters
- Configuring base local planner parameters
- Configuring DWA local planner parameters
- Configuring move_base node parameters
- Understanding AMCL
- Understanding RViz for working with the Navigation stack
- 2D Pose Estimate button
- Visualizing the particle cloud
- The 2D Nav Goal button
- Displaying the static map
- Displaying the robot footprint
- Displaying the global and local cost map
- Displaying the global plan, local plan, and planner plan
- The current goal
- Obstacle avoidance using the Navigation stack
- Working with Chefbot simulation
- Building a room in Gazebo
- Adding model files to the Gazebo model folder
- Sending a goal to the Navigation stack from a ROS node
- Questions
- Summary
- Chapter 10: Exploring the Advanced Capabilities of ROS-MoveIt!
- Motion planning using the move_group C++ interface
- Motion planning a random path using MoveIt! C++ APIs
- Motion planning a custom path using MoveIt! C++ APIs
- Collision checking in robot arm using MoveIt!
- Adding a collision object in MoveIt!
- Removing a collision object from the planning scene
- Checking self collision using MoveIt! APIs
- Working with perception using MoveIt! and Gazebo
- Grasping using MoveIt!
- Working with robot pick and place task using MoveIt!
- Creating Grasp Table and Grasp Object in MoveIt!
- Pick and place action in Gazebo and real Robot
- Understanding Dynamixel ROS Servo controllers for robot hardware interfacing
- The Dynamixel Servos
- Dynamixel-ROS interface
- Interfacing seven DOF Dynamixel based robotic arm to ROS MoveIt!
- Creating a controller package for COOL arm robot
- MoveIt! configuration of the COOL Arm
- Questions
- Summary
- Chapter 11: ROS for Industrial Robots
- Understanding ROS-Industrial packages
- Goals of ROS-Industrial
- ROS-Industrial - a brief history
- Benefits of ROS-Industrial
- Installing ROS-Industrial packages
- Block diagram of ROS-Industrial packages
- Creating URDF for an industrial robot
- Creating MoveIt! configuration for an industrial robot
- Updating the MoveIt! configuration files
- Testing the MoveIt! configuration
- Installing ROS-Industrial packages of universal robotic arm
- Installing the ROS interface of universal robots
- Understanding the Moveit! configuration of a universal robotic arm
- Working with MoveIt! configuration of ABB robots
- Understanding the ROS-Industrial robot support packages
- Visualizing the ABB robot model in RViz
- ROS-Industrial robot client package
- Designing industrial robot client nodes
- ROS-Industrial robot driver package
- Understanding MoveIt! IKFast plugin
- Creating the MoveIt! IKFast plugin for the ABB-IRB6640 robot
- Prerequisites for developing the MoveIt! IKFast plugin
- OpenRave and IK Fast Module
- MoveIt! IK Fast
- Installing MoveIt! IKFast package
- Installing OpenRave on Ubuntu 14.04.3
- Creating the COLLADA file of a robot to work with OpenRave
- Generating the IKFast CPP file for the IRB 6640 robot
- Creating the MoveIt! IKFast plugin
- Questions
- Summary
- Chapter 12: Troubleshooting and Best Practices in ROS
- Setting up Eclipse IDE on Ubuntu 14.04.3
- Setting ROS development environment in Eclipse IDE
- Global settings in Eclipse IDE
- ROS compile script for Eclipse IDE
- Adding ROS Catkin package to Eclipse
- Adding run configurations to run ROS nodes in Eclipse
- Best practices in ROS
- ROS C++ coding style guide
- Standard naming conventions used in ROS
- Code license agreement
- ROS code formatting
- ROS code documentation
- Console output
- Best practices in the ROS package
- Important troubleshooting tips in ROS
- Usage of roswtf
- Questions
- Summary
- Index
System requirements
File format: ePUB
Copy protection: Adobe-DRM (Digital Rights Management)
System requirements:
- Computer (Windows; MacOS X; Linux): Install the free reader Adobe Digital Editions prior to download (see eBook Help).
- Tablet/smartphone (Android; iOS): Install the free app Adobe Digital Editions or the app PocketBook before downloading (see eBook Help).
- E-reader: Bookeen, Kobo, Pocketbook, Sony, Tolino and many more (not Kindle).
The file format ePub works well for novels and non-fiction books – i.e., „flowing” text without complex layout. On an e-reader or smartphone, line and page breaks automatically adjust to fit the small displays.
This eBook uses Adobe-DRM, a „hard” copy protection. If the necessary requirements are not met, unfortunately you will not be able to open the eBook. You will therefore need to prepare your reading hardware before downloading.
Please note: We strongly recommend that you authorise using your personal Adobe ID after installation of any reading software.
For more information, see our ebook Help page.
File format: PDF
Copy-Protection: Adobe-DRM (Digital Rights Management)
System requirements:
- Computer (Windows; MacOS X; Linux): Install the free reader Adobe Digital Editions prior to download (see eBook Help).
- Tablet/smartphone (Android; iOS): Install the free app Adobe Digital Editions or the app PocketBook before downloading (see eBook Help).
- E-reader: Bookeen, Kobo, Pocketbook, Sony, Tolino and many more (only limited: Kindle).
The file format PDF always displays a book page identically on any hardware. This makes PDF suitable for complex layouts such as those used in textbooks and reference books (images, tables, columns, footnotes). Unfortunately, on the small screens of e-readers or smartphones, PDFs are rather annoying, requiring too much scrolling.
This eBook uses Adobe-DRM, a „hard” copy protection. If the necessary requirements are not met, unfortunately you will not be able to open the eBook. You will therefore need to prepare your reading hardware before downloading.
Please note: We strongly recommend that you authorise using your personal Adobe ID after installation of any reading software.
For more information, see our eBook Help page.