获取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