doosan-robotics / doosan-robot2

ROS 2 for Doosan Robot
BSD 3-Clause "New" or "Revised" License
69 stars 46 forks source link

Safety issue level 2 group 5 index 7056 using torque_rt #93

Open SwonGao opened 1 week ago

SwonGao commented 1 week ago

Hi, We are using the torque_rt function to use our impedance-based controller. It always raise warnings level2 group 5 index 7056. When moving, after a few second and motion, it raise the error and trigger the safety mechanism. We try to increase the joint vel and acc limit and also filtered the input force, but none of them work well. Can you show us how to deal with this kind of error? thanks

matteodv99tn commented 1 week ago

I am working with @SwonGao The main problem appears to be the joint angle tolerance. We are able to use the torque_rt function to send the desired torque, and the robot starts moving accordingly. However when the motion exceeds the +/- 3° angle on one of the joint, the safety stop is triggered with the error indexed 7056. We tried to get a look at the APIs, but we have not been able to update the target joint configuration of the robot to avoid the triggering of such error.

elton-choi commented 9 hours ago

5.7056 error means SOS Violation Error which is occurred when the robot moves in standstill mode. refer to this command. https://manual.doosanrobotics.com/en/api/1.29/Publish/cdrflex-set_safety_mode

Before you move robot, you have to change robot mode and safety mode. The example in autonomou mode

Drfl.set_robot_mode(ROBOT_MODE_AUTONOMOUS); Drfl.set_safety_mode(SAFETY_MODE_AUTONOMOUS, SAFETY_MODE_EVENT_MOVE);

Unless, the safety board triggers the fault error like 5.7056. You can find similar command in ros2.