Skip to content

Commit

Permalink
colour cars
Browse files Browse the repository at this point in the history
  • Loading branch information
aonurakman committed Nov 7, 2024
1 parent d8429fd commit 1221ca1
Show file tree
Hide file tree
Showing 39 changed files with 6 additions and 1,217,142 deletions.
4 changes: 2 additions & 2 deletions RouteRL/environment/simulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ def add_vehice(self, act_dict: dict) -> None:

route_id = self.route_id_cache.setdefault((act_dict[kc.AGENT_ORIGIN], act_dict[kc.AGENT_DESTINATION], act_dict[kc.ACTION]), \
f'{act_dict[kc.AGENT_ORIGIN]}_{act_dict[kc.AGENT_DESTINATION]}_{act_dict[kc.ACTION]}')

self.sumo_connection.vehicle.add(vehID=str(act_dict[kc.AGENT_ID]), routeID=route_id, depart=str(act_dict[kc.AGENT_START_TIME]))
kind = act_dict[kc.AGENT_KIND]
self.sumo_connection.vehicle.add(vehID=str(act_dict[kc.AGENT_ID]), routeID=route_id, depart=str(act_dict[kc.AGENT_START_TIME]), typeID=kind)

def step(self) -> tuple:
"""
Expand Down
277,475 changes: 0 additions & 277,475 deletions RouteRL/network_and_config/csomor 2.osm

This file was deleted.

26 changes: 0 additions & 26 deletions RouteRL/network_and_config/csomor 2.sumocfg

This file was deleted.

21,187 changes: 0 additions & 21,187 deletions RouteRL/network_and_config/csomor.con 2.xml

This file was deleted.

21,187 changes: 0 additions & 21,187 deletions RouteRL/network_and_config/csomor.con.xml

This file was deleted.

7,062 changes: 0 additions & 7,062 deletions RouteRL/network_and_config/csomor.edg 2.xml

This file was deleted.

7,062 changes: 0 additions & 7,062 deletions RouteRL/network_and_config/csomor.edg.xml

This file was deleted.

123,704 changes: 0 additions & 123,704 deletions RouteRL/network_and_config/csomor.net 2.xml

This file was deleted.

123,704 changes: 0 additions & 123,704 deletions RouteRL/network_and_config/csomor.net.xml

This file was deleted.

2,994 changes: 0 additions & 2,994 deletions RouteRL/network_and_config/csomor.nod 2.xml

This file was deleted.

2,994 changes: 0 additions & 2,994 deletions RouteRL/network_and_config/csomor.nod.xml

This file was deleted.

277,475 changes: 0 additions & 277,475 deletions RouteRL/network_and_config/csomor.osm

This file was deleted.

Loading

0 comments on commit 1221ca1

Please sign in to comment.