NRC_SetRobotJointConfig(int axisNum, NRC_RobotJointConfig config)
Set robot joint parameters
Please set this parameter when the servo is stopped or in a ready state
Type
int =>Set robot joint parameters
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 |
---|---|---|
axisNum | int | The number of the axis to be set, parameter range: 1 <= axisNum <= the total number of robot axes |
config | NRC_RobotJointConfig | See NRC_RobotJointConfig |
Sample code
NRC_RobotJointConfig robotJointConfig = {121,17, 55, -55, 4000, -4000, 1,-1,2.12, -2.12, 1,1};//Joint parameter configuration
for (int i=1; i<7; i++)
{
NRC_SetRobotJointConfig(i,robotJointConfig);
}