Hello Giuliana, I tried to use the taxi devices with <device.taxi.probability value="0.25"/> in the sumo configuration, while doing the simulation I am getting the error=
"vehicle "id" with Device.taxi should have vclass 'taxi' instead of 'passenger' ". I understand that randomtrip.py is generating vehicles with vclass passenger. But as I used 0.25 taxi device probability in sumo config file, shouldn't it automatically change the 25% vehicles to vclass taxi in the simulation? Is their any way to correct this issue or is it a bug? Regards, Tonmoy On Wed, 15 Jul 2020, 11:42 a.m. , <[email protected]> wrote: > Hi Tonmoy, > > > > I think there is no possibility to do this with the command line, you have > to add the device parameters manually. You could assign the device by > global options, but I think that’s not what you are looking for (see > https://sumo.dlr.de/docs/Definition_of_Vehicles,_Vehicle_Types,_and_Routes.html#devices > ). > > > > There is an important difference between VType/VClass Taxi and the Taxi > Device: > > > > The Taxi Device (see https://sumo.dlr.de/docs/Simulation/Taxi.html) simulates > demand responsive transport (DRT) and you can add this device to any vehicle. > This allows a fleet of taxis to serve customer requests based on a > configurable dispatch algorithm. So you don’t have to define trips for these > vehicles, the algorithm will do this for you. This line “<stop lane="D2D3_1" > triggered="person"/>“ is used to keep the taxi waiting at the given lane > until the first dispatch is received. No more stops need to be added. > > > > If you are looking for a vehicle that makes a specific route and stops to > pick up passengers, then you don’t need to use a Taxi device. You can just > add stops to the route or vehicle. See > https://sumo.dlr.de/docs/Definition_of_Vehicles,_Vehicle_Types,_and_Routes.html#stops > . > > > > Regards, > > Giuliana > > > > *From:* [email protected] [mailto: > [email protected]] *On Behalf Of *Tonmoy Das > *Sent:* Dienstag, 14. Juli 2020 14:40 > *To:* Sumo project User discussions > *Subject:* Re: [sumo-user] Disconnected plan for person "0" > > > > Hello Giuliana, > > > > Thanks for the fast reply. > > > > I wanted to know how to add the param keys in the trip files. > > <param key="has.taxi.device" value="true"/> > > <param key="device.taxi.end" value="3600"/> > > > > Normally I use the lower command to generate 10 taxi trips. But I am > missing the param keys to keep the taxi's in the simulation. And also how > to add stop lanes for different taxi trips? Do I have to add them manually? > > > > randomTrips.py -n gnet.net.xml -o taxitrips.rou.xml > --trip-attributes="modes=\"taxi\" triggered=\"person\"" --vehicle-class > taxi -e 10 > > > > Regards, > > Tonmoy > > > > On Tue, 14 Jul 2020, 1:18 pm , <[email protected]> wrote: > > Hi Tomoy, > > Happy to help J > > By command line? If you mean adding more taxis with different stops in the > simulation, you can just add more trips with different IDs. For example: > > <trip id="taxi" type="taxi" depart="0.00" from="D2D3" to="D2D3"> > > <stop lane="D2D3_1"/> > > </trip> > > <trip id="taxi2" type="taxi" depart="0.00" from="C4C3" to="C4C3"> > > <stop lane="C4C3_1"/> > > </trip> > > > > Regards, > > Giuliana > > > > > > *From:* [email protected] [mailto: > [email protected]] *On Behalf Of *Tonmoy Das > *Sent:* Dienstag, 14. Juli 2020 12:20 > *To:* Sumo project User discussions > *Subject:* Re: [sumo-user] Disconnected plan for person "0" > > > > Hi Giuliana, > > > > Thanks a lot for the solution. > > > > I have one more inquiry, For multiple taxis how can I add this parameter > with different stop edges by command line? > > <vType id="taxi" vClass="taxi" modes="taxi" triggered="person"> > > <param key="has.taxi.device" value="true"/> > > <param key="device.taxi.end" value="3600"/> > > </vType> > > <trip id="taxi" type="taxi" depart="0.00" from="D2D3" to="D2D3"> > > <stop lane="D2D3_1"/> > > </trip> > > > > On Tue, 14 Jul 2020, 9:23 am , <[email protected]> wrote: > > Hi Tomoy, > > > > You are getting the error "Error: Disconnected plan for person '0' (edge > 'C4C3' != edge 'B1B2')" because you are saying that the person has to ride > with vehicle 0_0 from 'C4C3' to 'B1B2' and then again from 'C4C3' to 'B1B2' > with a taxi, so how does the person get back from 'B1B2' to 'C4C3'? > > > > You can make the return trip by taxi: > > > > <person id="0" depart="0.00"> > > <ride from="C4C3" to="B1B2" lines="0_0"/> > > <ride from="B1B2" to="C4C3" lines="taxi"/> > > </person> > > > > Or you can say that the person should walk to the start edge again and > then take a taxi: > > > > <person id="0" depart="0.00"> > > <ride from="C4C3" to="B1B2" lines="0_0"/> > > <walk from="B1B2" to="C4C3"/> > > <ride from="C4C3" to="B1B2" lines="taxi"/> > > </person> > > > > If you choose this option, you will have to add the pedestrian crossings > to your net ( > https://sumo.dlr.de/docs/Simulation/Pedestrians.html#generating_a_network_with_crossings_and_walkingareas). > This can be done using netconvert with the following command: > > netconvert -s gnet.net.xml --crossings.guess -o gnet.net.xml > > > > I don’t understand why you define fixed routes for the taxis. If you are > trying to simulate an on demand/ride hailing service this is not necessary. > You can just give the first edge, from where the taxi will wait for a > request: > > > > <vType id="taxi" vClass="taxi" modes="taxi" triggered="person"> > > <param key="has.taxi.device" value="true"/> > > <param key="device.taxi.end" value="3600"/> > > </vType> > > <trip id="taxi" type="taxi" depart="0.00" from="D2D3" to="D2D3"> > > <stop lane="D2D3_1"/> > > </trip> > > > > Regards, > > Giuliana > > > > > > *From:* [email protected] [mailto: > [email protected]] *On Behalf Of *Tonmoy Das > *Sent:* Montag, 13. Juli 2020 19:26 > *To:* [email protected] > *Subject:* [sumo-user] Disconnected plan for person "0" > > > > Hello Everyone, > > > > I have been trying to get intermodal routing PERSONTRIPS using different > combination of modes=car taxi or taxi car, even after using explicitly > defined taxi lines, I am still getting "Disconnected plan for person "0". > > > > what should I do to solve this problem? > > > > Thanks in advance. > > > > P.S. I have attached the files in here. > > > > > > _______________________________________________ > sumo-user mailing list > [email protected] > To unsubscribe from this list, visit > https://www.eclipse.org/mailman/listinfo/sumo-user > > _______________________________________________ > sumo-user mailing list > [email protected] > To unsubscribe from this list, visit > https://www.eclipse.org/mailman/listinfo/sumo-user > > _______________________________________________ > sumo-user mailing list > [email protected] > To unsubscribe from this list, visit > https://www.eclipse.org/mailman/listinfo/sumo-user >
<?xml version="1.0" encoding="UTF-8"?> <!-- generated on 07/16/20 13:20:33 by Eclipse SUMO duarouter Version v1_6_0+1152-f241c9e80f <configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/duarouterConfiguration.xsd"> <input> <net-file value="gnet.net.xml"/> <route-files value="trips.trips.xml"/> </input> <output> <output-file value="max.rou.xml"/> <alternatives-output value="max.rou.alt.xml"/> </output> <time> <begin value="0"/> <end value="20.0"/> </time> <report> <no-warnings value="true"/> <ignore-errors value="true"/> <no-step-log value="true"/> </report> </configuration> --> <routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/routes_file.xsd"> <vehicle id="0_0" depart="triggered"> <route edges="A4B4 B4B3 B3B2 B2B1 B1A1 A1A0 A0B0"/> </vehicle> <person id="0" depart="0.00"> <ride from="A4B4" to="A0B0" lines="0_0"/> </person> <vehicle id="1_0" depart="triggered"> <route edges="C3D3 D3D2 D2D3"/> </vehicle> <person id="1" depart="1.00"> <ride from="C3D3" to="D2D3" lines="1_0"/> </person> <vehicle id="2_0" depart="triggered"> <route edges="E4E3 E3E2 E2E1 E1E0 E0D0 D0C0 C0B0 B0A0"/> </vehicle> <person id="2" depart="2.00"> <ride from="E4E3" to="B0A0" lines="2_0"/> </person> <vehicle id="3_0" depart="triggered"> <route edges="B1A1 A1B1 B1B0"/> </vehicle> <person id="3" depart="3.00"> <ride from="B1A1" to="B1B0" lines="3_0"/> </person> <vehicle id="4_0" depart="triggered"> <route edges="C2C3 C3D3 D3E3 E3E4"/> </vehicle> <person id="4" depart="4.00"> <ride from="C2C3" to="E3E4" lines="4_0"/> </person> <vehicle id="5_0" depart="triggered"> <route edges="C4B4 B4A4 A4A3 A3B3"/> </vehicle> <person id="5" depart="5.00"> <ride from="C4B4" to="A3B3" lines="5_0"/> </person> <vehicle id="6_0" depart="triggered"> <route edges="D2D3 D3D2 D2D1 D1C1 C1D1"/> </vehicle> <person id="6" depart="6.00"> <ride from="D2D3" to="C1D1" lines="6_0"/> </person> <vehicle id="7_0" depart="triggered"> <route edges="C3B3 B3C3 C3C2 C2C1"/> </vehicle> <person id="7" depart="7.00"> <ride from="C3B3" to="C2C1" lines="7_0"/> </person> <vehicle id="8_0" depart="triggered"> <route edges="C4D4 D4D3 D3D2 D2C2 C2B2 B2A2 A2B2"/> </vehicle> <person id="8" depart="8.00"> <ride from="C4D4" to="A2B2" lines="8_0"/> </person> <vehicle id="9_0" depart="triggered"> <route edges="D4D3 D3D2 D2D1 D1D2"/> </vehicle> <person id="9" depart="9.00"> <ride from="D4D3" to="D1D2" lines="9_0"/> </person> <vehicle id="10_0" depart="triggered"> <route edges="A3A4"/> </vehicle> <person id="10" depart="10.00"> <ride from="A3A4" to="A3A4" lines="10_0"/> </person> <vehicle id="11_0" depart="triggered"> <route edges="A2A3 A3B3 B3C3 C3C2 C2C1 C1C0 C0B0"/> </vehicle> <person id="11" depart="11.00"> <ride from="A2A3" to="C0B0" lines="11_0"/> </person> <vehicle id="12_0" depart="triggered"> <route edges="A4A3 A3A4 A4B4 B4C4 C4C3"/> </vehicle> <person id="12" depart="12.00"> <ride from="A4A3" to="C4C3" lines="12_0"/> </person> <vehicle id="13_0" depart="triggered"> <route edges="D0E0 E0E1 E1D1 D1C1 C1B1 B1A1 A1A2 A2A3"/> </vehicle> <person id="13" depart="13.00"> <ride from="D0E0" to="A2A3" lines="13_0"/> </person> <vehicle id="14_0" depart="triggered"> <route edges="C4C3 C3C2 C2B2 B2A2"/> </vehicle> <person id="14" depart="14.00"> <ride from="C4C3" to="B2A2" lines="14_0"/> </person> <vehicle id="15_0" depart="triggered"> <route edges="E1E2 E2E1 E1D1 D1C1 C1B1"/> </vehicle> <person id="15" depart="15.00"> <ride from="E1E2" to="C1B1" lines="15_0"/> </person> <vehicle id="16_0" depart="triggered"> <route edges="B2B1 B1C1 C1D1 D1E1 E1E0 E0D0"/> </vehicle> <person id="16" depart="16.00"> <ride from="B2B1" to="E0D0" lines="16_0"/> </person> <vehicle id="17_0" depart="triggered"> <route edges="A2B2 B2C2 C2D2 D2E2 E2E1 E1D1"/> </vehicle> <person id="17" depart="17.00"> <ride from="A2B2" to="E1D1" lines="17_0"/> </person> <vehicle id="18_0" depart="triggered"> <route edges="D3D2 D2C2 C2B2 B2B3"/> </vehicle> <person id="18" depart="18.00"> <ride from="D3D2" to="B2B3" lines="18_0"/> </person> <vehicle id="19_0" depart="triggered"> <route edges="D2D1 D1C1 C1C2 C2C3 C3C4 C4B4 B4A4 A4A3"/> </vehicle> <person id="19" depart="19.00"> <ride from="D2D1" to="A4A3" lines="19_0"/> </person> </routes>
max.sumocfg
Description: application/sumo
<?xml version="1.0" encoding="UTF-8"?> <!-- generated on 07/16/20 13:20:33 by Eclipse SUMO duarouter Version v1_6_0+1152-f241c9e80f <configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/duarouterConfiguration.xsd"> <input> <net-file value="gnet.net.xml"/> <route-files value="trips.trips.xml"/> </input> <output> <output-file value="max.rou.xml"/> <alternatives-output value="max.rou.alt.xml"/> </output> <time> <begin value="0"/> <end value="20.0"/> </time> <report> <no-warnings value="true"/> <ignore-errors value="true"/> <no-step-log value="true"/> </report> </configuration> --> <routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/routes_file.xsd"> <vehicle id="0_0" depart="triggered"> <route edges="A4B4 B4B3 B3B2 B2B1 B1A1 A1A0 A0B0"/> </vehicle> <person id="0" depart="0.00"> <ride from="A4B4" to="A0B0" lines="0_0"/> </person> <vehicle id="1_0" depart="triggered"> <route edges="C3D3 D3D2 D2D3"/> </vehicle> <person id="1" depart="1.00"> <ride from="C3D3" to="D2D3" lines="1_0"/> </person> <vehicle id="2_0" depart="triggered"> <route edges="E4E3 E3E2 E2E1 E1E0 E0D0 D0C0 C0B0 B0A0"/> </vehicle> <person id="2" depart="2.00"> <ride from="E4E3" to="B0A0" lines="2_0"/> </person> <vehicle id="3_0" depart="triggered"> <route edges="B1A1 A1B1 B1B0"/> </vehicle> <person id="3" depart="3.00"> <ride from="B1A1" to="B1B0" lines="3_0"/> </person> <vehicle id="4_0" depart="triggered"> <route edges="C2C3 C3D3 D3E3 E3E4"/> </vehicle> <person id="4" depart="4.00"> <ride from="C2C3" to="E3E4" lines="4_0"/> </person> <vehicle id="5_0" depart="triggered"> <route edges="C4B4 B4A4 A4A3 A3B3"/> </vehicle> <person id="5" depart="5.00"> <ride from="C4B4" to="A3B3" lines="5_0"/> </person> <vehicle id="6_0" depart="triggered"> <route edges="D2D3 D3D2 D2D1 D1C1 C1D1"/> </vehicle> <person id="6" depart="6.00"> <ride from="D2D3" to="C1D1" lines="6_0"/> </person> <vehicle id="7_0" depart="triggered"> <route edges="C3B3 B3C3 C3C2 C2C1"/> </vehicle> <person id="7" depart="7.00"> <ride from="C3B3" to="C2C1" lines="7_0"/> </person> <vehicle id="8_0" depart="triggered"> <route edges="C4D4 D4D3 D3D2 D2C2 C2B2 B2A2 A2B2"/> </vehicle> <person id="8" depart="8.00"> <ride from="C4D4" to="A2B2" lines="8_0"/> </person> <vehicle id="9_0" depart="triggered"> <route edges="D4D3 D3D2 D2D1 D1D2"/> </vehicle> <person id="9" depart="9.00"> <ride from="D4D3" to="D1D2" lines="9_0"/> </person> <vehicle id="10_0" depart="triggered"> <route edges="A3A4"/> </vehicle> <person id="10" depart="10.00"> <ride from="A3A4" to="A3A4" lines="10_0"/> </person> <vehicle id="11_0" depart="triggered"> <route edges="A2A3 A3B3 B3C3 C3C2 C2C1 C1C0 C0B0"/> </vehicle> <person id="11" depart="11.00"> <ride from="A2A3" to="C0B0" lines="11_0"/> </person> <vehicle id="12_0" depart="triggered"> <route edges="A4A3 A3A4 A4B4 B4C4 C4C3"/> </vehicle> <person id="12" depart="12.00"> <ride from="A4A3" to="C4C3" lines="12_0"/> </person> <vehicle id="13_0" depart="triggered"> <route edges="D0E0 E0E1 E1D1 D1C1 C1B1 B1A1 A1A2 A2A3"/> </vehicle> <person id="13" depart="13.00"> <ride from="D0E0" to="A2A3" lines="13_0"/> </person> <vehicle id="14_0" depart="triggered"> <route edges="C4C3 C3C2 C2B2 B2A2"/> </vehicle> <person id="14" depart="14.00"> <ride from="C4C3" to="B2A2" lines="14_0"/> </person> <vehicle id="15_0" depart="triggered"> <route edges="E1E2 E2E1 E1D1 D1C1 C1B1"/> </vehicle> <person id="15" depart="15.00"> <ride from="E1E2" to="C1B1" lines="15_0"/> </person> <vehicle id="16_0" depart="triggered"> <route edges="B2B1 B1C1 C1D1 D1E1 E1E0 E0D0"/> </vehicle> <person id="16" depart="16.00"> <ride from="B2B1" to="E0D0" lines="16_0"/> </person> <vehicle id="17_0" depart="triggered"> <route edges="A2B2 B2C2 C2D2 D2E2 E2E1 E1D1"/> </vehicle> <person id="17" depart="17.00"> <ride from="A2B2" to="E1D1" lines="17_0"/> </person> <vehicle id="18_0" depart="triggered"> <route edges="D3D2 D2C2 C2B2 B2B3"/> </vehicle> <person id="18" depart="18.00"> <ride from="D3D2" to="B2B3" lines="18_0"/> </person> <vehicle id="19_0" depart="triggered"> <route edges="D2D1 D1C1 C1C2 C2C3 C3C4 C4B4 B4A4 A4A3"/> </vehicle> <person id="19" depart="19.00"> <ride from="D2D1" to="A4A3" lines="19_0"/> </person> </routes>
_______________________________________________ sumo-user mailing list [email protected] To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
