- Artificial Intelligence for Robotics
- Francis X. Govers
- 131字
- 2021-07-23 19:00:55
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=1738942327-rqXAdJVz8YUZAiOvYuGwwCAweOK65T6e-0-c3e50ca2a77c8100ffb7e466b8eddeab)