Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] vTypeDistribution for pedestrian

Adding type information to personinfo is a good idea (https://github.com/eclipse/sumo/issues/4695).
However, something else must be going on in your scenario because for me the types from the distribution are shown as expected in the gui.
The usage of the types should be visible from the trip-info already when looking at the maxSpeed value.
Can you create a minimal failing example?

Am Do., 11. Okt. 2018 um 10:57 Uhr schrieb Lara CODECA <lara.codeca@xxxxxxxxxx>:
Hello Jakob,

my definition are similar to this:

<person id="pedestrian_1-1-pt_1238" type="pedestrian" depart="32921">
        <walk edges="-152825#1 153165 -152872#2 -152872#1 -152872#0" busStop="131106"/>
        <ride busStop="131123" lines="3:Otto" intended="bus_3:Otto.14" depart="33145.0"/>
        <walk edges="152947#2 152816#10" busStop="131112"/>
        <ride busStop="131062" lines="2:Monaco" intended="bus_2:Monaco.15" depart="33296.0"/>
        <walk edges="152704#1 152690#2 152690#1 152690#0 -152652#0 -152679#5 -152679#4" busStop="131126"/>
        <ride busStop="131083" lines="5:Larvotto" intended="bus_5:Larvotto.15" depart="33842.0"/>
        <walk edges="152536#7 152348#0 152462 -152461#0"/>
</person>

Cheers,
Lara

On Thu, 11 Oct 2018 10:48:31 +0200
Jakob Erdmann <namdre.sumo@xxxxxxxxx> wrote:

> What do your <person> definitions look like?
>
> Am Do., 11. Okt. 2018 um 10:46 Uhr schrieb Lara CODECA <
> lara.codeca@xxxxxxxxxx>: 
>
> > Dear All,
> >
> > I'm trying to retrieve pedestrian info from the tripinfo file.
> >
> > I defined my pedestrian with:
> > <vTypeDistribution id="pedestrian">
> >     <vType vClass="pedestrian"   id="slowpedestrian"  maxSpeed="1.0"
> > latAlignment="compact" probability=".33"/>
> >     <vType vClass="pedestrian"   id="avgpedestrian"   maxSpeed="1.5"
> > latAlignment="compact" probability=".33"/>
> >     <vType vClass="pedestrian"   id="fastpedestrian"  maxSpeed="2.0"
> > latAlignment="compact" probability=".33"/>
> > </vTypeDistribution>
> >
> > In tripinfo I have a lot of entry such as:
> > <personinfo id="pedestrian_1-1-pt_1238" depart="32921.00">
> >     <walk depart="32921.00" departPos="0.00" arrival="33172.00"
> > arrivalPos="69.83" duration="251.00" routeLength="275.64" timeLoss="26.27" 
> > maxSpeed="1.23"/> 
> >     <ride waitingTime="210.00" vehicle="bus_3:Otto.14" depart="33382.00"
> > arrival="33429.50" arrivalPos="52.85" duration="47.50" 
> > routeLength="275.16"/> 
> >     <walk depart="33429.50" departPos="52.85" arrival="33467.75"
> > arrivalPos="88.37" duration="38.25" routeLength="39.08" timeLoss="6.39" 
> > maxSpeed="1.23"/> 
> >     <ride waitingTime="26.50" vehicle="bus_2:Monaco.15" depart="33494.25"
> > arrival="33942.50" arrivalPos="40.87" duration="448.25" 
> > routeLength="918.60"/> 
> >     <walk depart="33942.50" departPos="40.87" arrival="34254.00"
> > arrivalPos="12.50" duration="311.50" routeLength="320.66" timeLoss="50.06" 
> > maxSpeed="1.23"/> 
> >     <ride waitingTime="998.00" vehicle="bus_5:Larvotto.16"
> > depart="35252.00" arrival="35872.50" arrivalPos="85.49" duration="620.50" 
> > routeLength="1537.79"/> 
> >     <walk depart="35872.50" departPos="85.49" arrival="36283.75"
> > arrivalPos="104.97" duration="411.25" routeLength="451.59" timeLoss="43.06" 
> > maxSpeed="1.23"/> 
> > </personinfo>
> >
> > As you can see, there is not info on the person type.
> > If I run my sim using the gui and I ask for type parameter of a person,
> > the type is DEFAULT_PEDTYPE.
> >
> > Am I doing it wrong or vTypeDistribution for people are not implemented?
> > Or maybe is just the information that is not stored in the tripinfo?
> >
> > Thanks in advance for the help.
> >
> > Regards,
> > Lara
> >
> > --
> > Lara CODECA
> > Postdoc
> > Tel : 04.93.00.81.51
> >
> > EURECOM
> > Campus SophiaTech
> > http://www.eurecom.fr/
> > _______________________________________________
> > 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
> > 



--
Lara CODECA
Postdoc
Tel : 04.93.00.81.51

EURECOM
Campus SophiaTech
http://www.eurecom.fr/
_______________________________________________
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