Hello!
I am trying to simulate collisions between pedestrian and vehicle in an intersection under the following assumptions:
First of all, I have tried to make the pedestrian violate the red light and use jmDriveAfterRedTime=“1000” in the *.rou.xml file, but still the pedestrians are stopping at the red light. For vehicle, I tried the TraCI speed mode, but if I set the mode to 0, they will also violate the traffic light, which I do not want. So, in summary, Can anyone give me some pointers on:
Regards, Proyash _______________________________________________ sumo-user mailing list [hidden email] To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user |
Did you put jmDriveAfterRedTime=“1000” into the pedestrian type? For a working example. see https://github.com/eclipse/sumo/tree/master/tests/sumo/pedestrian_model/striping/block_vehicles/jaywalking_forward_collision Note, that vehicles will always try to brake once a pedestrian violates a red light. You could use set setSpeedMode(vehID, 30) to ignore the pedestians while still complying to traffic lights but you will have to mange not-crashing-into-the-leader-vehicle in your own code (vehicle.getLeader, vehicle.getFollowSpeed). regards, Jakob Am Sa., 5. Sept. 2020 um 05:38 Uhr schrieb Proyash Podder <[hidden email]>:
_______________________________________________ sumo-user mailing list [hidden email] To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user |
Hi!
I have used the setSpeedMode(vehID, 30), but still the cars are stopping for pedestrians (even in green light) and no accident is happening. I have attached my source files herewith. Can you please check if I am doing anything wrong?
_______________________________________________ sumo-user mailing list [hidden email] To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user ![]() ![]() ![]() |
Sorry for the misunderstanding setSpeedMode is necessary but not sufficient. You would still have to call setSpeed on the vehicle to make it drive instead of stopping. The speedMode then allows it to actually follow the given speed value despite the presence of a pedestrian. regards, Jakob Am So., 11. Okt. 2020 um 07:47 Uhr schrieb Proyash Podder <[hidden email]>:
_______________________________________________ sumo-user mailing list [hidden email] To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user |
Hello!
Thanks for the suggestion. It works. By the way, can the whole thing be done in any other way without using TraCI. For example, changing in the .rou.xml file in the vehicle type so that it does not stop for the pedestrian and make a collision. (summary: without using TraCI, the cars will follow the traffic lights, but do not consider the pedestrian and hit them). Please let me know if you have any confusions or concerns regarding this. Regards, Proyash
_______________________________________________ sumo-user mailing list [hidden email] To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user |
At the moment you need traci for this. An enhancement idea is discussed in https://github.com/eclipse/sumo/issues/7741 Am Mo., 2. Nov. 2020 um 15:54 Uhr schrieb Proyash Podder <[hidden email]>:
_______________________________________________ sumo-user mailing list [hidden email] To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user |
Free forum by Nabble | Edit this page |