Skip to content

Commit d17f176

Browse files
committed
Apply feedback
1 parent bae80db commit d17f176

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bitbots_misc/bitbots_teleop/scripts/teleop_keyboard.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
R: reset ball in simulation
5252
5353
Head Modes:
54-
0: Search for Ball and track it if found
54+
0: Track the last known ball position
5555
1: Look generally for all features on the field (ball, goals, corners, center point)
5656
2: Simply look directly forward
5757
3: Don't move the head
@@ -147,7 +147,7 @@ def __init__(self):
147147
self.head_msg.joint_names = ["HeadPan", "HeadTilt"]
148148
self.head_msg.positions = [0.0] * 2
149149

150-
self.head_mode_msg = HeadMode()
150+
self.head_mode_msg = HeadMode(head_mode=HeadMode.DONT_MOVE)
151151

152152
self.head_pan_step = 0.05
153153
self.head_tilt_step = 0.05
@@ -221,7 +221,7 @@ def loop(self):
221221
self.head_msg.positions[1] = 0
222222
self.head_pub.publish(self.head_msg)
223223
elif key == "0":
224-
# Search for Ball and track it if found
224+
# Track the last known ball position
225225
self.head_mode_msg.head_mode = HeadMode.TRACK_BALL
226226
assert int(key) == HeadMode.TRACK_BALL
227227
elif key == "1":

0 commit comments

Comments
 (0)