rosdep update
rosdep init
mkdir [workspace_name]
cd [workspace_name]
colcon build --symlink-install
colcon build --packages-select <package_name>
mkdir [workspace_name]
cd [workspace_name]
mkdir src
cd src
mkdir [workspace name]
cd [workspace name]
mkdir src # package 생성 dir
cd src

ros2 pkg create [package_name] --build-type ament_python --dependencies [의존 패키지] # 파이썬으로 패키지 생성
ros2 pkg create --build-type ament_cmake [package_name] --dependencies [의존 패키지]# c++로 패키지 생성

1) package.xml package.xml
2) setup.py & setup.cfg setup
3) publisher & subscriber node python code - helloworld_publisher & _subscriber.py pub_sub