Please follow the guidelines
<https://sumo.dlr.de/docs/Tools/Trip.html#validated_routes_and_trips> 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" <[email protected]>
An: "Mirko Barthauer" <[email protected]>
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
On Tue, 16 Jan 2024 at 07:48, Mirko Barthauer <[email protected]
<mailto:[email protected]> > wrote:
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]
<mailto:[email protected]> >
An: "Sumo project User discussions" <[email protected]
<mailto:[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