moveit+ompl源码安装

ros版本:Kinetic

moveit安装链接:http://moveit.ros.org/install/source/

ompl安装链接:http://moveit.ros.org/install/source/dependencies/

放在同一个工作空间下,先编译ompl再编译moveit

rosdep update
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install python-wstool python-catkin-tools clang-format-3.8
mkdir -p ~/ws_moveit/src
cd ~/ws_moveit/src
下载ompl源码:

cd ~/ws_moveit/src

git clone https://github.com/ompl/ompl

cd ompl 

wget https://raw.githubusercontent.com/ros-gbp/ompl-release/debian/kinetic/xenial/ompl/package.xml

编译

cd ~/ws_moveit

catkin build

下载moveit源码:

cd ~/ws_moveit/src

wstool init .

wstool merge https://raw.githubusercontent.com/ros-planning/moveit/kinetic-devel/moveit.rosinstall

wstool update

修改 moveit_planners_ompl 的 CMakeLists.txt

gedit ~/ws_moveit/src/moveit/moveit_planners/ompl/CMakeLists.txt

将其中的find_package(OMPL....)修改为find_package(ompl ....)

cd ~/ws_moveit/src

rosdep install -y --from-paths . --ignore-src --rosdistro kinetic

cd ..

catkin config --extend /opt/ros/kinetic --cmake-args -DCMAKE_BUILD_TYPE=Release

cd ~/ws_moveit

catkin build

参考

https://www.zhihu.com/question/55861914?from=profile_question_card


  • 0
    点赞
  • 12
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值