eleurent / rl-agents

Implementations of Reinforcement Learning and Planning algorithms
MIT License
553 stars 149 forks source link

Display vehicle trajectory #114

Closed 6Lackiu closed 2 months ago

6Lackiu commented 2 months ago

Hi! I would like to ask how is a video with vehicle trajectory generated like this? image

eleurent commented 2 months ago

To show vehicle trajectories, you should configure the environment with {'show_trajectories': True}

For example, env = gym.make('intersection-v0', config={'show_trajectories': True}) Or if you're using this repo's experiments.py script, simply edit the scripts/configs/IntersectionEnv/env.json (or whichever variant you're using) to add "show_trajectories": True,

6Lackiu commented 2 months ago

Got it! Thank you!