Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Are the timestamps for traffic signals synchronized with the timestamps for vehicle #853

Open
zhengli-hub opened this issue Jun 27, 2024 · 3 comments

Comments

@zhengli-hub
Copy link

I have a question about the tfexample data format in the Motion dataset V1.2.1. Are the timestamps for traffic signals synchronized with those for vehicle positions and speeds? I'm wondering if the vehicle timestamps might precede the traffic signal timestamps, which seems problematic. I've noticed some strange phenomena: For instance, when a traffic light at an intersection changes from red to green (stop state to go state), vehicles should wait until the green light before entering the intersection. However, I've observed numerous trajectories where vehicles start moving and enter the intersection before the light changes from red to green. I'm considering whether the timestamps between traffic lights and vehicles are properly aligned.

@zhengli-hub
Copy link
Author

Hi, @rezama , @google-admin , @alexzzhu ,and @patzm,

As a follow up on this issue, I've included a couple of exmaples to illustrate the problem.

In uncompressed_tf_example_training/training_tfexample.tfrecord-00008-of-01000, specifically the 4th scenario, I visualized the trajectory and noticed this pattern: the vehicle enters the intersection while the traffic lights are still in red. The traffic light then turns green when the vehicle has already been in the intersection. The logical sequence should be that the traffic light turns green first, and then the vehicle starts to move. This is not the only place where the misalignment occurred. Based on the results, there are a handful of the similar issues across the dataset. Let me know if you need more examples to investigate.

Thanks!

1
t=0 Traffic lights are in red and vehicle stopped

2
t=1 Vehicle starts to move while the lights are still in red

3
t=2 Vehicle moves while the lights turn green.

The time is relative for demonstration purpose.

@vcharraut
Copy link

Hi,

I'm experiencing the same issue while simulating scenarios in Waymax.
The linked issue includes videos demonstrating the desync: waymo-research/waymax#60

@jlambert-waymo
Copy link
Collaborator

jlambert-waymo commented Sep 13, 2024

Thank you @zhengli-hub @vcharraut, we are reviewing this issue and will have an update soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants