1) ament_cmake
2) ament_python
ros2: colcon
//Python
$ ros2 pkg create 패키지 이름 --build-type ament_python
ros2 pkg create 패키지 이름 --build-type ament_python --dependencies rclpy std_msgs
ros2 pkg create 패키지 이름 --build-type ament_python --node-name 노드 이름
//C++
$ ros2 pkg create 패키지 이름 --build-type ament_cmake --dependencies rclcpp std_msgs
. install/local_setup.bash
or
. install/setup.bash
# ~/robot_ws
colcon build --packages-select my_package
cd ~/robot_ws && colcon build --symlink-install --packages-select [패키지 이름]
cd ~/robot_ws && colcon build --symlink-install --packages-select
. install/setup.bash
source ~/robot_ws/install/local_setup.bash
ros2 run my_package my_node
$ export TURTLEBOT3_MODEL=burger
$ ros2 launch turtlebot3_bringup robot.launch.py
$ export TURTLEBOT3_MODEL=burger
$ ros2 launch turtlebot3_cartographer cartographer.launch.py
$ export TURTLEBOT3_MODEL=burger
$ ros2 launch turtlebot3_navigation2 navigation2.launch.py map:=$HOME/map.yaml
$ export TURTLEBOT3_MODEL=burger
$ ros2 run turtlebot3_teleop teleop_keyboard