瀏覽代碼

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

zhangjiali 5 年之前
父節點
當前提交
ed2bee47e7
共有 1 個文件被更改,包括 4 次插入0 次删除
  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