mirror of
https://github.com/elephantrobotics/mycobot_ros.git
synced 2026-07-05 19:47:04 +00:00
fix
This commit is contained in:
parent
83fc7db66d
commit
45ac0f9796
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue