[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [sumo-user] Adding dedicated lanes
|
Please follow the guidelines from the documentation regarding validated routes and trips.
Best regards
Mirko
-----Original-Nachricht-----
Betreff: Re: [sumo-user] Adding dedicated lanes
Datum: 2024-02-01T13:40:09+0100
Von: "Mohit Garg" <mgarg@xxxxxx>
An: "Mirko Barthauer" <m.barthauer@xxxxxxxxxxx>
Hi Mirko,
Sorry to bother you again!
I have added an additional bicycle lane to the existing urban sumo network using the below command-
netconvert --sumo-net-file my_network.net.xml --bikelanes.guess -o my_network_bicycle.net.xml
Then, I generated traffic for the bicycle lane only using the below command-
python randomTrips.py --vehicle-class bicycle --validate -b 0 -e 50000 -p 1 -n my_network_bicycle.net.xml -o my_network_bicycle.rou.xml
I already have the route file for the other vehicle class. I am adding this additional rou file to the sumo config file and start running the simulation. But it is throwing an error:
Error: Vehicle '757_1.0' has no valid route. No connection between edge 'gneE51' and edge '2294382#0'.
I believe this error is due to the additional bike lane because I was able to run simulations properly without adding the bike lane. Please advise.
Any help would be appreciated.
Thanks.
Kind regards,
Mohit
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). If you want to edit the net with your own logic and in an automated fahsion, you should look into the PlainXML 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" <sumo-user@xxxxxxxxxxx>
An: "Sumo project User discussions" <sumo-user@xxxxxxxxxxx>
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