Traffic Simulation/SUMO 7

OSM에 쿼리 적용하여 SUMO지도 생성(Overpass Turbo)

목차 1. Overpass turbo OSM 지도에 쿼리를 적용하여 원하는 level의 지도를 생성할 수 있다. OSM으로 그대로 가져와 SUMO에서 작업하려니, 지도가 너무 자세히 생성되어 차가 다닐 수 없는 edges까지 포함하는 문제가 발생하였다. 따라서 특정 조건을 만족하는 지도를 생성하기 위한 방법을 찾아야했다. https://overpass-turbo.eu/ overpass turbo A web based data mining tool for OpenStreetMap which runs any kind of Overpass API query and shows the results on an interactive map. overpass-turbo.eu 추출할 highway level 선정 쿼리..

[Routing] SUMO + TraCI + DQN Routing

1) environment netedit 구현 netedit 사용해서 7개 node와 20개 edges로 구성된 네트워크를 (.net.xml) 생성한다. 이때 E7, -E7만 제한 속도 10으로 제한하고, 나머지는 agent의 maxSpeed에 맞추어 15로 구성하였다. 추가로, lane위의 vehicle수를 구하기 위해 모든 edge에 laneAreaDetector을 설치하였다. *dqn.add.xml에 lanedetector를 명시하며 pos와 endPos생략시 lane전체를 의미하며 freq 또는 tl은 필수로 입력해야한다. laneAreaDetector예시) 목표 : agent는 dynamic traffic상황에서 0번 노드부터 6번 노드까지 최단 시간안에 도착하는 것이다. 2) Traffic w..

[Routing] SUMO + TraCI + Random Routing

Code https://github.com/Rrojin11/SUMO/tree/master/Random GitHub - Rrojin11/SUMO: sumo + RL sumo + RL. Contribute to Rrojin11/SUMO development by creating an account on GitHub. github.com random_run : 랜덤으로 루트를 변경합니다. 함수 1 : random_run [수정전] 현재 edge에서 다음으로 통과할 수 있는 edge들을 계산하고, 그 중에서 랜덤으로 nextedge를 고릅니다. 이후 traci.vehicle.changeTarget('veh0',nextedge) 코드를 통해 다음 루트를 지정합니다. 1 2 3 4 5 6 7 8 9 10 11 12..

[Tutorial] TraCI4Traffic Lights

0. 튜토리얼 링크 https://sumo.dlr.de/docs/Tutorials/TraCI4Traffic_Lights.html TraCI4Traffic Lights - SUMO Documentation 1.1.0 --> TraCI4Traffic Lights This shows how to use the Traffic Control Interface (in short TraCI) on a simple example. TraCI gives the possibility to control a running road traffic simulation. TraCI uses a TCP-based client/server architecture where SUMO sumo.dlr.de 다음 튜토리얼의 목표는 북에서..

[Tutorial] Hello SUMO

목차 0. 튜토리얼 소개 1. Network 구성 방법 2. Route 구성 방법 3. GUI 세팅 4. Configuation 작성 5. Run Simulation 0. 튜토리얼 소개 https://sumo.dlr.de/docs/Tutorials/Hello_SUMO.html#routes Hello SUMO - SUMO Documentation 1.1.0 --> Hello SUMO Introduction This tutorial aims at first time Sumo users. We are building the simplest net possible and let a single car drive on it. All files mentioned here can also be found in the..