Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wangWking committed Jun 20, 2024
1 parent e5e50c9 commit 3a0357d
Show file tree
Hide file tree
Showing 22 changed files with 25 additions and 117 deletions.
3 changes: 3 additions & 0 deletions Mybuddy/mybuddy/scripts/slider_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ def listener():
baud = rospy.get_param("~baud", 115200)
print(port, baud)
mb = MyBuddy(port, baud)
time.sleep(0.05)
mb.set_fresh_mode(1)
time.sleep(0.05)

# spin() simply keeps python from exiting until this node is stopped
print("spin ...")
Expand Down
3 changes: 3 additions & 0 deletions Mybuddy/mybuddy_moveit/scripts/sync_plan.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ def listener():
baud = rospy.get_param("~baud", 115200)
print(port, baud)
mb = MyBuddy(port, baud)
time.sleep(0.05)
mb.set_fresh_mode(1)
time.sleep(0.05)

rospy.Subscriber("joint_states", JointState, callback)

Expand Down
2 changes: 1 addition & 1 deletion mecharm/mecharm/scripts/slider_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def listener():
print(port, baud)
mc = MyCobot(port, baud)
time.sleep(0.05)
mc.set_free_mode(1)
mc.set_fresh_mode(1)
time.sleep(0.05)

# spin() simply keeps python from exiting until this node is stopped
Expand Down
2 changes: 1 addition & 1 deletion mecharm/mecharm_moveit/scripts/sync_plan.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def listener():
print(port, baud)
mc = MyCobot(port, baud)
time.sleep(0.05)
mc.set_free_mode(1)
mc.set_fresh_mode(1)
time.sleep(0.05)

rospy.Subscriber("joint_states", JointState, callback)
Expand Down
2 changes: 1 addition & 1 deletion mecharm/mecharm_pi/scripts/slider_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def listener():
print(port, baud)
mc = MyCobot(port, baud)
time.sleep(0.05)
mc.set_free_mode(1)
mc.set_fresh_mode(1)
time.sleep(0.05)

# spin() simply keeps python from exiting until this node is stopped
Expand Down
2 changes: 1 addition & 1 deletion mecharm/mecharm_pi_moveit/scripts/sync_plan.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def listener():
print(port, baud)
mc = MyCobot(port, baud)
time.sleep(0.05)
mc.set_free_mode(1)
mc.set_fresh_mode(1)
time.sleep(0.05)

rospy.Subscriber("joint_states", JointState, callback)
Expand Down
2 changes: 1 addition & 1 deletion myArm/myarm/scripts/slider_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def listener():
print(port, baud)
mc = MyArm(port, baud)
time.sleep(0.05)
mc.set_free_mode(1)
mc.set_fresh_mode(1)
time.sleep(0.05)
# spin() simply keeps python from exiting until this node is stopped
# spin()只是阻止python退出,直到该节点停止
Expand Down
2 changes: 1 addition & 1 deletion myArm/myarm_moveit/scripts/sync_plan.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def listener():
print(port, baud)
mc = MyArm(port, baud)
time.sleep(0.05)
mc.set_free_mode(1)
mc.set_fresh_mode(1)
time.sleep(0.05)

# spin() simply keeps python from exiting until this node is stopped
Expand Down
2 changes: 1 addition & 1 deletion mycobot_280/mycobot_280/scripts/slider_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def listener():
print(port, baud)
mc = MyCobot(port, baud)
time.sleep(0.05)
mc.set_free_mode(1)
mc.set_fresh_mode(1)
time.sleep(0.05)

# spin() simply keeps python from exiting until this node is stopped
Expand Down
2 changes: 1 addition & 1 deletion mycobot_280/mycobot_280/scripts/slider_control_gripper.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def listener():
print(port, baud)
mc = MyCobot(port, baud)
time.sleep(0.05)
mc.set_free_mode(1)
mc.set_fresh_mode(1)
time.sleep(0.05)
# spin() simply keeps python from exiting until this node is stopped
# spin()只是阻止python退出,直到该节点停止
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def listener():
print(port, baud)
mc = MyCobot(port, baud)
time.sleep(0.05)
mc.set_free_mode(1)
mc.set_fresh_mode(1)
time.sleep(0.05)

rospy.Subscriber("joint_states", JointState, callback)
Expand Down
2 changes: 1 addition & 1 deletion mycobot_280/mycobot_280_moveit/scripts/sync_plan.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def listener():
print(port, baud)
mc = MyCobot(port, baud)
time.sleep(0.05)
mc.set_free_mode(1)
mc.set_fresh_mode(1)
time.sleep(0.05)

rospy.Subscriber("joint_states", JointState, callback)
Expand Down
2 changes: 1 addition & 1 deletion mycobot_280/mycobot_280arduino/scripts/slider_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def listener():
print(port, baud)
mc = MyCobot(port, baud)
time.sleep(0.05)
mc.set_free_mode(1)
mc.set_fresh_mode(1)
time.sleep(0.05)

# spin() simply keeps python from exiting until this node is stopped
Expand Down
2 changes: 1 addition & 1 deletion mycobot_280/mycobot_280arduino_moveit/scripts/sync_plan.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def listener():
print(port, baud)
mc = MyCobot(port, baud)
time.sleep(0.05)
mc.set_free_mode(1)
mc.set_fresh_mode(1)
time.sleep(0.05)

rospy.Subscriber("joint_states", JointState, callback)
Expand Down
2 changes: 1 addition & 1 deletion mycobot_280/mycobot_280jn/scripts/slider_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def listener():
print(port, baud)
mc = MyCobot(port, baud)
time.sleep(0.05)
mc.set_free_mode(1)
mc.set_fresh_mode(1)
time.sleep(0.05)

# spin() simply keeps python from exiting until this node is stopped
Expand Down
2 changes: 1 addition & 1 deletion mycobot_280/mycobot_280jn_moveit/scripts/sync_plan.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def listener():

mc = MyCobot(port, baud)
time.sleep(0.05)
mc.set_free_mode(1)
mc.set_fresh_mode(1)
time.sleep(0.05)

rospy.Subscriber("joint_states", JointState, callback)
Expand Down
2 changes: 1 addition & 1 deletion mycobot_280/mycobot_280pi/scripts/slider_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def listener():
print(port, baud)
mc = MyCobot(port, baud)
time.sleep(0.05)
mc.set_free_mode(1)
mc.set_fresh_mode(1)
time.sleep(0.05)

# spin() simply keeps python from exiting until this node is stopped
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def listener():
print(port, baud)
mc = MyPalletizer(port, baud)
time.sleep(0.05)
mc.set_free_mode(1)
mc.set_fresh_mode(1)
time.sleep(0.05)
# spin() simply keeps python from exiting until this node is stopped
# spin() 只是阻止python退出,直到该节点停止
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def listener():
print(port, baud)
mc = MyPalletizer(port, baud)
time.sleep(0.05)
mc.set_free_mode(1)
mc.set_fresh_mode(1)
time.sleep(0.05)
rospy.Subscriber("joint_states", JointState, callback)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def listener():
print(port, baud)
mc = MyPalletizer(port, baud)
time.sleep(0.05)
mc.set_free_mode(1)
mc.set_fresh_mode(1)
time.sleep(0.05)
# spin() simply keeps python from exiting until this node is stopped
# spin() 只是阻止python退出,直到该节点停止
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def listener():
print(port, baud)
mc = MyPalletizer(port, baud)
time.sleep(0.05)
mc.set_free_mode(1)
mc.set_fresh_mode(1)
time.sleep(0.05)
rospy.Subscriber("joint_states", JointState, callback)

Expand Down

0 comments on commit 3a0357d

Please sign in to comment.