Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Trip duration looks incomplete?

Hi Jakob,

thanks for your reply. 

Actually, as you can see the arrivalPos in the trip info output is actually 495.25, not 499.99 nor 500.0. I assumed this is because when creating the network with NETEDIT, the shape of the intersection has a width of 4.75 from the center of the intersection, so the actual street is 500 - 4.75 = 495.25. I think this is what I should expect and looks fine to me.

Anyway, is there any workaround for this mismatch? I guess I could make the street longer by 0.1, but then it would also be lengthened on the entry lane of that street. Is it possible to make the exit lanes 0.1 longer than the entry lanes? Or is there a way to get rid of that 0.1 slack otherwise?

On Thu, Aug 30, 2018 at 5:48 PM Jakob Erdmann <namdre.sumo@xxxxxxxxx> wrote:
Hello,
There is a bit of slack (0.1m) in the check that tests for vehicle arrival.
Thus, the vehicle actually arrives at position 499.9 on the final edge.
In version 0.32.0 the arrivalPos is nevertheless given as 500.
If it's different in your case this could be because of the size of the junction between the two edges (it shortes the edge lengths by the distance driven across the junction itself).

The routeLength output is also computed based on the assumption of exact arrival which explains the mismatch.
you are the first to notice this (-:

regards,
Jakob

2018-08-30 17:13 GMT+02:00 Andres O. Vela <andresovela@xxxxxxxxx>:
Hello,

I'm trying to understand the duration values I'm getting in the trip info output.

I have very simple network where two streets of length 500, and I created a route to go from one street to the other. The route length output in the trip info is 1000.0 as expected. I am simulating a single vehicle going through this route with max speed = 10.0.

My issue is that I expect the trip duration to be 100.0, but instead I am getting a duration of 99.991.

See output for reference:

<tripinfo id="v0" depart="0.000" departLane="inW_0" departPos="0.000" departSpeed="10.000" departDelay="0.000" arrival="99.991" arrivalLane="outE_0" arrivalPos="495.250" arrivalSpeed="10.000" duration="99.991" routeLength="1000.000" waitSteps="0" timeLoss="0.000" rerouteNo="0" devices="tripinfo_v0" vType="A" speedFactor="1.000" vaporized=""/>

I checked the amitran output and the vehicle has a speed of 10.0 and acceleration 0 in every single step of the simulation. So I'm guessing it's not because of a change in speed.

I am running the simulation with step-length = 0.001. Why am I seeing this behavior?

Thanks in advance for your help! I'm new here, so please excuse me if the question is trivial.

Regards,
Andres Oliva

_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user


_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user

Back to the top