change baud

This commit is contained in:
wangWking 2022-05-05 14:30:59 +08:00
parent 4220297d90
commit 63d872461b
2 changed files with 2 additions and 2 deletions

View file

@ -16,7 +16,7 @@ def talker():
print("Try connect real mycobot...")
port = rospy.get_param("~port", "/dev/ttyAMA0")
baud = rospy.get_param("~baud", 1000000)
baud = rospy.get_param("~baud", 115200)
print("port: {}, baud: {}\n".format(port, baud))
try:
mycobot = MyCobot(port, baud)

View file

@ -37,7 +37,7 @@ def listener():
rospy.Subscriber("joint_states", JointState, callback)
port = rospy.get_param("~port", "/dev/ttyAMA0")
baud = rospy.get_param("~baud", 1000000)
baud = rospy.get_param("~baud", 115200)
print(port, baud)
mc = MyCobot(port, baud)