最近在学习gbplanner_ros的代码,在运行过程中了一些问题,在这里记录一下。
第一个问题
运行
git clone git@github.com:ntnu-arl/gbplanner_ros.git -b gbplanner2
出现类似git@github.com::Permission denied(publickey).Could not read from remote repository
原因可能是客户端与服务端未生成ssh key,我是没有生成ssh key,github没有进行配置,在这篇博客得到解决。解决git@github.com: Permission denied (publickey). Could not read from remote repository_ywl470812087的博客-CSDN博客
第二个问题
运行无人机仿真程序出现的问题,gazebo报了跟rotors_simulatior相关的错,这是因为我电脑安装了Px4_Firmware,Px4_Firmware里面也有相关的插件,跟gbplanner有冲突,把.bashrc里面跟Px4_Firmware相关的代码注释掉得以解决。
最终运行结果如下