Skip to content

Commit

Permalink
update port
Browse files Browse the repository at this point in the history
  • Loading branch information
wangWking committed Jan 23, 2024
1 parent a12eacc commit 15e27b7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions Mercury/mercury_b1/scripts/follow_display.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ def talker():
rospy.init_node("display", anonymous=True)

print("Try connect real Mercury...")
port1 = rospy.get_param("~port1", "/dev/ttyTHS1")
port2 = rospy.get_param("~port2", "/dev/ttyS0")
port1 = rospy.get_param("~port1", "/dev/ttyTHS0")
port2 = rospy.get_param("~port2", "/dev/ttyACM0")
baud = rospy.get_param("~baud", 115200)
print("left arm: {}, baud: {}\n".format(port1, baud))
print("right arm: {}, baud: {}\n".format(port2, baud))
Expand Down Expand Up @@ -106,11 +106,11 @@ def talker():

right_coords = r.get_coords()

eye_coords = r.get_angle(11)
eye_coords = [r.get_angle(11)]

head_coords = r.get_angle(12)
head_coords = [r.get_angle(12)]

body_coords = r.get_angle(13)
body_coords = [r.get_angle(13)]

# marker
marker_.header.stamp = rospy.Time.now()
Expand Down
4 changes: 2 additions & 2 deletions Mercury/mercury_b1/scripts/slider_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ def listener():
rospy.init_node("control_slider", anonymous=True)

rospy.Subscriber("joint_states", JointState, callback)
port1 = rospy.get_param("~port1", "/dev/ttyTHS1")
port2 = rospy.get_param("~port2", "/dev/ttyS0")
port1 = rospy.get_param("~port1", "/dev/ttyTHS0")
port2 = rospy.get_param("~port2", "/dev/ttyACM0")
baud = rospy.get_param("~baud", 115200)
print('left arm: {}, {}'.format(port1, baud))
print('right arm: {}, {}'.format(port2, baud))
Expand Down
4 changes: 2 additions & 2 deletions Mercury/mercury_b1_moveit/scripts/sync_plan.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ def listener():
rospy.init_node("control_slider", anonymous=True)

rospy.Subscriber("joint_states", JointState, callback)
port1 = rospy.get_param("~port1", "/dev/ttyTHS1")
port2 = rospy.get_param("~port2", "/dev/ttyS0")
port1 = rospy.get_param("~port1", "/dev/ttyTHS0")
port2 = rospy.get_param("~port2", "/dev/ttyACM0")
baud = rospy.get_param("~baud", 115200)
print('left arm: {}, {}'.format(port1, baud))
print('right arm: {}, {}'.format(port2, baud))
Expand Down

0 comments on commit 15e27b7

Please sign in to comment.