![Artificial Intelligence for Robotics](https://wfqqreader-1252317822.image.myqcloud.com/cover/527/36699527/b_36699527.jpg)
上QQ阅读APP看书,第一时间看更新
Setting up catkin workspaces
We will need a catkin workspace on your development machine –laptop or desktop – as well as on the Raspberry Pi. Follow the instructions at http://wiki.ros.org/catkin/Tutorials/create_a_workspace.
If you are already a user of ROS, then you know what a catkin workspace is, and how it is used to create packages that can be used and deployed as a unit. We are going to keep all of our programs in a package we will call tinman. Let's go ahead and put this package together. It takes just a few steps.
Start in the home directory:
mkdir –p catkin_ws/src
cd catkin_ws/src
catkin_make
source devel/setup.bash
catkin_create_pkg tinman
catkin_make
cd src/tinman/src
mkdir script
mkdir launch
You’ll be left with a directory structure that looks something like this:
![](https://epubservercos.yuewen.com/8CA4B6/19470389601545406/epubprivate/OEBPS/Images/f675c297-65d0-4b3d-96f9-059f9fa5f556.jpg?sign=1738862111-bnedErdTu0RK1P2GboVZdfPT4ZcEQqqY-0-ac311d15cef41062ccf71ae7e284e1a7)