From cca533048325a5ed0f4dc055a7b10c39cf0083d3 Mon Sep 17 00:00:00 2001 From: wangWking <842749351@qq.com> Date: Thu, 5 May 2022 14:31:42 +0800 Subject: [PATCH] change baud --- .../new_mycobot_320_pi_moveit/scripts/sync_plan.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/mycobot_320/new_mycobot_320_pi_moveit/scripts/sync_plan.py b/mycobot_320/new_mycobot_320_pi_moveit/scripts/sync_plan.py index e93730b..b71076d 100755 --- a/mycobot_320/new_mycobot_320_pi_moveit/scripts/sync_plan.py +++ b/mycobot_320/new_mycobot_320_pi_moveit/scripts/sync_plan.py @@ -25,12 +25,10 @@ def callback(data): def listener(): global mc rospy.init_node("mycobot_reciver", anonymous=True) - port = subprocess.check_output(['echo -n /dev/ttyAMA*'], - shell=True) - port = rospy.get_param("~port", port) - baud = rospy.get_param("~baud", 1000000) - # 1000000 + port = rospy.get_param("~port", "/dev/ttyAMA0") + baud = rospy.get_param("~baud", 115200) + # 115200 mc = MyCobot(port, baud) rospy.Subscriber("joint_states", JointState, callback)