Book Image

Learning ROS for Robotics Programming Second Edition

Book Image

Learning ROS for Robotics Programming Second Edition

Overview of this book

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
Index

Tutorials to practice with ROS


It is time for you to practice what you have learned until now. In the upcoming sections, you will see examples for you to practice along with the creation of packages, using nodes, using Parameter Server, and moving a simulated robot with Turtlesim.

Navigating by ROS Filesystem

We have command-line tools to navigate through the filesystem. We are going to explain the most used ones.

To get information and move to packages and stacks, we will use rospack, rosstack, roscd, and rosls.

We use rospack and rosstack to get information about packages and stacks, the path, the dependencies, and so on.

For example, if you want to find the path of the turtlesim package, you will use the following command:

$ rospack find turtlesim

You will then obtain the following output:

/opt/ros/hydro/share/turtlesim

The same thing happens with the metapackages that you have installed in the system. An example of this is as follows:

$ rosstack find ros_comm

You will obtain the path for...