NRC_SetInterpolationMethod(int method)
Set robot interpolation method
Please set this parameter when the servo is stopped or in a ready state
Type
int =>Set robot interpolation method
Return value | Description |
---|---|
0 | The function is called successfully |
-101 | Invalid input parameter |
-102 | The target object does not exist. This typically occurs when the system initialization is incomplete, and calling other functions may return this value |
-103 | The target object is currently in an inoperable state |
Parameter Option
Parameter | Type | Description |
---|---|---|
method | int | Robot motion interpolation method. 0: S-shaped interpolation, in this mode, the robot's acceleration and deceleration are smoother, but relatively slower compared to trapezoidal interpolation. This method is commonly used for larger robots. 1: Trapezoidal interpolation, in this mode, the robot's acceleration and deceleration are faster, but it may lead to issues like robot jitter or overload. This method is typically used for smaller robots |
Sample code
NRC_SetInterpolationMethod(0);