diff --git a/mycobot_communication/scripts/mycobot_topics_jsnn.py b/mycobot_communication/scripts/mycobot_topics_jsnn.py index 07304f8..62b09a8 100755 --- a/mycobot_communication/scripts/mycobot_topics_jsnn.py +++ b/mycobot_communication/scripts/mycobot_topics_jsnn.py @@ -75,8 +75,8 @@ class MycobotTopics(object): rospy.init_node("mycobot_topics") rospy.loginfo("start ...") # Select connected device,选择连接设备 - port = rospy.get_param("~port", "/dev/ttyUSB0") - baud = rospy.get_param("~baud", 115200) + port = rospy.get_param("~port", "/dev/ttyAMA0") + baud = rospy.get_param("~baud", 1000000) rospy.loginfo("%s,%s" % (port, baud)) # self.mc = MyCobot(port,baud) self.mc = MyCobotSocket(port, baud) # port diff --git a/mycobot_communication/scripts/mycobot_topics_pi.py b/mycobot_communication/scripts/mycobot_topics_pi.py index f43d0da..1ccf23c 100755 --- a/mycobot_communication/scripts/mycobot_topics_pi.py +++ b/mycobot_communication/scripts/mycobot_topics_pi.py @@ -74,8 +74,8 @@ class MycobotTopics(object): rospy.init_node("mycobot_topics_pi") rospy.loginfo("start ...") # problem - port = rospy.get_param("~port", "/dev/ttyUSB0") - baud = rospy.get_param("~baud", 115200) + port = rospy.get_param("~port", "/dev/ttyAMA0") + baud = rospy.get_param("~baud", 1000000) rospy.loginfo("%s,%s" % (port, baud)) self.mc = MyCobotSocket(port, baud) # port self.mc.connect() #pi