comparison python/prediction.py @ 698:8d99a9e16644 dev

added clarification comments
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Fri, 17 Jul 2015 14:28:14 -0400
parents ae137e3b1990
children 4cc56ff82c3c
comparison
equal deleted inserted replaced
697:0421a5a0072c 698:8d99a9e16644
490 return predictedTrajectories 490 return predictedTrajectories
491 491
492 492
493 class CVDirectPredictionParameters(PredictionParameters): 493 class CVDirectPredictionParameters(PredictionParameters):
494 '''Prediction parameters of prediction at constant velocity 494 '''Prediction parameters of prediction at constant velocity
495 using direct computation of the intersecting point''' 495 using direct computation of the intersecting point
496 Warning: the computed time to collision may be higher than timeHorizon (not used)'''
496 497
497 def __init__(self): 498 def __init__(self):
498 PredictionParameters.__init__(self, 'constant velocity (direct computation)', None) 499 PredictionParameters.__init__(self, 'constant velocity (direct computation)', None)
499 500
500 def computeCrossingsCollisionsAtInstant(self, currentInstant, obj1, obj2, collisionDistanceThreshold, timeHorizon, computeCZ = False, debug = False, *kwargs): 501 def computeCrossingsCollisionsAtInstant(self, currentInstant, obj1, obj2, collisionDistanceThreshold, timeHorizon, computeCZ = False, debug = False, *kwargs):
546 547
547 return currentInstant, collisionPoints, crossingZones 548 return currentInstant, collisionPoints, crossingZones
548 549
549 class CVExactPredictionParameters(PredictionParameters): 550 class CVExactPredictionParameters(PredictionParameters):
550 '''Prediction parameters of prediction at constant velocity 551 '''Prediction parameters of prediction at constant velocity
551 using direct computation of the intersecting point (solving for the equation''' 552 using direct computation of the intersecting point (solving the equation)
553 Warning: the computed time to collision may be higher than timeHorizon (not used)'''
552 554
553 def __init__(self): 555 def __init__(self):
554 PredictionParameters.__init__(self, 'constant velocity (direct exact computation)', None) 556 PredictionParameters.__init__(self, 'constant velocity (direct exact computation)', None)
555 557
556 def computeCrossingsCollisionsAtInstant(self, currentInstant, obj1, obj2, collisionDistanceThreshold, timeHorizon, computeCZ = False, debug = False): 558 def computeCrossingsCollisionsAtInstant(self, currentInstant, obj1, obj2, collisionDistanceThreshold, timeHorizon, computeCZ = False, debug = False):