Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[sumo-user] Sumo crashes when using departure edge taken from traci.simulation.convertRoad
  • From: "Stanford, John" <jstanfo5@xxxxxxxxxxxx>
  • Date: Fri, 30 Jul 2021 08:50:59 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=vols.utk.edu; dmarc=pass action=none header.from=vols.utk.edu; dkim=pass header.d=vols.utk.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-SenderADCheck; bh=ggbsJGx5G+6WX4rxyibgVNuROMS5+3/+BBrZwfScekk=; b=ewFpvsApShFD/uataqn7ORx9kbxytQAMNMpSw56s78T+SzfeblzVuexsj/Ytto7Cfx+qt9+Jt1xvbtqfjGJ4bQaXf4UbXhN7TFJdkLqcbfeVJFd+4g6blWmrl2QOXnDlJ5hDkdPcUvp3okO1Ic6T+ckyHssOPxtu+WnsIzBlmcKewOQ5vPxu6V8rC1iSVGTH24wxAZad5dw15UL0SqgwDk2oCVKPDmZkEUsW44ubPoO8qR2UGULvnmUbdKor6FM7AEsC5BTJDavPkV39986H/+WrrU4LQPm2fPOZnaBQY3bHfTEzVryX18nitz6bqIFtlaSdW4voQVdqSlqSPK3Ckw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dCkZbS0ezS55FEswzu8/nPD7Ro9DBske92xwM9F0JW5cGUY8IwyKb4pcpxTUWeJRhgPab751TnrCsqMi5HQjT74TpBmhIq1zgSvGGWQQTNlhbT+91jz1BBTA16jIlfuMK1OlE0xa5Ho1b4mGaBxKSkjU4uXyo+2CKxQ6eTbOg6ILsrYCgau0EYQC5q9kJ3AteFXEWkwf9wy8tuGL5wEqgT0NgGrqv5Gwen6W83oC38oiQs5j8+lGIO5hc7I9lL1jGx5gEsf9xFKI2aUUgh5XqAYMHKnRMjXKBedkpgvk/CPgRw6Mv6A98im1XHI9g19yXnKfM9gskBqrybabScmdhg==
  • 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: AQHXhRyjXw25ZKFLwkScbM+aMCyN0A==
  • Thread-topic: Sumo crashes when using departure edge taken from traci.simulation.convertRoad

Hello,

I am using population data to generate demand. The dataset includes latitude, longitude, and the number of people at that point. I am using traci.simulation.convertRoad as you see below:

     edgeID, lanePosition, laneIndex = traci.simulation.convertRoad(lon, lat, True, vClass='pedestrian')
     print('edge ID: ', edgeID)

Sample line of output:
     edge ID:  :5621183134_0

Flows are then written in XML from the convertRoad output:
     <flow id="97" from=":5621183134_0" to="334573857#4" ..............

Then Sumo crashes at the first step of the simulation with no error message. So I loaded the demand file in NetEdit and received:
     Error: Invalid from-edge ':5621183134_0' used in trip '97'

It seems Sumo objects to departures from internal edges. What should I do to avoid the crashing? It looks like I need to either ensure that edgeID is not an internal edge, or convince Sumo to accept trips from internal edges. I am open to both but not sure how to do either. Is this the completely wrong approach? I appreciate any advice you can give.

Thank you

Back to the top