baumfalk / TrafficMAS

TrafficMAS, the code
MIT License
0 stars 0 forks source link

ChangeVelocity action #12

Closed Maxic closed 9 years ago

Maxic commented 9 years ago

It seems like vehicles in SUMO will always accelerate to their maximum allowed speed, either their own or the maximum speed as set by the edge they are driving on. We need to find out if the current implementation of ChangeVelocity actually works and how SUMO handles acceleration and deceleration of vehicles exactly.

Maxic commented 9 years ago

Using setSpeedMode 0b00010 (regard accel only) and forcing higher velocity with Vehicle.slowDown doesn't work.

Maxic commented 9 years ago

Fixed by setting maxSpeed. Speed can still never be higher than the AgentProfile specific maxComfySpeed.