Skip to main content

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 valueDescription
0The function is called successfully
-101Invalid input parameter
-102The target object does not exist. This typically occurs when the system initialization is incomplete, and calling other functions may return this value
-103The target object is currently in an inoperable state

Parameter Option

ParameterTypeDescription
axisNumintThe number of the axis to be set, parameter range: 1 <= axisNum <= the total number of robot axes
configNRC_RobotJointConfigSee 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);
}