Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[sumo-user] Help with scenario creation
  • From: Amanda Romano <amandaromano@xxxxxxxxxxx>
  • Date: Sun, 26 Sep 2021 04:27:06 +0000
  • Accept-language: pt-BR, en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; 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; bh=FEjg7cMt1bQEK9KB8xWG4fKm0WQJoG8vPs4jwbQ1RBM=; b=X2CV+Pk4PMTvT2sD77DpSPf5x1wEcCwcEq5OdnMC+ZRJ7QJPW7dXY2OTs36VIIf6ulVHDnWQLnRTCBqorLFbs0gY0HHE50DZCfvrhhOQF4y6oFggAJkMJh0dkf7kbGAGPp7wn3CLX9ABP4js96D/ZEN5qZadCpkY0AiZYLyu/ECv5e+CsePqXd7sAMXAaiq4EzexfibO0I+cbiCn7zX1ZT6Nd4BfbaA7G6hGhFps7VsK3CiynpyoSRTEAQhD8io+XtclHUb7os747+d/QsRX4pg1S57MSTe5cOQdqX3iJX58uQBT/DH47x3HlftF1zOkCEX5jYTkAizzNDF7iQuZ6g==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fYMAzko0rek6cJV6G3M8mUfVysct0+VQW7NXFyX4k2TRYpiBTaafZZvS88+ZrSdcOjbEZ3/36qlUNLHLUmXxDubAXclZzPKWg8euiDJasNwgxNpXZnjAOaTK+JjFJ+ROuSXTRw6rcIA84RwUnG+DVoUf9KJdaP8Hv2zpJ8gNwdcQJLU0QRlGfN5YDLV3y5FvpeLPoXbM3ycxdasPD7xGqVN3qnApHGhG4XQo2RjLJPX92qmxW1/xbefVXQqwJZZGqmW9cjKJE36cAhBDt+9kYCTezROgEUFUtRH7g6/nGNGaamj1+hoX31UpSOey2/A+TmNl5f9M3Gi7hFhH0b/NGA==
  • 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>
  • Suggested_attachment_session_id: 81b9377d-32b5-2a67-4baa-0d629d69ed44
  • Thread-index: AQHXso0tu9pQ7kJaPUaciGt9Nm9M5w==
  • Thread-topic: Help with scenario creation

Hello everyone,

I would like to thank the previous answer, it helped me to solve the problem add the option '--vclass passenger'

I'm still a novice to SUMO. I have already created the network and routes with default vehicles in my simulation, but I would like to create scenarios by replacing some of the routes with another vehicle class (such as electric vehicle). Or substituting trips for classes of vehicles with a higher occupancy rate (such as taxis (with a group of people sharing) and robot-taxis (Shared Autonomous Vehicle)), with these trips being door-to-door and these vehicles do not leave the simulation. I'm doing some testing with a small O/D-matrix, but I haven't been able to create these scenarios on my network. Could someone help me or know any step-by-step tutorial for beginners? Mainly in relation to inserting autonomous vehicles into the network.

I'm leaving again the step by step of what I did:

0 - extract the network from openstreetmap (osm file - map.osm)
I made the file with the data from the O/D matrix (OD_file.od)
od2trips.config.xml
duarcfg_file.trips2routes.duarcfg
config_file.sumocfg

1) Using netconvert, I converted the osm file to net.xml
netconvert --osm-files map.osm -o map.net.xml

2) Using Polyconvert, I converted the shapefile to a polygon file:
polyconvert --net-file map.net.xml --shapefile-prefixes SHPFILE --shapefile.id-column ID --shapefile.add-param true --shapefile.fill false --shapefile.traditional-axis-mapping true -o SHPFILE.poly.xml --type taz

3) I converted the polygon file to TAZ file (districts.taz.xml):
python edgesInDistricts.py -n map.net.xml -t SHPFILE.poly.xml --vclass passenger

4)Using od2trips, I created the trips:
od2trips -c od2trips.config.xml -n districts.taz.xml -d OD_file.od -o od_file.odtrips.xml

5)And using duarouter, I wanted to create the routes:
duarouter -c duarcfg_file.trips2routes.duarcfg

Thank you for your time and sorry for the inconvenience.

Back to the top