Farama-Foundation / HighwayEnv

A minimalist environment for decision-making in autonomous driving
https://highway-env.farama.org/
MIT License
2.48k stars 726 forks source link

change my vehicle_class to BicycleVehicle #579

Open laihuitreg opened 3 months ago

laihuitreg commented 3 months ago

Hello author, I would like to use the vehicle's dynamic model, which means my vehicle_class is BicycleVehicle. I changed the actiontype to ContinuousAction and changed the dynamic parameter to True, but the following error occurred. How can I change the actiontype correctly so that my code can run correctly?

error

eleurent commented 3 months ago

Hi, sorry I can't seem to find any trace of the code that appears failing, namely self.new_action = safety_supervisor(action) and self.check_collision(vehicle, other, other.trajectories[t] both supposedly in abstract.py. I think this might be code that you added, which could be causing this issue?