Datasets › MacLight
MacLight (MacLight_4×4_grid)
If you plan to test your method on our road network, you can find road network files in env\map.
ff.net.xmlis road network. It is unchanging, and the difference between the different environments is the traffic flow file.ff_normal.rou.xmlis traffic flow file under normal pressure (Normal&Block).ff_hard.rou.xmlis traffic flow file under high pressure (Peak).
It should be noted that the normal pressure we set is also relatively high.
| Normal&Block | Peak | arterial4x4 | grid4x4 | |
|---|---|---|---|---|
| Vehicles | 8000 | 10286 | 2485 | 1472 |
Examples to create an enviroment
Our environment interface inherits from gymnasium and sumo-rl, so you can easily migrate your algorithms.
- Static environment:
The direction of the vehicle is completely fixed and the route will not be changed.
env = sumo_rl.parallel_env(
net_file='env/map/ff.net.xml',
route_file=f'env/map/ff_normal.rou.xml', # Could be `ff_hard.rou.xml`
num_seconds=args.seconds,
use_gui=False,
sumo_warnings=False,
additional_sumo_cmd='--no-step-log'
)
- Dynamic environment
We define the BlockStreet class, which can randomly block certain roads, so that vehicles reselect the best route, which will cause sudden changes in traffic flow on certain roads.
from env.wrap.random_block import BlockStreet
# block_num: Number of blocked roads, like 8
# seconds: Simulation seconds, up to 3600
env = BlockStreet(env, block_num, seconds)
Additionally, we strongly recommend that you set the following environment variables to get the fastest possible simulation (although it may still be slower):
import os
os.environ['LIBSUMO_AS_TRACI'] = '1'
Benchmarks archive 2025-07-28
No leaderboard in the archive resolves to this dataset.
Papers archive 2025-07-28
No paper in the archive has a leaderboard row on this dataset; the archive counts 1 paper for it but never published that list.
Dataset loaders archive 2025-07-28
No loader listed in the archive.
Tasks archive 2025-07-28
No task tagged in the archive.
License archive 2025-07-28
No licence recorded in the archive. Absence here is not a statement about the dataset's terms.
Modalities archive 2025-07-28
No modality tagged.
Languages archive 2025-07-28
Variants archive 2025-07-28
- MacLight
1 variant name, as the archive lists them.
Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections