Hi Mohit,
first things first: TraCI is intended for dynamic objects (something that
is likely to change during simulation). The network itself is regarded as
constant and only permissions can be changed.
Now there are some options how to edit the network automatically before the
simulation. It depends on how exactly you want to control the process of
adding lanes. You have the option to let netconvert infer lanes for
cyclists or pedestrians from the speed limits or existing lane permission
(see netconvert argument overview
<https://sumo.dlr.de/docs/netconvert.html#pedestrian> ). If you want to
edit the net with your own logic and in an automated fahsion, you should
look into the PlainXML <https://sumo.dlr.de/docs/Networks/PlainXML.html>
format. There you can define your network and convert back/forth to the
net.xml file using netconvert.
Best regards
Mirko
-----Original-Nachricht-----
Betreff: [sumo-user] Adding dedicated lanes
Datum: 2024-01-15T17:42:43+0100
Von: "Mohit Garg via sumo-user" <[email protected]>
An: "Sumo project User discussions" <[email protected]>
Hi there,
I am adding restricted lanes for bikes and pedestrians using netedit. But I
am doing it manually now, which is quite cumbersome in the case of a large
road network.
I am therefore wondering if there is a way to add lanes automatically using
TraCI in SUMO?
Thanks in advance,
Kind regards,
Mohit
_______________________________________________
sumo-user mailing list
[email protected]
To unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user