ros2常用命令
创建包
ros2 pkg create --build-type ament_cmake --license Apache-2.0 --node-name my_node my_package
ros2 pkg create --build-type ament_cmake --license Apache-2.0 cpp_srvcli --dependencies rclcpp example_interfaces
编译包前到工作更目录执行安装依赖;rosdep install -i --from-path src --rosdistro jazzy -y
编译制定包
colcon build --packages-select my_package
clion 编译加载工程
colcon build --cmake-args -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
clion 编译加载工程 install 是软连接
colcon build --cmake-args -DCMAKE_EXPORT_COMPILE_COMMANDS=ON --symlink-install
tool->complicate database ->root