ros create a workspace catkin_ws

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/qq_24624539/article/details/102755619

After installation is complete there will be a catkin_ws folder ROS, ROS is the workspace.

[1] creates and initializes a new workspace catkin_ws2

Mkdir -p ~ $ / catkin_ws2 / src
$ cd ~ / catkin_ws2 / src
$ catkin_init_workspace
catkin_init_workspace command changes the current directory is initialized to a ROS workspace.

[2] The compiler workspace.

CD ~ $ / catkin_ws2
$ catkin_make
[. 3] catkin_ws defined space required environment variables. After executing this command, ros related commands (such as roscd, etc.) may find this workspace package.

devel Source / setup.sh
[4] environment variable to verify ROS workspace loaded successfully:

$ ROS_PACKAGE_PATH echo
[5] open environment variable file sudo gedit .bashrc add the following line:

source ~/catkin_ws2/devel/setup.bash

Guess you like

Origin blog.csdn.net/qq_24624539/article/details/102755619