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

Obtain Energy related features from the environment #565

Open IsYang23 opened 5 months ago

IsYang23 commented 5 months ago

Hello sir, I am trying to evaluate the energy consumption of the agent by pretending the ego-vehicle is an EV model. For that, I need to be able to use the vehicle's velocity and acceleration of each testing episode to help me calculate the needed metrics like Torque, wheel rotating speed... But I also need to know the travel distance of the ego-vehicle during the testing episode (for the Highway env, is it possible to get it? or for any other env?). Maybe implement them as (state) variables that are computed with each testing episode (HUM)?

As you can see, I really have a rough understanding (idea) on how to make the link between the behavior planning part provided by your environment and energy consumption or efficiency. I believe it is possible to do it, but I can't quite figure out how yet. I decided to submit this here and hope for some insights, guidance or suggestions if possible.

Merci pour votre excellent travail qui est d'une aide cruciale pour nous etudiants de master!! Thanks in advance