navigation 环境安装

16 篇文章 1 订阅

 

ros-planning/navigation 代码库:https://github.com/ros-planning/navigation

 

navigation环境安装

##############################################################################
# 下载与编译
##############################################################################
$ cd catkin_ws/src
$ git clone https://github.com/ros-planning/navigation.git
$ cd ..
$ catkin_make
##############################################################################
# 出现问题与解决方案
##############################################################################
# 出现错误1
Could NOT find Bullet (missing: BULLET_DYNAMICS_LIBRARY
  BULLET_COLLISION_LIBRARY BULLET_MATH_LIBRARY BULLET_SOFTBODY_LIBRARY
  BULLET_INCLUDE_DIR)
#解决方法(参考:https://blog.csdn.net/qq_35379989/article/details/79964317)
$rosdep where-defined bullet
$sudo apt-get install libbullet-dev

#出现错误2
Could not find a package configuration file provided by "tf2_sensor_msgs"
    tf2_sensor_msgsConfig.cmake
    tf2_sensor_msgs-config.cmake
#解决办法  (参考:https://github.com/ros/geometry2)
$git clone https://github.com/ros/geometry2.git --branch melodic-devel

#出现错误3
Could not find a package configuration file provided by "move_base_msgs"
  with any of the following names:

    move_base_msgsConfig.cmake
    move_base_msgs-config.cmake
#解决方法 (参考:http://wiki.ros.org/move_base_msgs)
$git clone https://github.com/ros-planning/navigation_msgs.git

出现错误4:
/usr/include/c++/5/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
解决:
对应CMakeList.txt文件中添加下方语句:
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall -Wno-deprecated-declarations")

 

  • 0
    点赞
  • 11
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值