microsoft / AirSim

Open source simulator for autonomous vehicles built on Unreal Engine / Unity, from Microsoft AI & Research
https://microsoft.github.io/AirSim/
Other
16.04k stars 4.48k forks source link

AirSim performing very badly when connected to ardupilot over network #4909

Open vhytyk opened 6 months ago

vhytyk commented 6 months ago

Bug report

What's the issue you encountered?

I have ardupilot up and running on Ubuntu22 in SITL mode, with --frame airsim-copter. And AirSim running as Windows binary w/ map "AirSimNH" on Windows 11 PC. Both PCs are in the same local network. AirSim is configured to connect to ardupilot. Everything works correctly, except AirSim is performing very bad, it's basically a slideshow with 1 frame per few seconds. If I don't connect to ardupilot from AirSim - it works perfectly fine.

Settings

{ "SettingsVersion": 1.2, "LogMessagesVisible": true, "SimMode": "Multirotor", "Vehicles": { "Copter": { "VehicleType": "ArduCopter", "UseSerial": false, "LocalHostIp": "192.168.130.100", "UdpIp": "192.168.130.41", "UdpPort": 9003, "ControlPort": 9002 } } }

How can the issue be reproduced?

  1. Download AirSim binaries (AirSimNH) for Windows
  2. Make settings.json as posted above
  3. Setup ardupilot on Ubuntu (in the same network)
  4. Configure ardupilot as SITL, build
  5. Run ardupilot in SITL mode sim_vehicle.py -v ArduCopter --frame airsim-copter --sim-address= 6 Run AirSim on Windows PC.

    Include full error message in text form

What's better than filing an issue? Filing a pull request :).