I also added --collision.action warn --collision.check-junctions true
to the sumo_config.json
:
{\n \"updateInterval\" : 100,\n \"additionalSumoParameters\": \"--time-to-teleport 10 --seed 100000 --collision.action warn --collision.check-junctions true\"\n}
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 SumoSpeedMode
class to set this bit for the mode AGGRESSIVE
. We probably add this by default or adding a new SpeedMode with all checks disabled in a future commit.
In SumoSpeedMode.java line 33-36:
\n case AGGRESSIVE:\n mode.setRegardMaximumAcceleration(true);\n mode.setRegardMaximumDeceleration(true);\n+ mode.bitset.set(5);\n break;
-
Hello Community, |
Beta Was this translation helpful? Give feedback.
-
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 …