Skip to content
\n

I also added --collision.action warn --collision.check-junctions true to the sumo_config.json:

\n
{\n    \"updateInterval\" : 100,\n    \"additionalSumoParameters\": \"--time-to-teleport 10 --seed 100000 --collision.action warn --collision.check-junctions true\"\n}
\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.

\n

In SumoSpeedMode.java line 33-36:

\n
   case AGGRESSIVE:\n       mode.setRegardMaximumAcceleration(true);\n       mode.setRegardMaximumDeceleration(true);\n+      mode.bitset.set(5);\n       break;
","upvoteCount":1,"url":"https://github.com/eclipse-mosaic/mosaic/discussions/434#discussioncomment-11254340"}}}

Disabling Safety Checks for RL Training with SUMO in Eclipse MOSAIC #434

Answered by kschrab
yibork asked this question in Q&A
Discussion options

You must be logged in to vote

@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:

@Override
public void onStartup() {
    getOs().requestVehicleParametersUpdate().changeSpeedMode(SpeedMode.AGGRESSIVE).apply();
}

I also added --collision.action warn --collision.check-junctions true to the sumo_config.json:

{
    "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 …

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by yibork
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants