Sentdex / Carla-RL

Reinforcement Learning codebase for self-driving car in Carla
MIT License
368 stars 95 forks source link

Fixed timestep? #8

Open lijecaru opened 4 years ago

lijecaru commented 4 years ago

Is there a way to modify the files to let the agents run at a fixed timestep, or in synchronous mode?

I have tried the usual:

        self.frame = self.world.apply_settings(carla.WorldSettings(no_rendering_mode=False,synchronous_mode=True,fixed_delta_seconds=self.delta_seconds))
        self.clock = pygame.time.Clock()

with no success.