xArm-Developer / xArm-Python-SDK

Python SDK for UFACTORY robots, 850, xArm5/6/7, and Lite6.
https://www.ufactory.cc
BSD 3-Clause "New" or "Revised" License
180 stars 112 forks source link

[SDK][ERROR] When sending command after changing mode. (Lite 6) #46

Closed andres-solares closed 2 years ago

andres-solares commented 2 years ago

Hi, I am encountering an issue when trying to work with the python sdk with the Lite 6 robot arm. I need to in runtime switch the arm modes and then command either joints rotations, goal positions, cartesian speeds, etc... As you can tell all of these use a different arm mode. I can use with no issues the all those commands as long as in that script I do not switch modes, however, when I set for example mode 5, call vc_set_cartesian_velocity(), then, change to mode 0 and call set_position() this is what I get: [SDK][ERROR][2022-10-27 10:28:09][base.py:340] - - API -> vc_set_joint_velocity -> code=9, speeds=[0.3141592653589793, 0.0, 0.0, 0.0, 0.0, 0.0, 0], is_sync=True and the robot is blocked, until I connect and disconnect the connection.

If you need any more details, please let me know. Any help is appreciated. Thanks!

vimior commented 2 years ago

@andres-solares After switching the mode, it is valid to set the state 0

andres-solares commented 2 years ago

Hi, thanks for your answer I was doing that before swithing the mode instead of after. I close the issue.