change port of 280pi

This commit is contained in:
wangWking 2022-06-09 16:08:57 +08:00
parent e7d25840bc
commit f5dc21db9f
2 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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