To answer your questions:
make px4_sitl gz_x500 returns:
| __ \ \ \ / / / |
| |/ / \ V / / /| |
| __/ / \ / /| |
| | / /^\ \ __ |
_| / / |_/
px4 starting.
INFO [px4] startup script: /bin/sh etc/init.d-posix/rcS 0
INFO [init] found model autostart file as SYS_AUTOSTART=4001
INFO [param] selected parameter default file parameters.bson
INFO [param] importing from āparameters.bsonā
INFO [parameters] BSON document size 343 bytes, decoded 343 bytes (INT32:12, FLOAT:5)
INFO [param] selected parameter backup file parameters_backup.bson
SYS_AUTOCONFIG: curr: 0 ā new: 1
- SYS_AUTOSTART: curr: 4050 ā new: 4001
SENS_BOARD_X_OFF: curr: 0.0000 ā new: 0.0000
SENS_DPRES_OFF: curr: 0.0000 ā new: 0.0010
INFO [dataman] data manager file ā./datamanā size is 1208528 bytes
INFO [init] Gazebo simulator
INFO [init] Starting gazebo with world: /home/qsimmonds55/PX4-Autopilot/Tools/simulation/gz/worlds/default.sdf
INFO [init] Starting gz gui
[Err] [SystemLoader.cc:92] Failed to load system plugin [libGstCameraSystem.so] : Could not find shared library.
INFO [init] Gazebo world is ready
INFO [init] Spawning model
INFO [gz_bridge] world: default, model: x500_0
INFO [lockstep_scheduler] setting initial absolute time to 3268000 us
INFO [commander] LED: open /dev/led0 failed (22)
WARN [health_and_arming_checks] Preflight Fail: ekf2 missing data
WARN [health_and_arming_checks] Preflight Fail: No connection to the ground control station
INFO [tone_alarm] home set
INFO [uxrce_dds_client] init UDP agent IP:127.0.0.1, port:8888
INFO [mavlink] mode: Normal, data rate: 4000000 B/s on udp port 18570 remote port 14550
INFO [mavlink] mode: Onboard, data rate: 4000000 B/s on udp port 14580 remote port 14540
INFO [mavlink] mode: Onboard, data rate: 4000 B/s on udp port 14280 remote port 14030
INFO [mavlink] mode: Gimbal, data rate: 400000 B/s on udp port 13030 remote port 13280
INFO [logger] logger started (mode=all)
INFO [logger] removing log directory ./log/2025-08-20 to get more space (left=761289 MiB)
INFO [logger] Start file log (type: full)
INFO [logger] [logger] ./log/2025-11-08/04_26_26.ulg
INFO [logger] Opened full log file: ./log/2025-11-08/04_26_26.ulg
INFO [mavlink] MAVLink only on localhost (set param MAV_{i}BROADCAST = 1 to enable network)
INFO [mavlink] MAVLink only on localhost (set param MAV{i}_BROADCAST = 1 to enable network)
INFO [px4] Startup script returned successfully
pxh> WARN [health_and_arming_checks] Preflight Fail: No connection to the ground control station
WARN [health_and_arming_checks] Preflight Fail: No connection to the ground control station
make px4_sitl gz_x500_research_indoor_env0 returns:
| __ \ \ \ / / / |
| |/ / \ V / / /| |
| __/ / \ / /| |
| | / /^\ \ __ |
_| / / |_/
px4 starting.
INFO [px4] startup script: /bin/sh etc/init.d-posix/rcS 0
INFO [init] found model autostart file as SYS_AUTOSTART=4050
INFO [param] selected parameter default file parameters.bson
INFO [param] importing from āparameters.bsonā
INFO [parameters] BSON document size 404 bytes, decoded 404 bytes (INT32:14, FLOAT:6)
INFO [param] selected parameter backup file parameters_backup.bson
SYS_AUTOCONFIG: curr: 0 ā new: 1
- SYS_AUTOSTART: curr: 4001 ā new: 4050
SENS_BOARD_X_OFF: curr: 0.0000 ā new: 0.0000
SENS_DPRES_OFF: curr: 0.0000 ā new: 0.0010
INFO [dataman] data manager file ā./datamanā size is 1208528 bytes
INFO [init] Gazebo simulator
INFO [init] Starting gazebo with world: /home/qsimmonds55/PX4-Autopilot/Tools/simulation/gz/worlds/indoor_env0.sdf
INFO [init] Starting gz gui
INFO [init] Gazebo world is ready
INFO [init] Spawning model
Warning [Utils.cc:132] [/sdf/model[@name=āx500_researchā]/link[@name=ābase_linkā]/sensor[@name=āair_pressure_sensorā]/gz_frame_id:/home/qsimmonds55/PX4-Autopilot/Tools/simulation/gz/models/x500_research/model.sdf:L173]: XML Element[gz_frame_id], child of element[sensor], not defined in SDF. Copying[gz_frame_id] as children of [sensor].
Warning [Utils.cc:132] [/sdf/model[@name=āx500_researchā]/link[@name=ābase_linkā]/sensor[@name=āmagnetometer_sensorā]/gz_frame_id:/home/qsimmonds55/PX4-Autopilot/Tools/simulation/gz/models/x500_research/model.sdf:L191]: XML Element[gz_frame_id], child of element[sensor], not defined in SDF. Copying[gz_frame_id] as children of [sensor].
Warning [Utils.cc:132] [/sdf/model[@name=āx500_researchā]/link[@name=ābase_linkā]/sensor[@name=āimu_sensorā]/gz_frame_id:/home/qsimmonds55/PX4-Autopilot/Tools/simulation/gz/models/x500_research/model.sdf:L221]: XML Element[gz_frame_id], child of element[sensor], not defined in SDF. Copying[gz_frame_id] as children of [sensor].
Warning [Utils.cc:132] [/sdf/model[@name=āx500_researchā]/link[@name=ālidar_linkā]/sensor[@name=ālidar_sensorā]/gz_frame_id:/home/qsimmonds55/PX4-Autopilot/Tools/simulation/gz/models/x500_research/model.sdf:L739]: XML Element[gz_frame_id], child of element[sensor], not defined in SDF. Copying[gz_frame_id] as children of [sensor].
Warning [Utils.cc:132] [/sdf/model[@name=āx500_researchā]/link[@name=āoptical_flow_linkā]/sensor[@name=āoptical_flow_sensorā]/gz_frame_id:/home/qsimmonds55/PX4-Autopilot/Tools/simulation/gz/models/x500_research/model.sdf:L968]: XML Element[gz_frame_id], child of element[sensor], not defined in SDF. Copying[gz_frame_id] as children of [sensor].
Warning [Utils.cc:132] [/sdf/model[@name=āx500_researchā]/link[@name=ārangefinder_linkā]/sensor[@name=ārangefinder_sensorā]/gz_frame_id:/home/qsimmonds55/PX4-Autopilot/Tools/simulation/gz/models/x500_research/model.sdf:L1035]: XML Element[gz_frame_id], child of element[sensor], not defined in SDF. Copyi
ng[gz_frame_id] as children of [sensor].
Warning [Utils.cc:132] [/sdf/model[@name=āx500_researchā]/link[@name=āultrasonic_front_linkā]/sensor[@name=āultrasonic_front_sensorā]/gz_frame_id:/home/qsimmonds55/PX4-Autopilot/Tools/simulation/gz/models/x500_research/model.sdf:L1146]: XML Element[gz_frame_id], child of element[sensor], not defined in SDF. Copying[gz_frame_id] as children of [sensor].
Warning [Utils.cc:132] [/sdf/model[@name=āx500_researchā]/link[@name=āultrasonic_left_linkā]/sensor[@name=āultrasonic_left_sensorā]/gz_frame_id:/home/qsimmonds55/PX4-Autopilot/Tools/simulation/gz/models/x500_research/model.sdf:L1255]: XML Element[gz_frame_id], child of element[sensor], not defined in SDF. Copying[gz_frame_id] as children of [sensor].
Warning [Utils.cc:132] [/sdf/model[@name=āx500_researchā]/link[@name=āultrasonic_right_linkā]/sensor[@name=āultrasonic_right_sensorā]/gz_frame_id:/home/qsimmonds55/PX4-Autopilot/Tools/simulation/gz/models/x500_research/model.sdf:L1364]: XML Element[gz_frame_id], child of element[sensor], not defined in SDF. Copying[gz_frame_id] as children of [sensor].
libEGL warning: egl: failed to create dri2 screen
INFO [gz_bridge] world: indoor_env0, model: x500_research_0
INFO [lockstep_scheduler] setting initial absolute time to 2294000 us
INFO [commander] LED: open /dev/led0 failed (22)
WARN [health_and_arming_checks] Too many arming check events (1, 14 > 14). Not reporting all
WARN [health_and_arming_checks] Preflight Fail: Accel Sensor 0 missing
WARN [health_and_arming_checks] Preflight Fail: barometer 0 missing
WARN [health_and_arming_checks] Preflight Fail: ekf2 missing data
WARN [health_and_arming_checks] Preflight Fail: Gyro Sensor 0 missing
WARN [health_and_arming_checks] Preflight Fail: Found 0 compass (required: 1)
WARN [health_and_arming_checks] Preflight Fail: system power unavailable
INFO [uxrce_dds_client] init UDP agent IP:127.0.0.1, port:8888
INFO [mavlink] mode: Normal, data rate: 4000000 B/s on udp port 18570 remote port 14550
INFO [mavlink] mode: Onboard, data rate: 4000000 B/s on udp port 14580 remote port 14540
INFO [mavlink] mode: Onboard, data rate: 4000 B/s on udp port 14280 remote port 14030
INFO [mavlink] mode: Gimbal, data rate: 400000 B/s on udp port 13030 remote port 13280
INFO [logger] logger started (mode=all)
INFO [logger] Start file log (type: full)
INFO [logger] [logger] ./log/2025-11-08/04_28_35.ulg
INFO [logger] Opened full log file: ./log/2025-11-08/04_28_35.ulg
INFO [mavlink] MAVLink only on localhost (set param MAV_{i}BROADCAST = 1 to enable network)
INFO [mavlink] MAVLink only on localhost (set param MAV{i}_BROADCAST = 1 to enable network)
INFO [px4] Startup script returned successfully
pxh> WARN [health_and_arming_checks] Too many arming check events (1, 14 > 14). Not reporting all
WARN [health_and_arming_checks] Preflight Fail: Accel Sensor 0 missing
WARN [health_and_arming_checks] Preflight Fail: barometer 0 missing
WARN [health_and_arming_checks] Preflight Fail: ekf2 missing data
WARN [health_and_arming_checks] Preflight Fail: Gyro Sensor 0 missing
WARN [health_and_arming_checks] Preflight Fail: Found 0 compass (required: 1)
Here is the full log (px4launch is an alias i made for PX4_SYS_AUTOSTART=4050 ./build/px4_sitl_default/bin/px4):
px4launch
| __ \ \ \ / / / |
| |/ / \ V / / /| |
| __/ / \ / /| |
| | / /^\ \ __ |
_| / / |_/
px4 starting.
INFO [px4] startup script: /bin/sh etc/init.d-posix/rcS 0
env SYS_AUTOSTART: 4050
INFO [param] selected parameter default file parameters.bson
INFO [param] importing from āparameters.bsonā
INFO [parameters] BSON document size 343 bytes, decoded 343 bytes (INT32:12, FLOAT:5)
INFO [param] selected parameter backup file parameters_backup.bson
INFO [dataman] data manager file ā./datamanā size is 1208528 bytes
INFO [init] Gazebo simulator
INFO [init] Starting gazebo with world: /home/qsimmonds55/PX4-Autopilot/Tools/simulation/gz/worlds/indoor_env0.sdf
INFO [init] Starting gz gui
INFO [init] Gazebo world is ready
INFO [init] Spawning model
Warning [Utils.cc:132] [/sdf/model[@name=āx500_researchā]/link[@name=ābase_linkā]/sensor[@name=āair_pressure_sensorā]/gz_frame_id:/home/qsimmonds55/PX4-Autopilot/Tools/simulation/gz/models/x500_research/model.sdf:L173]: XML Element[gz_frame_id], child of element[sensor], not defined in SDF. Copying[gz_frame_id] as children of [sensor].
Warning [Utils.cc:132] [/sdf/model[@name=āx500_researchā]/link[@name=ābase_linkā]/sensor[@name=āmagnetometer_sensorā]/gz_frame_id:/home/qsimmonds55/PX4-Autopilot/Tools/simulation/gz/models/x500_research/model.sdf:L191]: XML Element[gz_frame_id], child of element[sensor], not defined in SDF. Copying[gz_frame_id] as children of [sensor].
Warning [Utils.cc:132] [/sdf/model[@name=āx500_researchā]/link[@name=ābase_linkā]/sensor[@name=āimu_sensorā]/gz_frame_id:/home/qsimmonds55/PX4-Autopilot/Tools/simulation/gz/models/x500_research/model.sdf:L221]: XML Element[gz_frame_id], child of element[sensor], not defined in SDF. Copying[gz_frame_id] as children of [sensor].
Warning [Utils.cc:132] [/sdf/model[@name=āx500_researchā]/link[@name=ālidar_linkā]/sensor[@name=ālidar_sensorā]/gz_frame_id:/home/qsimmonds55/PX4-Autopilot/Tools/simulation/gz/models/x500_research/model.sdf:L739]: XML Element[gz_frame_id], child of element[sensor], not defined in SDF. Copying[gz_frame_id] as children of [sensor].
Warning [Utils.cc:132] [/sdf/model[@name=āx500_researchā]/link[@name=āoptical_flow_linkā]/sensor[@name=āoptical_flow_sensorā]/gz_frame_id:/home/qsimmonds55/PX4-Autopilot/Tools/simulation/gz/models/x500_research/model.sdf:L968]: XML Element[gz_frame_id], child of element[sensor], not defined in SDF. Copying[gz_frame_id] as children of [sensor].
Warning [Utils.cc:132] [/sdf/model[@name=āx500_researchā]/link[@name=ārangefinder_linkā]/sensor[@name=ārangefinder_sensorā]/gz_frame_id:/home/qsimmonds55/PX4-Autopilot/Tools/simulation/gz/models/x500_research/model.sdf:L1035]: XML Element[gz_frame_id], child of element[sensor], not defined in SDF. Copying[gz_frame_id] as children of [sensor].
Warning [Utils.cc:132] [/sdf/model[@name=āx500_researchā]/link[@name=āultrasonic_front_linkā]/sensor[@name=āultrasonic_front_sensorā]/gz_frame_id:/home/qsimmonds55/PX4-Autopilot/Tools/simulation/gz/models/x500_research/model.sdf:L1146]: XML Element[gz_frame_id], child of element[sensor], not defined in SDF. Copying[gz_frame_id] as children of [sensor].
Warning [Utils.cc:132] [/sdf/model[@name=āx500_researchā]/link[@name=āultrasonic_left_linkā]/sensor[@name=āultrasonic_left_sensorā]/gz_frame_id:/home/qsimmonds55/PX4-Autopilot/Tools/simulation/gz/models/x500_research/model.sdf:L1255]: XML Element[gz_frame_id], child of element[sensor], not defined in SDF. Copying[gz_frame_id] as children of [sensor].
Warning [Utils.cc:132] [/sdf/model[@name=āx500_researchā]/link[@name=āultrasonic_right_linkā]/sensor[@name=āultrasonic_right_sensorā]/gz_frame_id:/home/qsimmonds55/PX4-Autopilot/Tools/simulation/gz/models/x500_research/model.sdf:L1364]: XML Element[gz_frame_id], child of element[sensor], not defined in SDF. Copying[gz_frame_id] as children of [sensor].
libEGL warning: egl: failed to create dri2 screen
INFO [gz_bridge] world: indoor_env0, model: x500_research_0
INFO [lockstep_scheduler] setting initial absolute time to 2302000 us
INFO [commander] LED: open /dev/led0 failed (22)
WARN [health_and_arming_checks] Too many arming check events (1, 14 > 14). Not reporting all
WARN [health_and_arming_checks] Preflight Fail: Accel Sensor 0 missing
WARN [health_and_arming_checks] Preflight Fail: barometer 0 missing
WARN [health_and_arming_checks] Preflight Fail: ekf2 missing data
WARN [health_and_arming_checks] Preflight Fail: Gyro Sensor 0 missing
WARN [health_and_arming_checks] Preflight Fail: Found 0 compass (required: 1)
WARN [health_and_arming_checks] Preflight Fail: system power unavailable
INFO [uxrce_dds_client] init UDP agent IP:127.0.0.1, port:8888
INFO [mavlink] mode: Normal, data rate: 4000000 B/s on udp port 18570 remote port 14550
INFO [mavlink] mode: Onboard, data rate: 4000000 B/s on udp port 14580 remote port 14540
INFO [mavlink] mode: Onboard, data rate: 4000 B/s on udp port 14280 remote port 14030
INFO [mavlink] mode: Gimbal, data rate: 400000 B/s on udp port 13030 remote port 13280
INFO [logger] logger started (mode=all)
INFO [logger] removing log directory ./log/2025-08-18 to get more space (left=761298 MiB)
INFO [logger] Start file log (type: full)
INFO [logger] [logger] ./log/2025-11-08/04_21_34.ulg
INFO [logger] Opened full log file: ./log/2025-11-08/04_21_34.ulg
INFO [mavlink] MAVLink only on localhost (set param MAV_{i}BROADCAST = 1 to enable network)
INFO [mavlink] MAVLink only on localhost (set param MAV{i}_BROADCAST = 1 to enable network)
INFO [px4] Startup script returned successfully
pxh> WARN [health_and_arming_checks] Too many arming check events (1, 14 > 14). Not reporting all
WARN [health_and_arming_checks] Preflight Fail: Accel Sensor 0 missing
WARN [health_and_arming_checks] Preflight Fail: barometer 0 missing
WARN [health_and_arming_checks] Preflight Fail: ekf2 missing data
WARN [health_and_arming_checks] Preflight Fail: Gyro Sensor 0 missing
WARN [health_and_arming_checks] Preflight Fail: Found 0 compass (required: 1)
Yes. indoor_env0 is the correct custom world. When I launch, the custom world and custom model spawn correctly. It is just the sensors keep failing preflight checks for some reason. I also added an example of my model sdf sensor plugin if that helps below. Thank you for helping me and taking the time.