It is time to practice what we have learned until now. In the upcoming sections, you will see examples to practice along with the creation of packages, using nodes, using the Parameter Server, and moving a simulated robot with TurtleSim.
We have some 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 this:
$ rospack find turtlesim
You will then obtain the following:
/opt/ros/fuerte/share/turtlesim
The same happens with stacks that you have installed in the system. An example of this is as follows:
$ rosstack find 'nameofstack'
To list the files inside the pack or stack, you will use...