AirSim, ArduPilot and WSL not connecting #4845
Unanswered
tuvyz
asked this question in
Support Q&A
Replies: 1 comment
-
{ use this in settings.json and run this command on your wsl, it works fine sim_vehicle.py -v ArduCopter -f airsim-copter --console --map |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello! I faced such problem. I built AirSim on Windows, installed WSL and installed ArduPilot on it. However, when I start AirSim it just freezes and won't exit even if ArduPilot is started. Here is the settings.json file:
{
"SeeDocsAt": "https://github.com/Microsoft/AirSim/blob/main/docs/settings.md",
"SettingsVersion": 1.2,
"SimMode": "Multirotor",
"Origin Geopoint": {
"latitude": -35.363261,
"Longitude": 149.165230,
Altitude: 583
},
"Vehicles": {
"Copter": {
"VehicleType": "ArduCopter",
"UseSerial": false,
"LocalHostIp": "172.18.128.1",
"UdpIp": "172.18.132.194",
"UdpPort": 9003,
"Control Port": 9002
}
}
}
And with this command I launch ArduPilot:
sim_vehicle.py -v ArduCopter -f airsim-copter -A "--sim-address=172.18.128.1 --sim-port-in=9003 --sim-port-out=9002"
At the specified addresses, Windows and WSL can ping each other. I turned off Windows Firewall completely. However, this does not work.
At the same time, before that I used PX4 and it worked perfectly in such a bundle. Tell me what could be the problem please
Beta Was this translation helpful? Give feedback.
All reactions