sisl / AutoViz.jl

Provides visualization tools for AutomotiveDrivingModels. Built on Cairo
Other
33 stars 9 forks source link

Vehicles turn around and accelerate to crazy speeds #30

Open zenna opened 5 years ago

zenna commented 5 years ago

First of all, thanks for this package, and especially for putting in the work to make it well documented.

I've run into an issue where a car, for one reason or another, will decide to turn around and go the wrong way around the track. From that point it accelerates wildly until its just zooming in and out of the screen every frame.

Without looking at the implementation it seems like it could be because there is no negative speed limit set?

I can construct a minimal example if this necessary but this happened on the first or second time I used the package, so I imagine you may have encountered it yourself.

Is there a solution?

MaximeBouton commented 5 years ago

Hi @zenna, I think a minimum working example would be useful to better corner the issue. Note that AutoViz.jl is only taking care of the visualization, the actual simulation happens in https://github.com/sisl/AutomotiveDrivingModels.jl

The behavior of the vehicle is controlled by the driver model and action type you specified in your simulation.

zenna commented 5 years ago

Yes. I know this. I'm not sure why I posted the issue here. I'll make the MWE