Hi Marie,

 

please be aware that I am completely new to this – so please don’t take my word 
for gold :)

But in this very question I have already two answers of Jakob which I would 
like to append,

in case that you are not member of the sumo-dev group. 

Today I had some problems getting TraCI to run, but now, that these probs are 
solved I start to

try out the following suggestions:

 

“””””””””””# 1 #”””””””””””

Hello,

it should be quite easy to modify the car-following model so as to force (rear 
collision) accidents.

The current (default) model computes the maximum speed which still allows 
braking if the leaders were to brake. This velocity is then used by the vehicle 
(if the vehicle parameters and speed limit allow). By modifying the model so as 
to return a larger value, the vehicle will drive in an "unsafe" manner and will 
crash if the leader vehicle brakes hard.

Note, that sumo will flag the situation as a collision as soon as the leader 
comes within the "minGap" of the follewer vehicle and will immediately 
"teleport" to follower vehicle to a subsequent lane (if you want to make sure 
that vehicles intersect closely you should set the minGap attribute to 0).

Flanking collisions are more difficult to create. Head-on collisions are 
currently not possible.

Also, sumo hardly models any physics, besides limiting acceleration and 
deceleration. You need to modify these parametesr ("accel" and "decel") to 
simulation different road conditions.

 

regards,
Jakob.

“””””””””””””””””””””””””””

 

“””””””””””# 2 #”””””””””””

Hello,

see  <http://sumo-sim.org/wiki/TraCI/Change_Vehicle_State> 
http://sumo-sim.org/wiki/TraCI/Change_Vehicle_State

The commands 'speed mode' and 'lane change mode' have some safety-relevant 
flags.

You can only set these via TraCI at the moment.

regards,
Jakob

“””””””””””””””””””””””””””

 

Hope this helps,

 

Marcus

 

 

 

From: Marie-Ange Lebre [mailto:[email protected]] 
Sent: Dienstag, 2. September 2014 18:08
To: Marcus Müller
Cc: sumo-user
Subject: Re: [sumo-user] Let car ignore traffic light or other rules

 

Hi Marcus,

 

Thanks a lot for your answer and your help !

Ok, I understand  that commands with Traci are not able to break the security 
mode tanks to your email.

 

Maybe my question is stupid but do you know where we can modify the settings 
"speed mode" or "lane change mode" in sumo roots? 

 

Best Regards and thanks a lot,

 

M-Ange

 

 

 

 

 

2014-09-02 17:35 GMT+02:00 Marcus Müller <[email protected] 
<mailto:[email protected]> >:

Hi Marie,

 

Good to hear that there is someone working on this topic too.

 

As far as I understand right now, the different models in SUMO, here especially 
the car following model and maybe the junction model, are designed to avoid 
such dangerous situations. (As we would do as real drivers as well).

I guess the maximum speed parameters doesn't overwrite such security critical 
decisions like breaking at a traffic light. 

 

I think there are other settings, like "speed mode" and "lane chnage mode" 
highlighted by Jakob before, which can be used to achieve the desired red-light 
behaviour.

 

I will keep you updated with my latest results on that.

 

Regards,

 

Marcus

 

 

 


Am 02.09.2014 um 17:10 schrieb Marie-Ange Lebre <[email protected] 
<mailto:[email protected]> >:

Hello,

I try also to push cars to ignore traffic lights. I use 
traci.vehicle.setSpeed(vehID, Maxspeed) to allow cars to have the maximum 
allowed speed ;  but in the simulation, car doesn't take into account my 
command and stops at the yellow light.

Can you suggest an idea ?

Regards and thanks a lot,

M.Ange

 

2014-09-01 8:57 GMT+02:00 Jakob Erdmann <[email protected] 
<mailto:[email protected]> >:

Hello,
see  <http://sumo-sim.org/wiki/TraCI/Change_Vehicle_State> 
http://sumo-sim.org/wiki/TraCI/Change_Vehicle_State
The commands 'speed mode' and 'lane change mode' have some safety-relevant
flags.
You can only set these via TraCI at the moment.
regards,
Jakob



2014-08-31 23:32 GMT+02:00 Marcus Müller < 
<mailto:[email protected]> [email protected]>:

> Hi all,
>
>
>
> Is there a way to make cars ignore traffic lights or other rules to force
> “accident like behavior” ?
>
> What do you think, would be the best approach ?
>
>
>
> Regards and many thanks in advance,
>
>
>
> marcus
>
>
> ------------------------------------------------------------------------------
> Slashdot TV.
> Video for Nerds.  Stuff that matters.
>  <http://tv.slashdot.org/> http://tv.slashdot.org/
> _______________________________________________
> sumo-user mailing list
>  <mailto:[email protected]> [email protected]
>  <https://lists.sourceforge.net/lists/listinfo/sumo-user> 
> https://lists.sourceforge.net/lists/listinfo/sumo-user
>
------------------------------------------------------------------------------
Slashdot TV.
Video for Nerds.  Stuff that matters.
 <http://tv.slashdot.org/> http://tv.slashdot.org/
_______________________________________________
sumo-user mailing list
 <mailto:[email protected]> [email protected]
 <https://lists.sourceforge.net/lists/listinfo/sumo-user> 
https://lists.sourceforge.net/lists/listinfo/sumo-user

 

 

------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
sumo-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sumo-user

Reply via email to