MikeS96 / autonomous_landing_uav

ROS packages of the Autonomous landing system of a UAV in Gazebo
MIT License
159 stars 54 forks source link

roslaunch mavros_off_board mavros_posix_sitl.launch error #10

Closed mohammadrezaaerospace closed 2 years ago

mohammadrezaaerospace commented 2 years ago

Hi @MikeS96 I did it all steps as you said but I have a problem. when I run this command: roslaunch mavros_off_board mavros_posix_sitl.launch gives this error: INFO [px4] Calling startup script: /bin/sh etc/init.d-posix/rcS 0 ERROR [init] Unknown model quad_f450_camera (not found by name on /home/mrm/.ros/etc/init.d-posix/airframes) ERROR [px4] Startup script returned with return value: 256 process[gazebo-2]: started with pid [4260] process[gazebo_gui-3]: started with pid [4268] process[vehicle_spawn_mrm_4231_8665359515778133541-4]: started with pid [4273] process[mavros-5]: started with pid [4274] ================================================================================REQUIRED process [sitl-1] has died! process has died [pid 4247, exit code 255, cmd /home/mrm/Firmware/build/px4_sitl_default/bin/px4 /home/mrm/Firmware/build/px4_sitl_default/etc -s etc/init.d-posix/rcS name:=sitl log:=/home/mrm/.ros/log/134c7274-32a8-11ec-b9a0-62b560552f3b/sitl-1.log]. log file: /home/mrm/.ros/log/134c7274-32a8-11ec-b9a0-62b560552f3b/sitl-1*.log Initiating shutdown! what is the problem? I did this step as you said: Add the airframe name (quad_f450_camera) to the file platforms/posix/cmake/sitl_target.cmake in the command that starts with set(models …

MikeS96 commented 2 years ago

Hi @mohammadrezaaerospace ,

In the past, someone asked a similar question. Detailed information can be seen in a duplicate issue of #3

There you will find a detailed explanation of each step.

Hope it helps.

Best,