cd ~/catkin_ws/src
git clone https://github.com/rst-tu-dortmund/teb_local_planner
下载对应版本!!!我的是基于ros-kinetic的,建议直接下载zip,解压到src文件夹下
否则可能会报一堆错:例如no matching function for call to ‘g2o::BlockSolver<g2o::BlockSolverTraits<-1,-1>>::BlockSolver(std::remove_reference<std::unique_ptr<g2o::LinearSolverCSparse<Eigen::Matrix<double, -1, -1> > >&>::type)’
- 编译:
cd ~/catkin_ws
catkin_make -DCATKIN_WHITELIST_PACKAGES="teb_local_planner"
- 需要安装缺少的依赖,可能的报错:(ros-kinetic最开始安装的完全版本)
Could not find a package configuration file provided by “base_local_planner” with any of the following names;
Could not find a