Skip to content

Commit bba4825

Browse files
committed
Reduce the number of confirmations needed
1 parent 128ef0e commit bba4825

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

turtlebot4_vision_tutorials/turtlebot4_vision_tutorials/pose_detection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ def pose_detect(self):
213213
# Stamp the message with the current time
214214
flag_msg.data = letter
215215
self.semaphore_flag_publisher.publish(flag_msg)
216-
self.get_logger().info('Letter detected is: ' + letter)
216+
self.get_logger().info(f'Letter detected is: {letter}')
217217

218218
self.autonomous_lights()
219219

@@ -257,7 +257,7 @@ def angle_with_y(v):
257257
self.dir_confirm = 1
258258
self.dir = dir_temp
259259

260-
if self.dir_confirm > 4:
260+
if self.dir_confirm >= 3:
261261
cmd_vel_msg = Twist()
262262
if self.dir == Dir.LEFT:
263263
cmd_vel_msg.angular.z = 0.4

0 commit comments

Comments
 (0)