
Effective Robotics Programming with ROS
By :

It is time for you to practise what you have learned until now. In upcoming sections, you will see examples for you to practise along with the creation of packages, using nodes, using Parameter Server, and moving a simulated robot with Turtlesim.
As explained before, ROS provides a number of command-line tools for navigating through the filesystem. In this subsection, we will explain the most used ones, with examples.
To get information about the packages and stacks in our environment, such as their paths, dependencies, and so on, we can use rospack
and rosstack
. On the other hand, to move through packages and stacks, as well as listing their contents, we will use roscd
and rosls
.
For example, if you want to find the path of the turtlesim
package, you can use the following command:
$ rospack find turtlesim
Which will then result in the following output:
/opt/ros/kinetic/share/turtlesim
The same thing happens with the metapackages...