Replies: 2 comments
-
I have more information:
settings = world.get_settings()
settings.synchronous_mode = True
settings.fixed_delta_seconds = 0.05
settings.substepping = True
settings.max_substep_delta_time = 0.003125
settings.max_substeps = 16
world.apply_settings(settings)
if(t<20):
# idle in the beginning so the actor can "settle" from being dropped
control.throttle = 0.0
control.steer = 0.0
else:
control.throttle = 0.5
control.steer = 0.3 * np.sin(2.*np.pi*1.0*t/fs) Even with these changes, and running for only 200 steps, I still get non-determinism in the x-y location of the car. What might I be missing here? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Have you looked at 'determinism test' in PythonAPI testing suite. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'd like to be able to run the exact same run, given I didn't change any parameters of the simulation. Before I paste my code, my logic is that I have to set a specific seed for any Random operation to be repeatable, set a specific seed for the traffic manager, and in general to work in
synchronous_mode=True
so the lag in my computer won't interrupt(?). As you'll see, I log thex,y,z
location of the ego vehicle, and run the simulation twice. It is similar, but not the same. Even when I remove all other actors. Even when I run without rendering to the screen. What can I do to make it repeatable (not in recording mode, actual live runs)?Additional info: Carla 0.9.14 on Ubuntu 20.04, Python 3.8.
Beta Was this translation helpful? Give feedback.
All reactions