Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

create package in ros2

#Don't forget to cd into src folder of workspace
ros2 pkg create --build-type ament_python <package_name>

#You can also create nodes along :
ros2 pkg create --build-type ament_python --node-name my_node my_package


#Bonus :
alias ros2_pkg_create='ros2 pkg create --build-type ament_python $1'
ros2_pkg_create <package name>
Source by docs.ros.org #
 
PREVIOUS NEXT
Tagged: #create #package
ADD COMMENT
Topic
Name
2+6 =