-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathokon.py
44 lines (33 loc) · 1023 Bytes
/
okon.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
""" Implementation of an Abstract Base Class (ABC) Okon
Okon ABC implementation provides unified communication between
the autonomy module and simulation/TCM.
"""
from abc import ABC, abstractmethod
class Okon(ABC):
@abstractmethod
def set_depth(self, depth: float, add: bool = False) -> None:
pass
@abstractmethod
def set_stable_vel(self, x: float = None, y: float = None, z: float = None) -> None:
pass
@abstractmethod
def arm_motors(self) -> None:
pass
@abstractmethod
def disarm_motors(self) -> None:
pass
@abstractmethod
def setMode(self, mode: str) -> None:
pass
@abstractmethod
def reachedTargetRotation(self, delta):
pass
@abstractmethod
def reachedTargetDepth(self, delta):
pass
@abstractmethod
def get_detection(self, className: str):
pass
@abstractmethod
def set_stable_rot(self, x: float = None, y: float = None, z: float = None, add=False) -> None:
pass