Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] How to show travelling time/Co2 emission on moving vehicles?

Thanks for your valuable answer jakob.

I am using Traci. 

Is there anyway to show both the trip info file to plot graph/some visualization?

On Fri 26 Apr, 2019, 7:07 PM , <sumo-user-request@xxxxxxxxxxx> wrote:
Send sumo-user mailing list submissions to
        sumo-user@xxxxxxxxxxx

To subscribe or unsubscribe via the World Wide Web, visit
        https://www.eclipse.org/mailman/listinfo/sumo-user
or, via email, send a message with subject or body 'help' to
        sumo-user-request@xxxxxxxxxxx

You can reach the person managing the list at
        sumo-user-owner@xxxxxxxxxxx

When replying, please edit your Subject line so it is more specific
than "Re: Contents of sumo-user digest..."


Today's Topics:

   1. How to show travelling time/Co2 emission on moving        vehicles?
      (Bijal)
   2. Re: libsumo using vehicle.isAtBusStop (Jakob Erdmann)
   3. Re: How to show travelling time/Co2 emission on moving
      vehicles? (Jakob Erdmann)


----------------------------------------------------------------------

Message: 1
Date: Fri, 26 Apr 2019 18:24:01 +0530
From: Bijal <bijal.varia88@xxxxxxxxx>
To: Sumo project User discussions <sumo-user@xxxxxxxxxxx>
Subject: [sumo-user] How to show travelling time/Co2 emission on
        moving  vehicles?
Message-ID:
        <CABbss+gBMKc+vJLgTtWFToYSV_Bh27K6-Tae+D2tN6mvWSq0OA@xxxxxxxxxxxxxx>
Content-Type: text/plain; charset="utf-8"

Dear listing,

I want to compare my algorithm with the existing Dijkstra shortest path
finding algorithm.

Parameters :
1. Total travel time
2. CO2 emission

(Please Suggest if we can compare on other parameters)

I want to either get this value or show it on moving vehicles.

Please help me on how to get it?

Bijal Varia

On Wed 17 Apr, 2019, 9:30 PM , <sumo-user-request@xxxxxxxxxxx> wrote:

> Send sumo-user mailing list submissions to
>         sumo-user@xxxxxxxxxxx
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         https://www.eclipse.org/mailman/listinfo/sumo-user
> or, via email, send a message with subject or body 'help' to
>         sumo-user-request@xxxxxxxxxxx
>
> You can reach the person managing the list at
>         sumo-user-owner@xxxxxxxxxxx
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of sumo-user digest..."
>
>
> Today's Topics:
>
>    1. Re: Documentation is wrong (I think) about CACC parameter
>       names (Michael Behrisch)
>    2. cannot generate right traffic flow output through
>       flowrouter.py (kathy)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 17 Apr 2019 13:37:38 +0200
> From: Michael Behrisch <oss@xxxxxxxxxxx>
> To: Sumo project User discussions <sumo-user@xxxxxxxxxxx>
> Subject: Re: [sumo-user] Documentation is wrong (I think) about CACC
>         parameter names
> Message-ID: <a76c5630626c3e5b55d20940f54a8c7a@xxxxxxxxxxx>
> Content-Type: text/plain; charset=US-ASCII; format=flowed
>
> Hi Fredrik,
> are you referring to this document:
>
> https://sumo.dlr.de/wiki/Definition_of_Vehicles,_Vehicle_Types,_and_Routes#Car-Following_Models
> ?
> As far as I can see it is correct.
>
> Best regards,
> Michael
>
> Am 2019-04-16 12:39, schrieb Fredrik Nilsson:
> > Hi,
> >
> > I just wanted to say that I think I found an error in the
> > documentation. The parameter names for CACC don't work but if I input
> > the names for the ACC parameters instead they work for CACC.
> >
> > BR,
> > Fredrik
> >
> > _______________________________________________
> > sumo-user mailing list
> > sumo-user@xxxxxxxxxxx
> > To change your delivery options, retrieve your password, or
> > unsubscribe from this list, visit
> > https://www.eclipse.org/mailman/listinfo/sumo-user
>
>
> ------------------------------
>
> Message: 2
> Date: Wed, 17 Apr 2019 06:08:01 -0700 (MST)
> From: kathy <k.li@xxxxxxxx>
> To: sumo-user@xxxxxxxxxxx
> Subject: [sumo-user] cannot generate right traffic flow output through
>         flowrouter.py
> Message-ID: <1555506481322-0.post@xxxxxxxxxxxxx>
> Content-Type: text/plain; charset=us-ascii
>
> Dear SUMO-community,
>
> I am working on generating a simulation with vehicle flow data in sumo.The
> area is a region of a city, and the flow data of main streets in 24h are
> given. The road network of this area I have exported from Openstreetmap and
> converted to SUMO net file. From the observation data I defined about one
> hundred detectors and their flows in detectors.xml and flows.txt, it
> includes 7 source detectors and 8 sink detectors. The running of
> flowrouter.py has no problem, and I can also run the simulation in
> SUMO-GUI,
> but it seems that the traffic flow is not right, I run the
> flowFromRoutes.py
> to compare the output flow with the input flow, it shows :
> det_003;176.0;176.0;0.0
> det_003_opp;170.0;170.0;0.0
> det_004;36.0;36.0;0.0
> #;avgRouteFlow;avgDetFlow;avgDev;RMSE;RMSPE;GEH;GEH%
> #;127.33333333333333;127.33333333333333;0.0;0.0;0.0;0.0;100.0
>
> and this is the result of running flowrouter.py:
> Reading net
> 4583 edges read
> Reading detectors
> Loaded 7 sources and 8 sinks from detector file. Added 0 sources and 0
> sinks
> from the network
> Reading flows
> Calculating routes
> 7 sources, 7 unlimited
> 8 sinks, 7 unlimited
> Writing 248 vehicles from 3 sources between time 0 and 3600
>   unused sources: -161678034#0 27920078#0 32923867#0 64464430
>
> I tried to delete the type definition in detectors.xml and use
> --revalidate-detectors, the result changed a little bit, but still like
> this, very few routes and flows are generted out, and the output flow is
> too
> much different as the input. I uploaded the files and one diagram for the
> detectors. Could anyone help me to get through this please? Many thanksin
> advance!
>
> innenstadt_ignore_forum.7z
> <
> http://sumo-user-mailing-list.90755.n8.nabble.com/file/t159/innenstadt_ignore_forum.7z>
>
> best regards,
>
> Kathy
>
>
>
>
> --
> Sent from: http://sumo-user-mailing-list.90755.n8.nabble.com/
>
>
> ------------------------------
>
> _______________________________________________
> sumo-user mailing list
> sumo-user@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe
> from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
>
> End of sumo-user Digest, Vol 22, Issue 51
> *****************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.eclipse.org/mailman/private/sumo-user/attachments/20190426/42146bd1/attachment.html>

------------------------------

Message: 2
Date: Fri, 26 Apr 2019 15:35:30 +0200
From: Jakob Erdmann <namdre.sumo@xxxxxxxxx>
To: Sumo project User discussions <sumo-user@xxxxxxxxxxx>
Subject: Re: [sumo-user] libsumo using vehicle.isAtBusStop
Message-ID:
        <CAMbUcbyi13GQL8DOE+OP81PMPcYw0z7E1DvFxw2soRJHJFaXBQ@xxxxxxxxxxxxxx>
Content-Type: text/plain; charset="utf-8"

isAtBusStop is not part of the TraCI API but rather a convenience function
provided by the python client.
You can replace it with (getStopState(vehID) % 16 == 16)

Am Fr., 26. Apr. 2019 um 14:51 Uhr schrieb Patrick Goldschmidt <
Patrick.Goldschmidt@xxxxxxxxxxxxxxxx>:

> Dear SUMO-Community,
>
>
>
> I switched from traci to libsumo and now it looks like that
> vehicle.isAtBusStop() is not working anymore.
>
>
>
> I get an error: type object ?vehicle? has no attribute ?isAtBusStop?
>
>
>
> Here is what I do:
>
> *import libsumo as traci*
>
> *vehicle_list = traci.vehicle.getIDList()*
>
>
>
> *        for veh in vehicle_list:*
>
>
>
> *            if traci.vehicle.isAtBusStop(veh):*
>
>                               ?
>
>
>
> Libsumo does not support subscription. Is isAtBusStop a ?hidden?
> subscription maybe?
>
>
>
> Thanks
>
>
>
> Patrick Goldschmidt
>
>
>
> ------------------------------
>
> Pflichtangaben anzeigen
> <http://www.deutschebahn.com/pflichtangaben/20190408>
>
> N?here Informationen zur Datenverarbeitung im DB-Konzern finden Sie hier:
> http://www.deutschebahn.com/de/konzern/datenschutz
> _______________________________________________
> sumo-user mailing list
> sumo-user@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe
> from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.eclipse.org/mailman/private/sumo-user/attachments/20190426/c02bd3f7/attachment.html>

------------------------------

Message: 3
Date: Fri, 26 Apr 2019 15:37:15 +0200
From: Jakob Erdmann <namdre.sumo@xxxxxxxxx>
To: Sumo project User discussions <sumo-user@xxxxxxxxxxx>
Subject: Re: [sumo-user] How to show travelling time/Co2 emission on
        moving  vehicles?
Message-ID:
        <CAMbUcbz2inAXXb7taTDycr9-Me6CciC8WJkaHN=Hwm5gMPubGQ@xxxxxxxxxxxxxx>
Content-Type: text/plain; charset="utf-8"

I suggest using tripinfo output and comparing both versions using
tools/output/tripinfoDiff.py
If you run sumo with option --device.emissions.probability 1
then tripinfo output will also contain emission values.

Am Fr., 26. Apr. 2019 um 14:54 Uhr schrieb Bijal <bijal.varia88@xxxxxxxxx>:

> Dear listing,
>
> I want to compare my algorithm with the existing Dijkstra shortest path
> finding algorithm.
>
> Parameters :
> 1. Total travel time
> 2. CO2 emission
>
> (Please Suggest if we can compare on other parameters)
>
> I want to either get this value or show it on moving vehicles.
>
> Please help me on how to get it?
>
> Bijal Varia
>
> On Wed 17 Apr, 2019, 9:30 PM , <sumo-user-request@xxxxxxxxxxx> wrote:
>
>> Send sumo-user mailing list submissions to
>>         sumo-user@xxxxxxxxxxx
>>
>> To subscribe or unsubscribe via the World Wide Web, visit
>>         https://www.eclipse.org/mailman/listinfo/sumo-user
>> or, via email, send a message with subject or body 'help' to
>>         sumo-user-request@xxxxxxxxxxx
>>
>> You can reach the person managing the list at
>>         sumo-user-owner@xxxxxxxxxxx
>>
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of sumo-user digest..."
>>
>>
>> Today's Topics:
>>
>>    1. Re: Documentation is wrong (I think) about CACC parameter
>>       names (Michael Behrisch)
>>    2. cannot generate right traffic flow output through
>>       flowrouter.py (kathy)
>>
>>
>> ----------------------------------------------------------------------
>>
>> Message: 1
>> Date: Wed, 17 Apr 2019 13:37:38 +0200
>> From: Michael Behrisch <oss@xxxxxxxxxxx>
>> To: Sumo project User discussions <sumo-user@xxxxxxxxxxx>
>> Subject: Re: [sumo-user] Documentation is wrong (I think) about CACC
>>         parameter names
>> Message-ID: <a76c5630626c3e5b55d20940f54a8c7a@xxxxxxxxxxx>
>> Content-Type: text/plain; charset=US-ASCII; format=flowed
>>
>> Hi Fredrik,
>> are you referring to this document:
>>
>> https://sumo.dlr.de/wiki/Definition_of_Vehicles,_Vehicle_Types,_and_Routes#Car-Following_Models
>> ?
>> As far as I can see it is correct.
>>
>> Best regards,
>> Michael
>>
>> Am 2019-04-16 12:39, schrieb Fredrik Nilsson:
>> > Hi,
>> >
>> > I just wanted to say that I think I found an error in the
>> > documentation. The parameter names for CACC don't work but if I input
>> > the names for the ACC parameters instead they work for CACC.
>> >
>> > BR,
>> > Fredrik
>> >
>> > _______________________________________________
>> > sumo-user mailing list
>> > sumo-user@xxxxxxxxxxx
>> > To change your delivery options, retrieve your password, or
>> > unsubscribe from this list, visit
>> > https://www.eclipse.org/mailman/listinfo/sumo-user
>>
>>
>> ------------------------------
>>
>> Message: 2
>> Date: Wed, 17 Apr 2019 06:08:01 -0700 (MST)
>> From: kathy <k.li@xxxxxxxx>
>> To: sumo-user@xxxxxxxxxxx
>> Subject: [sumo-user] cannot generate right traffic flow output through
>>         flowrouter.py
>> Message-ID: <1555506481322-0.post@xxxxxxxxxxxxx>
>> Content-Type: text/plain; charset=us-ascii
>>
>> Dear SUMO-community,
>>
>> I am working on generating a simulation with vehicle flow data in sumo.The
>> area is a region of a city, and the flow data of main streets in 24h are
>> given. The road network of this area I have exported from Openstreetmap
>> and
>> converted to SUMO net file. From the observation data I defined about one
>> hundred detectors and their flows in detectors.xml and flows.txt, it
>> includes 7 source detectors and 8 sink detectors. The running of
>> flowrouter.py has no problem, and I can also run the simulation in
>> SUMO-GUI,
>> but it seems that the traffic flow is not right, I run the
>> flowFromRoutes.py
>> to compare the output flow with the input flow, it shows :
>> det_003;176.0;176.0;0.0
>> det_003_opp;170.0;170.0;0.0
>> det_004;36.0;36.0;0.0
>> #;avgRouteFlow;avgDetFlow;avgDev;RMSE;RMSPE;GEH;GEH%
>> #;127.33333333333333;127.33333333333333;0.0;0.0;0.0;0.0;100.0
>>
>> and this is the result of running flowrouter.py:
>> Reading net
>> 4583 edges read
>> Reading detectors
>> Loaded 7 sources and 8 sinks from detector file. Added 0 sources and 0
>> sinks
>> from the network
>> Reading flows
>> Calculating routes
>> 7 sources, 7 unlimited
>> 8 sinks, 7 unlimited
>> Writing 248 vehicles from 3 sources between time 0 and 3600
>>   unused sources: -161678034#0 27920078#0 32923867#0 64464430
>>
>> I tried to delete the type definition in detectors.xml and use
>> --revalidate-detectors, the result changed a little bit, but still like
>> this, very few routes and flows are generted out, and the output flow is
>> too
>> much different as the input. I uploaded the files and one diagram for the
>> detectors. Could anyone help me to get through this please? Many thanksin
>> advance!
>>
>> innenstadt_ignore_forum.7z
>> <
>> http://sumo-user-mailing-list.90755.n8.nabble.com/file/t159/innenstadt_ignore_forum.7z>
>>
>> best regards,
>>
>> Kathy
>>
>>
>>
>>
>> --
>> Sent from: http://sumo-user-mailing-list.90755.n8.nabble.com/
>>
>>
>> ------------------------------
>>
>> _______________________________________________
>> sumo-user mailing list
>> sumo-user@xxxxxxxxxxx
>> To change your delivery options, retrieve your password, or unsubscribe
>> from this list, visit
>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>
>>
>> End of sumo-user Digest, Vol 22, Issue 51
>> *****************************************
>>
> _______________________________________________
> sumo-user mailing list
> sumo-user@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe
> from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.eclipse.org/mailman/private/sumo-user/attachments/20190426/debfdb48/attachment.html>

------------------------------

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


End of sumo-user Digest, Vol 22, Issue 74
*****************************************

Back to the top