Skip to content

Commit 060c836

Browse files
committed
Make the lights blue when the pose is recognized
1 parent bba4825 commit 060c836

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

turtlebot4_vision_tutorials/turtlebot4_vision_tutorials/pose_detection.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,8 @@ def angle_with_y(v):
257257
self.dir_confirm = 1
258258
self.dir = dir_temp
259259

260+
self.lights_blue_ = self.dir != Dir.STOP
261+
260262
if self.dir_confirm >= 3:
261263
cmd_vel_msg = Twist()
262264
if self.dir == Dir.LEFT:

0 commit comments

Comments
 (0)