Hi,

have you tried this?
https://sumo.dlr.de/docs/Tools/Trip.html#automatically_generating_a_vehicle_type

„Automatically generating a vehicle type
By setting the option --vehicle-class a vehicle type definition that specifies 
vehicle class will be added to the output files. I.e.
randomTrips.py --vehicle-class bus (but taxi in your case)”

I’m sorry, but I still don’t understand why you keep using taxi device if you 
already defined all routes for vehicles and persons.

Regards,
Giuliana

From: [email protected] [mailto:[email protected]] On 
Behalf Of Tonmoy Das
Sent: Donnerstag, 16. Juli 2020 13:32
To: Sumo project User discussions
Subject: Re: [sumo-user] Disconnected plan for person "0"

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]<mailto:[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]> 
[mailto:[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]<mailto:[email protected]>> wrote:
Hi Tomoy,

Happy to help ☺
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]> 
[mailto:[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]<mailto:[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]> 
[mailto:[email protected]<mailto:[email protected]>] On 
Behalf Of Tonmoy Das
Sent: Montag, 13. Juli 2020 19:26
To: [email protected]<mailto:[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]<mailto:[email protected]>
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
[email protected]<mailto:[email protected]>
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
[email protected]<mailto:[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

Reply via email to