mirror of
https://github.com/elephantrobotics/mycobot_ros.git
synced 2026-07-05 19:47:04 +00:00
change port of 280pi
This commit is contained in:
parent
e7d25840bc
commit
f5dc21db9f
2 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue