修改navigation包中的算法可以新开工作区并下载navigation包:git clone https://github.com/ros-planning/navigation.git
编译:出现错误:需要两个包:
git clone https://github.com/ros/geometry2.git
git clone https://github.com/ros/cmake_modules.git
修改工作区下的CMakeLists.txt文件并添加SET( CMAKE_CXX_FLAGS "-std=c++11 -O3")[这句话用完要删除,不然其他包编译会出错]
编译成功。
对于环境变量,要想删除的话:删除改变量工作区里的build和devel,还有~/.bashrc里的对应路径,运行source ~/.bashrc即可