import urx
import logging
if __name__ == "__main__":
rob = urx.Robot("192.168.1.113")
robot.movel(pose_list[0], acc=0.05, vel=0.05, wait=False)
当把wait 设置为True时,机器人运动就会停止,并且爆出错误self._wait_for_event(pose[:6], (Robot stopped)
解决方法:
/anaconda3/envs/dianyun/lib/python3.8/site-packages/urx/ursecmon.py这个文件,把
if self._dict["RobotModeData"]["robotMode"] == rmode\
改为
if self._dict["RobotModeData"]["robotMode"] == 7 \
问题解决。