Hello, unfortunately the battery model is not yet accessible in this way. We plan to fix this for the next release (scheduled for February). regards, Jakob
2017-01-09 20:22 GMT+01:00 Li Yan <[email protected]>: > Dear SUMO contributors, > > > > I'm recently using the electric vehicle model included in SUMO 0.28.0, but > encountered some problems. First, I've defined the battery devices, etc. in > <vType> for each vehicle, and the positions of charging stations as > specified in http://sumo.dlr.de/wiki/Models/Electric. Then, I want to know > the vehicles' electricity consumed in each step through > traci.vehicle.getElectricityConsumption (vehID), but all vehicles return > 0. > However, the output file "battery.summary.xml" records the change of > battery > content, so the model is working. It seems the function > traci.vehicle.getElectricityConsumption (vehID) is not actually working > yet. > Is there any way to dynamically access the vehicle battery status when the > simulation is running, or am I using it mistakenly? > > > > Thank you and wish you have a nice day! > > > > Best regards, > > Li > > > > Li Yan, Ph.D. candidate > > Department of Computer Science > > University of Virginia > > Personal website: <http://www.people.virginia.edu/~ly4ss/> > http://www.people.virginia.edu/~ly4ss/ > > > > ------------------------------------------------------------ > ------------------ > Developer Access Program for Intel Xeon Phi Processors > Access to Intel Xeon Phi processor-based developer platforms. > With one year of Intel Parallel Studio XE. > Training and support from Colfax. > Order your platform today. http://sdm.link/xeonphi > _______________________________________________ > sumo-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/sumo-user > ------------------------------------------------------------------------------ Developer Access Program for Intel Xeon Phi Processors Access to Intel Xeon Phi processor-based developer platforms. With one year of Intel Parallel Studio XE. Training and support from Colfax. Order your platform today. http://sdm.link/xeonphi _______________________________________________ sumo-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sumo-user
