Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

make new package ros2

# For python:
ros2 pkg create --build-type ament_python --node-name my_node my_package

# For cmake:
ros2 pkg create --build-type ament_cmake --node-name my_node my_package

# p.s. Make sure you have sourced ros2. (e.g. `source /opt/ros/foxy/local_setup.bash`)
 
PREVIOUS NEXT
Tagged: #package
ADD COMMENT
Topic
Name
4+4 =