NRC_GetCurrentPos(NRC_COORD coord, NRC_Position& position)
Get the current position
This function retrieves the robot's position in the coordinate system specified by the "coord" parameter, and the position data is returned through the parameter reference "position"
Type
int=>Get the current position
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 |
---|---|---|
coord | NRC_COORD | Coordinate system |
position | NRC_Position | Points of 6 axes |
Sample code
NRC_GetCurrentPos(NRC_MCS, position);//Get the current Cartesian coordinate position and assign it to "position"