ubuntu18.04 px4的配置进行
px4的下载按照
(44条消息) Ubuntu18.04下基于ROS和PX4的无人机仿真平台的基础配置搭建_Lqcx-spec的博客-CSDN博客
进行
但是
roslaunch px4 mavros_posix_sitl.launch
输入后报错
1.
[FATAL] [1667974658.101654921]: UAS: GeographicLib exception: File not readable /usr/share/GeographicLib/geoids/egm96-5.pgm | Run install_geographiclib_dataset.sh script in order to install Geoid Model dataset!
2.
[gazebo-3] process has died [pid 42918, exit code 255, cmd /opt/ros/melodic/lib/gazebo_ros/gzserver -e ode /home/z/PX4_Firmware/Tools/sitl_gazebo/worlds/empty.world __name:=gazebo __log:=/home/z/.ros/log/3474afd0-5ff6-11ed-b47f-000c29811302/gazebo-3.log].
log file: /home/z/.ros/log/3474afd0-5ff6-11ed-b47f-000c29811302/gazebo-3*.log
3.
================================================================================REQUIRED process [mavros-6] has died!
process has finished cleanly
log file: /home/z/.ros/log/3474afd0-5ff6-11ed-b47f-000c29811302/mavros-6*.log
Initiating shutdown!
================================================================================
4.
ERROR [px4] Startup script returned with return value: 2
首先对于1
(44条消息) UAS: GeographicLib exception: File not readable /usr/share/Geogr_海的精灵的博客-CSDN博客
试了不行,又按原来的重装mavros,解决了
(44条消息) Ubuntu18.04下基于ROS和PX4的无人机仿真平台的基础配置搭建_Lqcx-spec的博客-CSDN博客
然后出现了这个错误
[gazebo-3] process has died [pid 49654, exit code 255, cmd /opt/ros/melodic/lib/gazebo_ros/gzserver -e ode /home/z/PX4_Firmware/Tools/sitl_gazebo/worlds/empty.world __name:=gazebo __log:=/home/z/.ros/log/27c686fc-5ffe-11ed-b47f-000c29811302/gazebo-3.log].
log file: /home/z/.ros/log/27c686fc-5ffe-11ed-b47f-000c29811302/gazebo-3*.log
但是gazebo能正常打开
(44条消息) 解决方案:gazebo-2] process has died [pid 28003, exit code 255, cmd /opt/ros/indigo/lib/_donnieliu的博客-CSDN博客这个链接有助于解决问题,运行成功!
来来回回花费好长时间。