From f5dc21db9fbb01cee51747c5741350d3a06bb70e Mon Sep 17 00:00:00 2001 From: wangWking <842749351@qq.com> Date: Thu, 9 Jun 2022 16:08:57 +0800 Subject: [PATCH] change port of 280pi --- mycobot_communication/scripts/mycobot_topics_jsnn.py | 4 ++-- mycobot_communication/scripts/mycobot_topics_pi.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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