Closed AkumaET closed 1 year ago
Version of Ubuntu is 22.04
Before running: make px4_sitl_default none_iris You will need to do the following:
1) check control_ip (in settings.json) from WSL2
2) check LocalHostIp (in settings.json) from command prompt, powershell, or WSL2
Describe the bug
[ 0%] Built target events_header [ 0%] Built target parameters_xml [ 0%] Built target ver_gen [ 0%] Built target uorb_headers [ 0%] Built target flighttasks_generated [ 0%] Built target actuators_json [ 1%] Built target output_functions_header [ 1%] Built target drivers_board [ 1%] Built target git_mavlink_v2 [ 1%] Built target git_gps_devices [ 1%] Built target git_micro_xrce_dds_client [ 1%] Built target mode_util [ 1%] Built target uorb_ucdr_headers [ 2%] Built target topic_bridge_files [ 2%] Built target events_json [ 2%] Built target perf [ 3%] Built target geo [ 3%] Built target tinybson [ 3%] Built target version [ 3%] Built target wind_estimator [ 5%] Built target work_queue [ 5%] Built target world_magnetic_model [ 5%] Built target mavlink_c_generate_uavionix [ 6%] Built target libmicroxrceddsclient_project [ 6%] Built target component_general_json [ 6%] Built target mavlink_c_generate [ 6%] Built target parameters [ 27%] Built target uorb_msgs [ 28%] Built target romfs_gen_files_target [ 28%] Built target px4_work_queue [ 30%] Built target px4_platform [ 30%] Built target lockstep_scheduler [ 30%] Built target px4_daemon [ 31%] Built target px4_layer [ 31%] Built target airspeed [ 31%] Built target adsb [ 31%] Built target bezier [ 31%] Built target hysteresis [ 31%] Built target cdev [ 31%] Built target battery [ 31%] Built target circuit_breaker [ 32%] Built target systemlib [ 33%] Built target dataman_client [ 33%] Built target conversion [ 34%] Built target controllib [ 34%] Built target CollisionPrevention [ 34%] Built target l1 [ 34%] Built target mathlib [ 34%] Built target motion_planning [ 35%] Built target mixer_module [ 35%] Built target npfg [ 35%] Built target pid [ 35%] Built target RateControl [ 36%] Built target rc [ 36%] Built target SlewRate [ 36%] Built target sensor_calibration [ 36%] Built target SystemIdentification [ 36%] Built target tecs [ 36%] Built target timesync [ 36%] Built target tunes [ 37%] Built target arch_tone_alarm [ 37%] Built target WeatherVane [ 37%] Built target failure_detector [ 37%] Built target message_display [ 37%] Built target failsafe [ 37%] Built target ArmAuthorization [ 42%] Built target health_and_arming_checks [ 43%] Built target ActuatorEffectiveness [ 43%] Built target ControlAllocation [ 43%] Built target EKF2Utility [ 43%] Built target follow_target_estimator [ 44%] Built target FlightTask [ 44%] Built target launchdetection [ 44%] Built target runway_takeoff [ 45%] Built target zero_order_hover_thrust_ekf [ 46%] Built target AttitudeControl [ 47%] Built target PositionControl [ 48%] Built target Takeoff [ 48%] Built target data_validator [ 48%] Built target geofence_breach_avoidance [ 48%] Built target vehicle_acceleration [ 48%] Built target vehicle_imu [ 48%] Built target vehicle_gps_position [ 48%] Built target vehicle_angular_velocity [ 48%] Built target vehicle_magnetometer [ 49%] Built target vehicle_optical_flow [ 49%] Built target avoidance [ 50%] Built target uORB [ 50%] Built target drivers_accelerometer [ 50%] Built target drivers_gyroscope [ 51%] Built target drivers_magnetometer [ 51%] Built target FlightTaskFailsafe [ 51%] Built target FlightTaskUtility [ 52%] Built target modulesfw_att_control [ 52%] Built target fw_autotune_attitude_control [ 52%] Built target modulesfw_pos_control [ 52%] Built target modulesfw_rate_control [ 53%] Built target modules__gyro_calibration [ 54%] Built target driversgimbal [ 55%] Built target modulesgyro_fft [ 56%] Built target modules__land_detector [ 56%] Built target modulesload_mon [ 56%] Built target moduleslanding_target_estimator [ 57%] Built target moduleslocal_position_estimator [ 58%] Built target modulesmanual_control [ 60%] Built target moduleslogger [ 60%] Built target modulesmag_bias_estimator [ 61%] Built target mc_autotune_attitude_control [ 62%] Built target modulesmc_att_control [ 62%] Built target modulesmavlinkmavlink_tests [ 64%] Built target modulesmavlink [ 64%] Built target modulesmc_pos_control [ 64%] Built target modulesmc_hover_thrust_estimator [ 64%] Built target modulesmc_rate_control [ 64%] Built target modulespayload_deliverer [ 64%] Built target modulesrc_update [ 64%] Built target modulesrover_pos_control [ 65%] Built target modulesreplay [ 66%] Built target vehicle_air_data [ 66%] Built target modulessimulationbattery_simulator [ 66%] Built target modulessimulationpwm_out_sim [ 66%] Built target modulessimulationsensor_airspeed_sim [ 67%] Built target modulessimulationgz_bridge [ 68%] Built target modulessimulationsensor_baro_sim [ 68%] Built target modulessimulationsensor_gps_sim [ 68%] Built target modulessimulationsenosr_mag_sim [ 68%] Built target modulessimulationsimulator_sih [ 68%] Built target modulessimulationsimulator_mavlink [ 69%] Built target modulestemperature_compensation [ 69%] Built target modulesuuv_att_control [ 69%] Built target modulesuxrce_dds_client [ 70%] Built target modulesuuv_pos_control [ 71%] Built target modulesvtol_att_control [ 72%] Built target systemcmds__actuator_test [ 72%] Built target systemcmdsbsondump [ 72%] Built target systemcmdsdyn [ 72%] Built target systemcmdsfailure [ 72%] Built target systemcmdsled_control [ 73%] Built target systemcmdsparam [ 73%] Built target systemcmdsperf [ 73%] Built target systemcmds__sd_bench [ 73%] Built target systemcmdsshutdown [ 73%] Built target systemcmdstestshrt_test [ 73%] Built target systemcmdssystem_time [ 77%] Built target systemcmdstests [ 78%] Built target systemcmdstopic_listener [ 78%] Built target systemcmdstune_control [ 78%] Built target systemcmdsuorb [ 78%] Built target systemcmdsver [ 78%] Built target systemcmdswork_queue [ 78%] Built target modules__fake_imu [ 80%] Built target modulesfake_gps [ 80%] Built target examplesfake_magnetometer [ 80%] Built target exampleshello [ 81%] Built target examplespx4_mavlink_debug [ 81%] Built target examplespx4_simple_app [ 81%] Built target exampleswork_item [ 82%] Built target libcdevtestcdev_test [ 82%] Built target libcontrollibcontrollib_test [ 82%] Built target librcrc_tests [ 82%] Built target modulesuORBuORB_tests [ 83%] Built target libwork_queuetestwqueue_test [ 84%] Built target driverscamera_trigger [ 84%] Built target driversosdmsp_osd [ 86%] Built target driversgps [ 86%] Built target driverstone_alarm [ 86%] Built target modulesairship_att_control [ 87%] Built target modulesairspeed_selector [ 87%] Built target modulesattitude_estimator_q [ 87%] Built target modulescamera_feedback [ 87%] Built target modules__control_allocator [ 87%] Built target modulesdataman [ 89%] Built target modulescommander [ 89%] Built target modulesevents [ 94%] Built target modulesekf2 [ 94%] Built target FlightTaskAuto [ 94%] Built target FlightTaskDescend [ 94%] Built target mission_feasibility_checker [ 94%] Built target FlightTaskManualAltitude [ 94%] Built target FlightTaskTransition [ 94%] Built target modulessensors [ 94%] Built target FlightTaskManualAltitudeSmoothVel [ 94%] Built target FlightTaskManualPosition [ 94%] Built target FlightTaskAutoFollowTarget [ 96%] Built target modulesnavigator [ 97%] Built target FlightTaskManualPositionSmoothVel [ 98%] Built target FlightTaskManualAcceleration [ 98%] Built target FlightTaskOrbit [ 98%] Built target modules__flight_mode_manager [100%] Built target px4 [100%] launching px4 none_iris (SYS_AUTOSTART=10016) INFO [px4] PX4 server already running for instance 0 gmake[4]: [src/modules/simulation/simulator_mavlink/CMakeFiles/none_iris.dir/build.make:72: src/modules/simulation/simulator_mavlink/CMakeFiles/none_iris] Error 255 gmake[3]: [CMakeFiles/Makefile2:9617: src/modules/simulation/simulator_mavlink/CMakeFiles/none_iris.dir/all] Error 2 gmake[2]: [CMakeFiles/Makefile2:9624: src/modules/simulation/simulator_mavlink/CMakeFiles/none_iris.dir/rule] Error 2 gmake[1]: [Makefile:2542: none_iris] Error 2 make: *** [Makefile:227: px4_sitl_default] Error 2
To Reproduce
nano ~/.bashrc (set the "export PX4_SIM_HOST_ADDR= . . . .")
the issue happens when running: "make px4_sitl_default none_iris"
Expected behavior
The expected thing is that PX4 connects with the AirSim drone successfully.
Screenshot / Media
Flight Log
None
Software Version
The recent version and cloned from: https://github.com/PX4/PX4-Autopilot.git VS: 2022 AirSim: latest Unreal engine: 4.27.2
Flight controller
None
Vehicle type
None
How are the different components wired up (including port information)
No response
Additional context
No response