CityBrainChallenge / KDDCup2021-CityBrainChallenge-starter-kit

75 stars 40 forks source link

The Question about Speed Limit of Road #45

Open ghost opened 3 years ago

ghost commented 3 years ago

I find that the speed of veh could be larger than the speed limit of the road.

The console output:

veh:
{'distance': [14.666666666666668], 'drivable': [248000.0], 'road': [2480.0], 'route': [2480.0, 5388.0, 2249.0, 3059.0, 3597.0, 3562.0, 3131.0, 2537.0, 2701.0, 1301.0, 1415.0, 405.0, 735.0, 734.0, 216.0, 1290.0, 150.0, 1270.0, 2840.0], 'speed': [16.666666666666668], 'start_time': [1284.0], 't_ff': [526.956]}
road:
{'start_inter': 28326565261, 'end_inter': 48326565264, 'length': 352.0, 'speed_limit': 11.11111111111111, 'num_lanes': 3, 'inverse_road': 2479, 'lanes': {248000: [1, 0, 0], 248001: [0, 1, 0], 248002: [0, 0, 1]}}

We can find the speed of this veh in road 2480 is 16.67 while the speed limit of the road is 11.111.

Is it a Bug?

Kanstarry9T commented 3 years ago

Lane speed limit is the upper bound if a vehicle accelerate on the lane, however, some vehicle may decelerate while traveling from another road segment with higher speed limit, and have not decelerated to travel at the speed limit of current road segment.