Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] [EXT] AW: [new user] - my train is not picking up the container at the container stop

Hi Hector,

 

OK I found the problem after staring for too long at other parts of your scenario:

You didn't define the container capacity of your train. Its default value is 0, that's why it didn't accept to load containers. I have added a note to the container summary page in the docs. Before the attribute was described only on the vehicle type page.

 

So please use something like this:

<vType id="FtLewis-Intermediate_train" vClass="rail" containerCapacity="3"/>

 

Best regards

Mirko

 

 

 

 

-----Original-Nachricht-----

Betreff: RE: [EXT] AW: [sumo-user] [new user] - my train is not picking up the container at the container stop

Datum: 2023-12-18T15:16:44+0100

Von: "Hector A Martinez" <hmartinez@xxxxxxxxx>

An: "Mirko Barthauer" <m.barthauer@xxxxxxxxxxx>

 

 

 

Hi Mirko,

 

Yes. I see the container sitting in the containerStop way before the train takes off and then the train takes off without the container.

 

Attached are the main files for the prototype I am working on.

 

Thanks,

 

--Hector

 

From: Mirko Barthauer <m.barthauer@xxxxxxxxxxx>
Sent: Monday, December 18, 2023 7:20 AM
To: Hector A Martinez <hmartinez@xxxxxxxxx>
Cc: Sumo project User discussions <sumo-user@xxxxxxxxxxx>
Subject: AW: [EXT] AW: [sumo-user] [new user] - my train is not picking up the container at the container stop

 

Hi Hector, do you watch the simulation in sumo-gui? Where is the container and where is the train at the time you want the loading to happen? I recreated a similar simulation and didn't encounter problems. Please take care that tranship needs

 

Hi Hector,

 

do you watch the simulation in sumo-gui? Where is the container and where is the train at the time you want the loading to happen? I recreated a similar simulation and didn't encounter problems. Please take care that tranship needs time (defined implicitly by the euclidean distance between origin/destination and the speed which is v=5km/h by default). So if the container arrives after the train has passed, this might explain your problem.

If you don't mind, you can also attach a minimum example scenario and I can look at it directly.

 

 

Best regards

Mirko

 

 

 

-----Original-Nachricht-----

Betreff: RE: [EXT] AW: [sumo-user] [new user] - my train is not picking up the container at the container stop

Datum: 2023-12-15T23:29:11+0100

Von: "Hector A Martinez" <hmartinez@xxxxxxxxx>

An: "Mirko Barthauer" <m.barthauer@xxxxxxxxxxx>

 

 

 

Thank you Mirko for your message!

 

I reviewed the documentation and I still don’t know why my Train does not pick up my container at the stop.

 

Would you be kind to look at this code and let me know what I am doing wrong please? I am using containerFlow and the train refuses to pick up the container.

<?xml version="1.0" encoding="UTF-8"?>

<routes xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance

xsi:noNamespaceSchemaLocation=http://sumo.dlr.de/xsd/routes_file.xsd>

    <!-- train definitions -->

    <vType id="FtLewis-Intermediate_train" vClass="rail"/>

    <vType id="Intermediate-TacomaSPOE_train" vClass="rail"/>

 

    <!-- trip definitions represents train line FtLewis to Intermediate Stop-->    

    <trip id="trip1" type="FtLewis-Intermediate_train" depart="0" departLane="best" departSpeed="max"

    from="51231273#0" to="-89385185">

        <stop containerStop="FtLewis-Stop" duration="80"/>

        <stop containerStop="Inter-WE-NearTacoma-Stop" duration="80"/>

    </trip>

   

    <!-- container that needs transport -->

    <containerFlow id="container0" begin="0" end="500" number="1" color="255,0,0">

        <tranship from="51231273#0" containerStop="FtLewis-Stop" departPos="150"/>

        <transport containerStop="Inter-WE-NearTacoma-Stop" lines="trip1"/>  <!-- FtLewisToIntermediate -->

        <tranship containerStop="Inter-EW-NearTacoma-Stop" arrivalPos="575"/>  <!-- move container between two stops at the Stop -->

        <transport containerStop="TacomaSPOE-Stop" lines="trip2"/>   <!-- IntermediateToTacoma -->

        <stop lane="89409008#2_0" duration="50"/> <!-- end stop at Intermediate-NearTacoma -->

    </containerFlow>

 

    <!-- trip definitions represents train line Intermediate to Tacoma Stop-->    

    <trip id="trip2" type="Intermediate-TacomaSPOE_train" depart="700" departLane="best" departSpeed="max"

    from="89385179#0" to="89409008#2">

        <stop containerStop="Inter-EW-NearTacoma-Stop" duration="80"/>

        <stop containerStop="TacomaSPOE-Stop" duration="80"/>

    </trip>  

</routes>

 

Thanks,

 

--H

 

From: Mirko Barthauer <m.barthauer@xxxxxxxxxxx>
Sent: Tuesday, December 12, 2023 11:30 AM
To: Sumo project User discussions <sumo-user@xxxxxxxxxxx>
Cc: Hector A Martinez <hmartinez@xxxxxxxxx>
Subject: [EXT] AW: [sumo-user] [new user] - my train is not picking up the container at the container stop

 

Dear Hector, you can find the documentation about containers here. There are some examples using containerFlow definitions in our test suite to download, e. g. this one. It is important that you comply with the rules for transports given in

 

Dear Hector,

 

you can find the documentation about containers here. There are some examples using containerFlow definitions in our test suite to download, e.g. this one. It is important that you comply with the rules for transports given in the documentation.

 

Best regards

Mirko

 

 

 

 

-----Original-Nachricht-----

Betreff: [sumo-user] [new user] - my train is not picking up the container at the container stop

Datum: 2023-12-12T15:01:00+0100

Von: "Hector A Martinez via sumo-user" <sumo-user@xxxxxxxxxxx>

An: "sumo-user@xxxxxxxxxxx" <sumo-user@xxxxxxxxxxx>

 

 

 

Dear SUMO experts,

 

I am having problems with my containerFlow code in my simulation and I cant figure out what is wrong from the online documentation. I am testing logistics scenario where the train picks up Containers from a Stop and drops it at the destination stop.

 

My rail is not picking up the container from my containerStop. Can you please point me to the document/blog that may help me fix this?

 

Thanks in advance,

 

Hector A. Martinez, P.E.

Transportation Researcher, Resilient Transportation and Logistics LTM

MITRE | National Security Engineering Center

813.207.5365

 

 

 

 

 



Back to the top