[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [sumo-user] Calculating time-to-collision
|
- From: Mariam Wessam Hassan Mohamed Nour <mariam.nour@xxxxxxxxxxxxxxx>
- Date: Fri, 13 May 2022 19:43:36 +0000
- Accept-language: en-US
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=knights.ucf.edu; dmarc=pass action=none header.from=knights.ucf.edu; dkim=pass header.d=knights.ucf.edu; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ClcMQlet3X9sKAKkb0j1bIG2CrkkuA3TH+rSNU9F7xM=; b=ey9asAduNEJvy2VtF/kTmDsBsDXEElhgqEWbTxRjf+wmvViTEnmVPbr0BfITKHftgrEWFw3Xtlf44UsKGfWTaxLqD32tEmtNS51X5AuwCMv52ZvZkP6bM7FGBXFHzQvac+YhLWxCBW9v0WLG7iQaN/HgzmMZ2vUj2XLf9nAdM2WmTigWR3moocZ2ez1VXo5MDDwydIhCkvEZn+1nH2/XsSv/vjtKtUB7cFWTFJVaJJZKJPUUwESCz8FvMdHgEpjw3OALtQaZSozqgCxNoMkVzpTo59t++hNcxyH6ApEeSVt9Gx/tBvC/clDQa3rDJSKilbbxuI0AvkoN8e7NFKTZow==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iqGzw4ZZipfaw3kg4rJePsc4sjJZqjwX1tDvGgv46u1666c7OobrdfaR0UE82niYF540gEYNZiR3R4gdhB2/DCfs1tprbR5dtbK6q/kII/uSUJYeCwLRUIJdq/3UQENBdpsCLFPrqrAGYW0JMpVAtrbAZO7B5BpcnXmj18HQh3QCcRmnkNmUEFrs31rxojSgN4ebARwjMi0Zc5mGBiA4Axp/MTbjJZ297GfIo5VwhAm+1MpEm0yrrNmb41dCmOKzYjnFFCdrCGc4TfUvjHDPtopxGw8uFXhZp2TWNgVrBrQV0Hq5C3Wvx9SC+KZuQy+aI6ANnG04NqNz+lWUe+xdlw==
- Delivered-to: sumo-user@xxxxxxxxxxx
- List-archive: <https://www.eclipse.org/mailman/private/sumo-user/>
- List-help: <mailto:sumo-user-request@eclipse.org?subject=help>
- List-subscribe: <https://www.eclipse.org/mailman/listinfo/sumo-user>, <mailto:sumo-user-request@eclipse.org?subject=subscribe>
- List-unsubscribe: <https://www.eclipse.org/mailman/options/sumo-user>, <mailto:sumo-user-request@eclipse.org?subject=unsubscribe>
- Thread-index: AdhmYYtnJ5VxWlYXT5K7uNz7MPSAbAAK4F4AABlGSFA=
- Thread-topic: [sumo-user] Calculating time-to-collision
Hello Jakob,
Thanks for the clarification.
I went back to the output of both approaches to compare, and I was expecting to see that the minTTC value would change to a lower one when the one I calculate is equal to that value. But what I found are completely different values (example
snippet in the attached csv file.)
am I calculating the ttc wrong?
Thanks
Mariam
From: sumo-user <sumo-user-bounces@xxxxxxxxxxx> On Behalf Of
Jakob Erdmann
Sent: Friday, May 13, 2022 1:48 AM
To: Sumo project User discussions <sumo-user@xxxxxxxxxxx>
Subject: Re: [sumo-user] Calculating time-to-collision
minTTC returns the *minimum* TTC observed for all ongoing encounters of the ego vehicle (during the whole time of the encounter thus far) instead of the current TTC which you are calculating.
Hi all,
I’m trying to calculate time to collision at every time step for each vehicle in sumo.
I’m getting the spacing between each two vehicles as well as the speed of the leader using the getLeader function. Then I use the equation ((spacing+minGap)/difference in speed)
to get ttc.
The gap calculation was based on this (https://github.com/eclipse/sumo/issues/10178)
On the other hand, every vehicle is equipped with an SSM device to calculate ttc. So I’m also able to directly get ttc values for each vehicle using traci.vehicle.getParameter(veh,
"device.ssm.minTTC"). However, this ttc value and the one I calculate above don’t match.
Am I calculating ttc using wrong values in the first approach? If not, then what could be the problem?
Thanks
Mariam
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user
|
Attachment:
snippet_ttc.csv
Description: snippet_ttc.csv