This commit is contained in:
wangWking 2024-11-29 16:29:33 +08:00
parent 83fc7db66d
commit 45ac0f9796

View file

@ -13,7 +13,7 @@ import time
import rospy
from sensor_msgs.msg import JointState
from pymycobot.mycobot320 import MyCobot320
from pymycobot.mycobot import MyCobot
mc = None
@ -37,7 +37,7 @@ def listener():
port = rospy.get_param("~port", "/dev/ttyACM0")
baud = rospy.get_param("~baud", 115200)
print(port, baud)
mc = MyCobot320(port, baud)
mc = MyCobot(port, baud)
time.sleep(0.05)
mc.set_fresh_mode(1)
time.sleep(0.05)