Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[sumo-user] Calculating time-to-collision
  • From: Mariam Wessam Hassan Mohamed Nour <mariam.nour@xxxxxxxxxxxxxxx>
  • Date: Fri, 13 May 2022 00:43:13 +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=jNGc/+16DMgUOrOTxpdujhRWjvUaCGYy7uLEVMWP/Ss=; b=Y+iyEi1wvo4jZcY8fcuibkXmOYMLOtIUMLyrta0I2V3glYdfQ3BoPgAENcII7PKntWcO9tChOSFy7qk/ynQqz2fRzIhqngiNTKRPp7I1SWCHn9Q+OyCXsm8vdL5ECYar01FLGv2i9PhUTrwa7xY5LC3Dv3RNnYo7scw9fvI81Zc43gZgOq5NLmerhSZ6DooNMNHCBJVcR6yGbWHu3s4VqbxBMnE2dhtDqGgNApVTRr3CA+qBj/KlZH99kKrrmNcEn/ZsxWfvvpxlF1zvgmOY5cpEsmMkMIPqXiXOcXtFx4qGqAQSeZQIyQpgjwmhPYp6dzSqlevL2BXx8PicdqwtSA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WfcJjKSb0OBUN8oiE2FYppz90/nT8RSAE0+lSG2yuJKMR2zZzUtL8nBThFyv1d0AvPzQSJzdeGmqVoAdnVBh0+KPipe437V7IZMO+BpKQo36gfML57N/wyuIMQuT6740FSlCrOMRmGEGr+86hmaWatKnzISEZAVvYg4aF76WVTOMo/5UhvydiZUWjbVAt8aG5htwYHf9L2Gk3F8oG6Pl0jPmyKD2eaI6wOvTSP5VmuWMThUZhfE6cPdTmtchyfCg6LurrHCYwUmmB+MY12qSApJjmthMi+C+nmvY1okPlDKLep5gH89ztvO+11aSPZV4e4HhL1fzAOC4kNKMJIcsqg==
  • 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: AdhmYYtnJ5VxWlYXT5K7uNz7MPSAbA==
  • Thread-topic: Calculating time-to-collision

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

 


Back to the top