Mercurial > hg > nsaunier > traffic-intelligence
comparison python/moving.py @ 943:b1e8453c207c
work on motion prediction using motion patterns
| author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
|---|---|
| date | Wed, 19 Jul 2017 18:02:38 -0400 |
| parents | a2f3f3ca241e |
| children | 05d4302bf67e |
comparison
equal
deleted
inserted
replaced
| 942:ab13aaf41432 | 943:b1e8453c207c |
|---|---|
| 1228 def getVelocities(self): | 1228 def getVelocities(self): |
| 1229 return self.velocities | 1229 return self.velocities |
| 1230 | 1230 |
| 1231 def getUserType(self): | 1231 def getUserType(self): |
| 1232 return self.userType | 1232 return self.userType |
| 1233 | |
| 1234 def computeCumulativeDistances(self): | |
| 1235 self.positions.computeCumulativeDistances() | |
| 1233 | 1236 |
| 1234 def getCurvilinearPositions(self): | 1237 def getCurvilinearPositions(self): |
| 1235 if hasattr(self, 'curvilinearPositions'): | 1238 if hasattr(self, 'curvilinearPositions'): |
| 1236 return self.curvilinearPositions | 1239 return self.curvilinearPositions |
| 1237 else: | 1240 else: |
