Hello, traci4matlab does not yet support all parts of the TraCI API. You can look inside the folder umo/tools/contributed/traci4matlab/+traci/+vehicle to see which of the vehicle functions are currently implemented. If you need a particular function, ask Andres, or better write it yourself and send him a patch so he can add it.
regards, Jakob PS: to get the current vehicle acceleration you need to record the speed from the previous step and compare with the speed from the current step. 2017-08-13 17:50 GMT+02:00 Selva Ganesha via sumo-user < [email protected]>: > Good day, > > I've been running a few of traci's functions to obtain data, however > traci.vehicle.getDistance() does not work. The attached picture shows the > error I obtain from Matlab. > > When it reaches this line of the code, SUMO freezes and has to be shut down > via the task manager. Please note that traci.vehicle.getDistance() was not > available in the traci_test2.m file and I found it through the SUMO wiki. > > Is this because this function no longer works? Is there an alternative > method to get the distance of the vehicle? I hope to monitor the distance > the vehicle covers and the general distance from the first edge until its > last edge via Matlab. > > Appreciate the helping hand~ > > Cheers, > G > > P.S. A bonus question, is there a way to monitor the acceleration and > deceleration of the vehicle? Both traci.vehicle.getAccel() and > traci.vehicle.getDecel() seem to provide only the maximum values. Does it > require division of the instantaneous speed value against time or > differentiate the speed curve to obtain the acceleration as an alternative > method? > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > sumo-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/sumo-user > > ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ sumo-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sumo-user
