Browse Source

修正了小车夹爪移动时小车同时移动的问题

zhangjiali 5 years ago
parent
commit
ed2bee47e7
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/teleop_twist_keyboard/teleop_twist_keyboard.py

+ 4 - 0
src/teleop_twist_keyboard/teleop_twist_keyboard.py

@@ -141,6 +141,10 @@ if __name__=="__main__":
                     print(msg)
                 status = (status + 1) % 15
             elif key in gripperBindings.keys():
+                x = 0
+                y = 0
+                z = 0
+                th = 0
                 client_srv()
             else:
                 x = 0