Mercurial Hosting > traffic-intelligence
diff python/prediction.py @ 985:668a85c963c3
work on processing and managing large video datasets
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Tue, 06 Mar 2018 22:44:33 -0500 |
parents | d6c1c05d11f5 |
children | f026ce2af637 |
line wrap: on
line diff
--- a/python/prediction.py Tue Mar 06 08:26:13 2018 -0500 +++ b/python/prediction.py Tue Mar 06 22:44:33 2018 -0500 @@ -480,7 +480,7 @@ p1 = obj1.getPositionAtInstant(currentInstant) p2 = obj2.getPositionAtInstant(currentInstant) if (p1-p2).norm2() <= collisionDistanceThreshold: - collisionPoints = [SafetyPoint((p1+p1)*0.5, 1., 0.)] + collisionPoints = [SafetyPoint((p1+p2)*0.5, 1., 0.)] else: v1 = obj1.getVelocityAtInstant(currentInstant) v2 = obj2.getVelocityAtInstant(currentInstant)