내 머릿속

[ROS2] ROS2 Humble Workspace 및 패키지 만들기 본문

Python with ROS

[ROS2] ROS2 Humble Workspace 및 패키지 만들기

두구궁 2024. 5. 2. 15:00
728x90
반응형
SMALL

1. Workspace 만들기

mkdir -p /ros2_ws/src
cd ros2_ws/src
git clone -b https://github.com/ros/ros_tutorials.git
cd ..
rosdep install -i --from-path src --rosdistro humble -y
colcon build

 

결과

Starting >>> turtlesim
Finished <<< turtlesim [26.5s]                       

Summary: 1 package finished [26.8s]​

 

2. 패키지 만들기

cd src
ros2 pkg create --build-type ament_python basic_pkg
cd ..
colcon build or colocn build --packages-select basic_pkg
source install/setup.bash

 

728x90
반응형
LIST

'Python with ROS' 카테고리의 다른 글

[Python numpy] np.minimum.reduce  (0) 2024.05.02
[1] Shebang 이란?  (0) 2023.01.16