1. Go to github to download the source code
cd ~/catkin_ws/src
git clone https://github.com/rst-tu-dortmund/teb_local_planner
git checkout <your_ros_version_branch>
2. Installation dependencies
cd ..
rosdep install --from-paths src --ignore-src --rosdistro=noetic -y
3. Compile
catkin_make -DCATKIN_WHITELIST_PACKAGES="teb_local_planner"
(The name of the teb function package folder you downloaded under the src folder)
4. Check whether teb_local_planner is installed
rospack plugins --attrib=plugin nav_core
5. Refresh environment variables
source ./devel/setup.bash