catkin workspace ๋งŒ๋“ค๊ธฐ

2022. 10. 7. 11:01
* catkin ์ด๋ž€?
โ‡จ ROS ์—์„œ ํ”„๋กœ๊ทธ๋žจ์„ ์‚ฌ์šฉํ•˜๊ธฐ ์ „ build ๋ฅผ ํ•  ๋•Œ ์‚ฌ์šฉํ•˜๋Š” ์‹œ์Šคํ…œ์ด๋‹ค.

* catkin workspace ๋ž€?
โ‡จ ํ”„๋กœ๊ทธ๋žจ๊ณผ ๊ด€๋ จ๋œ ROS ์ฝ”๋“œ๋ฅผ ๋ชจ์•„๋‘๋Š” directory ๋กœ์จ ์ž‘์—…๊ณต๊ฐ„์˜ ์ตœ์ƒ์œ„ ํด๋”์ด๋‹ค.

* catkin_ws ์˜ ํ•˜์œ„ ํด๋”
โ‘  build
: catkin ์ž‘์—… ๊ฒฐ๊ณผ ์ค‘ ์ผ๋ถ€๋ฅผ ์ €์žฅํ•˜๋Š” ๊ณต๊ฐ„
โ‘ก devel
: ์œ„์น˜๋ฅผ ์•Œ๋ ค์ฃผ๋Š” ํ™˜๊ฒฝ์„ค์ • ํŒŒ์ผ์ด ์žˆ๋Š” ๊ณณ (/home/username/catkin_ws/devel/setup.bash)
โ‘ข src
: ROS ํŒจํ‚ค์ง€๋ฅผ ์ €์žฅํ•˜๋Š” ๊ณต๊ฐ„

 

1. directory ๋งŒ๋“ค๊ธฐ

$ mkdir -p ~/catkin_ws/src

 

2. CMakeLists.txt ์ƒ์„ฑ

$ cd ~/catkin_ws/src
$ catkin_init_workspace

 

3. ๋นŒ๋“œ

$ cd ..
$ catkin_make

 

4. package ๊ฒฝ๋กœ ์ถ”๊ฐ€

$ source devel/setup.bash

'๐Ÿข turtleobot3 @ubuntu 20.04' ์นดํ…Œ๊ณ ๋ฆฌ์˜ ๋‹ค๋ฅธ ๊ธ€

opencv 4.5.0 ์„ค์น˜  (0) 2022.10.07
ROS Noetic ์„ค์น˜  (0) 2022.10.07

BELATED ARTICLES

more