-
Hello Community, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I just did a few tests and was successfully able to let two vehicles collide on an intersection, if that's it what you want to do? I achieved that by mapping a simple application to both vehicles which initially sets the SpeedMode to @Override
public void onStartup() {
getOs().requestVehicleParametersUpdate().changeSpeedMode(SpeedMode.AGGRESSIVE).apply();
} I also added {
"updateInterval" : 100,
"additionalSumoParameters": "--time-to-teleport 10 --seed 100000 --collision.action warn --collision.check-junctions true"
} However, I found that in our current implementation we do not set bit 5 yet, presumably because it was just recently added by SUMO? So in order to make that work, you have to change the In SumoSpeedMode.java line 33-36: case AGGRESSIVE:
mode.setRegardMaximumAcceleration(true);
mode.setRegardMaximumDeceleration(true);
+ mode.bitset.set(5);
break; |
Beta Was this translation helpful? Give feedback.
-
Hello, |
Beta Was this translation helpful? Give feedback.
@yibork
I just did a few tests and was successfully able to let two vehicles collide on an intersection, if that's it what you want to do?
I achieved that by mapping a simple application to both vehicles which initially sets the SpeedMode to
AGGRESSIVE
:I also added
--collision.action warn --collision.check-junctions true
to thesumo_config.json
:However, I found that in our current implementation we do …