ROS Tutorial 2: ROS file system introduced

Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
This link: https://blog.csdn.net/zhanshen112/article/details/97621712

1 mounted ros-tutorials

Since the portion of the package will be used ros-tutorials, it is necessary to install

sudo apt install ros-<distort>-ros-tutorials

Note the replaced version (such as Jade, Indigo, hydro, groovy, fuerte, etc.) you have installed.

As used herein, mainly kinetic version, so write

sudo apt install ros-kinetic-ros-tutorials

2 file system concepts and tools

Tutorial has been described in detail, so no longer specific ros command explained.

2.1 File System

In fact, it can be understood, ROS under two very important types of files: Packages and Manifest.

File system structure is very clear.

  • Packages: Packages, it is an organizational unit ROS application code, each package can contain libraries, something executables, scripts, or other manually created.

  • Manifest (package.xml): list, for the 'package' related information in, for the definition of the dependencies between meta information package, including the version information, and license agreements maintainer.

2.2 ROS tool instructions

In fact, under the command of ROS and many linux is the same program code is distributed in a number of ROS package which, when using the command-line tool (such as ls and cd) to be very cumbersome when browsing, therefore ROS provides special tools to command simplify these operations.

Thus a large part ros instructions to simplify the operation instruction has currently used

rospack

roscd

roscd log

.....

In fact, it ROS these instructions only to simplify the operation since instructions and Ubuntu ROS above is the same. The difference is that only the folder can pass, without the need for layers were cd ls and the like.

Guess you like

Origin blog.csdn.net/zhanshen112/article/details/97621712