-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgate_protocol.py
More file actions
45 lines (38 loc) · 1.23 KB
/
Copy pathgate_protocol.py
File metadata and controls
45 lines (38 loc) · 1.23 KB
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
class GateProtocol:
def __init__(self):
pass
def fixed_depth(self):
# CONTROLS
# move down by a fixed amount
pass
def spin(self):
# CONTROLS
# spin around until we see the gate and stop
# CONTROLS
# spin to set point of the gate in the center of our vision
# OBJECT DETECTION
# see the gate?
pass
def shimmy(self):
# DEPTH SENSING
# find distance to center of gate
# CONTROLS / NAVIGATION
# begin orbit around center of gate
# OBJECT DETECTION
# if bounding box shrinks, change direction
# if bounding box grows, don't worry
pass
def orbit(self):
# DEPTH SENSING
# find distance to center of gate
# CONTROLS / NAVIGATION
# orbit around center of gate while maintaining the gate in the center of our vision
# OBJECT DETECTION
# stop when the width of the gate reaches a maximum
pass
def forward(self):
# OBJECT DETECTION
# see the gate! remember where it starts
# publish the set point as it is
# continue to check where the gate is and republish the set point if neccessary
pass