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

TTC calculation #9

Open
whatgit opened this issue Mar 31, 2020 · 0 comments
Open

TTC calculation #9

whatgit opened this issue Mar 31, 2020 · 0 comments

Comments

@whatgit
Copy link

whatgit commented Mar 31, 2020

Hello,

I am wondering how do you calculate the TTC in the dataset? I was assuming that
TTC = dhw/(xVelocity - precedingXVelocity); where TTC is time-to-collision, dhw is the distance headway, xVelocity is the ego vehicle's velocity, and precedingXVelocity is the preceding vehicle's velocity.

However, when I check it with the data, it was not correct. Therefore, I am wondering how do you calculate TTC in the dataset?

Please see the examples below.

Example from dataset_01

Case 1: vehicle id 2 is following vehicle id 13, here are the parameters in "track_data" of the vehicle id 2:

dhw = 112.62
ttc = -17.38
thw = 3.51
precedingXVelocity= -38.53
xVelocity = -32.06

If we follow the equation above. TTC should be equal to 112.62/(32.06-38.53) = 112.62/-6.47 = -17.40
(I think minus sign here indicate driving direction so I will ignore it for now)

Case 2: vehicle id 8 is following vehicle id 2, here are the parameters in "track_data" of the vehicle id 8:

thw = 2.29
dhw = 72.05
ttc = -104.67
precedingXVelocity = -32.04
xVelocity = -31.36

If we follow the equation above. TTC should be equal to 72.05/(31.36-32.04) = 72.05/-0.68 = -105.95

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

1 participant