O seguinte comando inicializará um novo pacote ROS2 chamado my_ros_package no diretório my_ros_package baseado em C++:
ros2_pkg_create.sh
ros2 pkg create --build-type ament_cmake my_ros_packageCom ROS2 Jazzy, a estrutura de arquivos gerada será a seguinte
package_structure.txt
my_ros_package/
├── CMakeLists.txt
├── include
│ └── my_ros_package
├── package.xml
└── srcIf this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow