一.去github下载源码
cd ~/catkin_ws/src
git clone https://github.com/rst-tu-dortmund/teb_local_planner
git checkout <your_ros_version_branch>
二.安装依赖
cd ..
rosdep install --from-paths src --ignore-src --rosdistro=noetic -y
三.编译
catkin_make -DCATKIN_WHITELIST_PACKAGES="teb_local_planner"
(src文件夹下面你下载的teb功能包文件夹名字)
四.查看teb_local_planner是否安装完成
rospack plugins --attrib=plugin nav_core
五.刷新环境变量
source ./devel/setup.bash