Python Api still not working after update
Hey,
I got the newest build of AirSim with the Python Api fix and still have problems with the settings file. In my settings.json I just have
{
"SettingsVersion": 1.2,
"SimMode": "Multirotor"
}
When I press play to simulate, I got the following error message:
"There were no compatible vehicles created for current SimMode! Check your settings.json."
But the drone got spawned after all. Now I type in python hello_drone.py and get:
msgpackrpc.error.RPCError: rpclib: function 'enableApiControl' (called with 2 arg(s)) threw an exception.
The exception contained this information: Vehicle API for '' is not available.
This could either because this is simulation-only API or this vehicle does not exist
Is there something I've missed? I had no problems with the API control before the new API changes.
Same problem here. Could anyone help?
I've had this issue after I accidentally clicked on some button or option inside the unreal simulator. Luckily I had my env backed up and everything worked after I restored it. It's an empty env and feel free to give it a try if you need it https://www.dropbox.com/s/ia0qii81k4lyybz/Blocks-minimized.zip?dl=0
and here is my setting json btw
`{ "SeeDocsAt": "https://github.com/Microsoft/AirSim/blob/master/docs/settings.md", "SettingsVersion": 1.2, "SimMode": "Multirotor", "ClockSpeed": 1,
"Vehicles": {
"Drone1": {
"VehicleType": "SimpleFlight",
"X": 26, "Y": -1 , "Z": -2
},
"Target1": {
"VehicleType": "SimpleFlight",
"X": 34, "Y": -4 , "Z": -2
}
}
}`
Closing this thread due to inactivity. If you are still struggling with this issue please re-open the thread.
Hey, i just had the same issue and solved it. On the play section I had changed from selected viewpoint to "simulate" and that caused the issue. Changed back to "selected viewpoint" and it works fine again.