Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[sumo-user] Computing headways at intersections
  • From: Daniel Aguilar Marsillach <daniel.aguilarmarsillach@xxxxxx>
  • Date: Wed, 27 Mar 2024 14:57:54 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=gm.com; dmarc=pass action=none header.from=gm.com; dkim=pass header.d=gm.com; 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=su13ym9SwVuEeK4iCPwzmYRH6tyEYAlEEaMPQtkgcRI=; b=jfIhbcsmRaTXobZJT1baHKyVypvhDJX6A5yIsTwoB3OD2Cb5aewEBrxxVQ2+vemQb9dWFCEEbOyFDxhBlhsUknp/rC9j+cqnwdL907S8ATE5o9d7altTpfDeAkz/Lmwk7i+M/S/nTVVZeVp4grDqzjQ3e2YMiFJW0VoIXquHna5bmr0w79cu4UEqLREdhMMIVrVghfEnSbPdhi4WKXaoz/vIjdWKwCzuTtU9mL32jv2tEtp3uU7kHzRhSFQZhJ3tmgVkaT6nTY8hLRYrlJf68nIKPniDSy3oNtbxcZRtu2VXOu/r5k2QQlAmeo+CXKw74j9i5zX1gdvHz8YllAJLFg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CHGkN2kAwUSou0uKkv+yNGPxjQKyv1Q1gjYJbv3HPrvY5bPdpfq3j5q9vsfeNGw/q84ufU298Vp1cpA4gsATvqjfAwagfJhAJqPztCpEPv7rd2FOR3nvFXqyb5yR6L+EkxYRyGFtmadyOaiclwBWGziLbt9GGJvPDfs8q91OcSSFDZbsYbVKVMYTXL74S9Lw4m63w7rFybhRZ6gNPtPo8/N9lGfh5dp74ma3TPROyagv4UCT29V/BhiZBA8jf/0oU3DSKYpDcFaYXCluMTa1l8DkhNBiqoH7Ag99c7UOBnwFylwXDVCkSp4et1TojYGGeqa6lxnCXvScJESASr+MRQ==
  • 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>
  • Msip_labels:
  • Thread-index: AQHagFNPmWnb/3uV00+OyYwQwS+EJw==
  • Thread-topic: Computing headways at intersections

Hi there, 

I'm having an issue with headway and lead vehicle identification using Traci when a lead vehicle enters a junction. The subscribed headway between two vehicles is 0m, but the physical distance is 79.00m. Is this expected? Are there any junction parameters or settings that I may be misusing? I'd appreciate suggestions on how to get the correct headway directly from SUMO/Traci before implementing a correction in the Python API.

Scenario:  

The vehicle follower_1 is moving from east to west and is approaching the junction. I have circled it in yellow.  The vehicle leader_0 is moving from south to north, has just crossed the yield line and is turning left, I have circled it in red.  Both are IDM controlled vehicles and default sumo safety checks are enabled. 

 The subscribed Traci variables are:  
[tc.VAR_LANE_INDEX, tc.VAR_LANEPOSITION, tc.VAR_ROAD_ID, tc.VAR_SPEED, tc.VAR_SPEED_LAT,
                         tc.VAR_EDGES, tc.VAR_POSITION, tc.VAR_ANGLE, tc.VAR_SPEED_WITHOUT_TRACI,
                         tc.VAR_FUELCONSUMPTION, tc.VAR_DISTANCE, tc.VAR_LANEPOSITION_LAT, tc.VAR_ACCELERATION,
                         tc.VAR_WAITING_TIME, tc.VAR_LANE_ID, tc.VAR_NEXT_LINKS]
Traci Subscription Results for follower_1

{82: 0, 86: 39.89055103780684, 80: '2', 64: 12.819908744019667, 50: 0.0, 84: ('2', '5'), 66: (80.10944896219317, 1.6), 67: 270.0, 177: 12.819908744019667, 101: 1346.3627500766254, 132: 34.790551037806836, 184: 0.0, 114: 0.5894244551240924, 122: 0.0, 81: '2_0', 51: (('5_0', False, False, True, ':junc_4_0', 'm', 's', 14.4),), 104: ('leader_0', 0.0)}

Traci Subscription Results for leader_0:
 
{82: 0, 86: 0.026256706772315397, 80: ':junc_8', 64: 3.0363730309804664, 50: 0.0, 84: ('0', '5'), 66: (1.5962922005461444, -7.174045403823011), 67: 359.95750918840696, 177: 3.0363730309804664, 101: 1104.0259317847099, 132: 92.82625670677231, 184: 0.0, 114: 1.463278654968172, 122: 0.0, 81: ':junc_8_0', 51: (), 104: ('leader_4', 27.97479278915113)}

Note that 104 in the dictionary above is VAR_LEADER and for follower_1 this value = 0m and that 51 is VAR_NEXT_LINKS.

I understand that leader_0 is the lead vehicle for follower_1 as it is the first vehicle to enter the intersection is on a link that overlaps with follower_1's route. I also replicated this in another map scenario using different .net.xml file and observed the same problem.

Best,
Daniel



Nothing in this message is intended to constitute an electronic signature unless a specific statement to the contrary is included in this message.

Confidentiality Note: This message is intended only for the person or entity to which it is addressed. It may contain confidential and/or privileged material. Any review, transmission, dissemination or other use, or taking of any action in reliance upon this message by persons or entities other than the intended recipient is prohibited and may be unlawful. If you received this message in error, please contact the sender and delete it from your computer.

Attachment: sumo_intersection_anomaly.png
Description: sumo_intersection_anomaly.png


Back to the top