-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy patharm.py
45 lines (33 loc) · 982 Bytes
/
arm.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# ARM OBJECT
class Arm:
def __init__(self, name, home, position, destination, velocity, color='orange'):
self.name = name
self.home = home
self.vel = velocity
self.pos = position
self.dest = destination
self.vel = velocity
self.color = color
self.home_color = color
def get_name(self):
return self.name
def get_home(self):
return self.home
def get_position(self):
return self.pos
def set_position(self, position):
self.pos = position
def get_destination(self):
return self.dest
def set_destination(self, destination):
self.dest = destination
def get_velocity(self):
return self.vel
def set_velocity(self, velocity):
self.vel = velocity
def get_color(self):
return self.color
def set_color(self, color):
self.color = color
def get_home_color(self):
return self.home_color