microsoft / AirSim

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

Drone simulation strange behaviour (it doesn't turn) #4691

Open azzurras18 opened 2 years ago

azzurras18 commented 2 years ago

Hi, I want that my drone follows a path. I use moveOnPathAsync() to give to the drone the path to follow. However, it has a strange behaviour, when the drone is close enough to a point of the path, it goes up and and come back. It seems like it is not able to turn right or turn left. My code is exacly the following:

client.moveOnPathAsync(path=data, velocity=14, time_sec=196, airsim.DrivetrainType.MaxDegreeOfFreedom, airsim.YawMode(False,0), lookahead=-1, adaptive_lookahead=0).join()

The trajectory that I get is the following:

traj

What is it wrong? I tried also to change parameters of moveOnPathAsync, for example I tried to put airsim.DrivetrainType.ForwardOnly, but nothing change