在ROS 2 Galactic版本中安装MoveIt 2

获取MoveIt 2源代码

你可以从GitHub上获取MoveIt 2的源代码:

cd ~/moveit2_ws/src
git clone https://github.com/ros-planning/moveit2.git -b galactic

安装依赖项

使用rosdep安装所有必需的依赖项:

cd ~/moveit2_ws
rosdep install -y --from-paths src --ignore-src --rosdistro galactic

编译MoveIt 2

使用colcon工具编译MoveIt 2:

cd ~/moveit2_ws
colcon build --event-handlers desktop_notification- status- --cmake-args -DCMAKE_BUILD_TYPE=Release

源代码环境

在你的bashrc文件中添加以下行以便在新的终端中自动源代码环境:

echo 'source ~/moveit2_ws/install/setup.bash' >> ~/.bashrc
source ~/.bashrc

下载并运行MoveIt 2的demo

你可以从GitHub上获取MoveIt 2的demo:

cd ~/moveit2_ws/src
git clone https://github.com/ros-planning/moveit2_tutorials.git -b
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值