Skip to content

Commit

Permalink
update mercury mode
Browse files Browse the repository at this point in the history
  • Loading branch information
wangWking committed Dec 20, 2023
1 parent 03abc59 commit 53ee5d4
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions Mercury/mercury_a1/scripts/slider_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ def listener():
print(port, baud)
mc = Mercury(port, baud)
time.sleep(0.05)
mc.set_fresh_mode(1)
time.sleep(0.05)
# mc.set_fresh_mode(1)
# time.sleep(0.05)

# spin() simply keeps python from exiting until this node is stopped
# spin()只是阻止python退出,直到该节点停止
Expand Down
4 changes: 2 additions & 2 deletions Mercury/mercury_a1_communication/scripts/mercury_services.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ def create_handle():
rospy.loginfo("%s,%s" % (port, baud))
mc = Mercury(port, baud)
time.sleep(0.05)
mc.set_fresh_mode(1)
time.sleep(0.05)
# mc.set_fresh_mode(1)
# time.sleep(0.05)

def create_services():
rospy.Service("set_joint_angles", SetAngles, set_angles)
Expand Down
4 changes: 2 additions & 2 deletions Mercury/mercury_a1_moveit/scripts/sync_plan.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ def listener():
print(port, baud)
mc = Mercury(port, baud)
time.sleep(0.05)
mc.set_fresh_mode(1)
time.sleep(0.05)
# mc.set_fresh_mode(1)
# time.sleep(0.05)
# spin() simply keeps python from exiting until this node is stopped
# spin()只是阻止python退出,直到该节点停止
print("spin ...")
Expand Down
6 changes: 3 additions & 3 deletions Mercury/mercury_b1/scripts/slider_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ def listener():
l = Mercury(port1, baud)
r = Mercury(port2, baud)
time.sleep(0.05)
l.set_fresh_mode(1)
r.set_fresh_mode(1)
time.sleep(0.05)
# l.set_fresh_mode(1)
# r.set_fresh_mode(1)
# time.sleep(0.05)
# spin() simply keeps python from exiting until this node is stopped
# spin()只是阻止python退出,直到该节点停止
print("spin ...")
Expand Down
6 changes: 3 additions & 3 deletions Mercury/mercury_b1_moveit/scripts/sync_plan.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ def listener():
l = Mercury(port1, baud)
r = Mercury(port2, baud)
time.sleep(0.05)
l.set_fresh_mode(1)
r.set_fresh_mode(1)
time.sleep(0.05)
# l.set_fresh_mode(1)
# r.set_fresh_mode(1)
# time.sleep(0.05)

# spin() simply keeps python from exiting until this node is stopped
# spin()只是阻止python退出,直到该节点停止
Expand Down

0 comments on commit 53ee5d4

Please sign in to comment.