Skip to content

Commit b571626

Browse files
author
Ziwei Chang
committed
fix the bug
1 parent a551298 commit b571626

14 files changed

+10
-8
lines changed
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

brainco_ws/src/control_py/control_py/smach_action.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ def on_configure_handler(self):
6262
if self.ready_to_start:
6363
self.get_logger().info(f"Enter state {self.sm.get_state()}")
6464
self.clear_timer()
65+
self.store_curr_cmd("both")
6566
self._timer = self.create_timer(0.01, self.timer_get_ready)
6667
self.get_logger().info(f"New timer created.")
6768
else:
@@ -106,7 +107,7 @@ def on_active_3_handler(self):
106107
self.gesture_list = ["石头","剪刀","布"]
107108
self.loop = 100
108109
self.interval_move = 0.5
109-
self.interval_stop = 7.
110+
self.interval_stop = 4.
110111
self.prepare = 0.
111112
self.end_ts = self.prepare + 1. + (self.interval_move * 6 + self.interval_stop) * self.loop - self.interval_move
112113

@@ -222,4 +223,4 @@ def main(args=None):
222223

223224

224225
if __name__ == '__main__':
225-
main()
226+
main()
Binary file not shown.

0 commit comments

Comments
 (0)