- 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 <[email protected]>:

> 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 <[email protected]>
> 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 <[email protected]>
>> 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 <[email protected]>
>>> 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 <[email protected]>
>>>> 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
>>>>> [email protected]
>>>>> 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
>>>> [email protected]
>>>> 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
>>> [email protected]
>>> 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
>> [email protected]
>> 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
> [email protected]
> 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
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user

Reply via email to