(self, points=None, speed=0.4)
| 40 | |
| 41 | class MotionTrack(object): |
| 42 | def __init__(self, points=None, speed=0.4): |
| 43 | super(MotionTrack, self).__init__() |
| 44 | self.speed = speed |
| 45 | self.timestamp = 0 |
| 46 | self.event_points = [] # [ts, (x, y), contact_id], timestamp as arrival time |
| 47 | |
| 48 | if points: |
| 49 | for p in points: |
| 50 | self.move(p) |
| 51 | |
| 52 | @property |
| 53 | def last_point(self): |