以moveit官方的c++例子为准:

https://moveit.picknik.ai/humble/doc/tutorials/your_first_project/your_first_project.html

代码我截了一张图:

平台:ok3588

启动rviz:

按照moveit的教程:

ros2 pkg create \
 --build-type ament_cmake \
 --dependencies moveit_ros_planning_interface rclcpp \
 --node-name hello_moveit hello_moveit
cd hello_moveit
colcon build

把moveit官网里的c++代码贴进去。

编译和运行:

详细的看视频:

moveit

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐