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.