Are there some functions could do the thing like that: Measure the shortest distance between the current position of the vehicle to the give the position which not on the route of vehicles?)
Regards! On Mon, Sep 3, 2018 at 10:24 AM Jakob Erdmann <namdre.s...@gmail.com> wrote: > > - getDistance() is an odometer and counts the distance driven so far > - getDrivingDistance returns the remaining distance to a point on the > vehicles route. If the given edge,pos are not on the vehicles route a very > large number (maxDouble) is returned to indicate error > - getDrivingDistance2D() works the same way as getDrivingDistance by first > converting the given x,y position to an edge,pos position. > > regards, > Jakob > > > 2018-09-03 17:02 GMT+02:00 Jane Cheung <cheung180...@gmail.com>: > >> Ei Ei Mon, >> Thanks in advance! >> Like the circumstance shown in the picture (attached), there are three >> functions about the "GETDISTANCE" >> 1) What's the difference between these functions: >> *getDistance(self, vehID) * >> *getDrivingDistance(self, vehID, edgeID, pos, laneIndex=0) * >> *getDrivingDistance2D(self, vehID, x, y) * >> >> 2) Like what shown in the attachment, >> The result returned by the function *getDrivingDistance2D(self, >> vehID, x, y)* is the length which colored green or the length which >> colored red? >> If the position A is not in the vehicle's route, the function could >> also return results. What does the result mean? >> >> On Mon, Sep 3, 2018 at 12:04 AM Ei Ei Mon <eieimonimce...@gmail.com> >> wrote: >> >>> Dear, >>> >>> May I know what is your problem so that we or Mr. Jacob can help you? >>> >>> with best regards, >>> >>> On Mon, Sep 3, 2018 at 9:14 AM Jane Cheung <cheung180...@gmail.com> >>> wrote: >>> >>>> >>>> >>>> >>>> EI EI Mon, thanks for your kindly reply! >>>> I have confused when I was using some command with Traci, where could I >>>> ask for help to deal with problems like that? >>>> >>>> On Sun, Sep 2, 2018 at 8:29 PM Ei Ei Mon <eieimonimce...@gmail.com> >>>> wrote: >>>> >>>>> Dear, >>>>> >>>>> You can learn from this link http://sumo.dlr.de/wiki/TraCI. >>>>> >>>>> >>>>> >>>>> On Mon, Sep 3, 2018 at 2:31 AM Jane Cheung <cheung180...@gmail.com> >>>>> wrote: >>>>> >>>>>> Dear all, >>>>>> I have some questions about the using and function of TRACI, could >>>>>> someone tell me where I could get help? >>>>>> >>>>>> Thanks for any kind help in advance! >>>>>> >>>>>> >>>>>> Best regards! >>>>>> >>>>>> Jane Cheung >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> sumo-user mailing list >>>>>> sumo-user@eclipse.org >>>>>> 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@eclipse.org >>>>> 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@eclipse.org >>>> 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@eclipse.org >>> 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@eclipse.org >> 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@eclipse.org > 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@eclipse.org To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/sumo-user