MCPcopy
hub / github.com/AirtestProject/Poco / __init__

Method __init__

poco/utils/track.py:42–50  ·  view source on GitHub ↗
(self, points=None, speed=0.4)

Source from the content-addressed store, hash-verified

40
41class 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):

Callers 2

__init__Method · 0.45
__init__Method · 0.45

Calls 1

moveMethod · 0.95

Tested by

no test coverage detected