Skip to main content

Set teach motion coordinate system

The coordinate system is divided into joint coordinate system, Cartesian coordinate system, tool coordinate system and user coordinate system. To switch the coordinate system, use the following interface.

NRC_SetCurrentCoord(NRC_ACS)

The code uses NRC_ACS, which can be found defined in the nrcAPI.h file, meaning joint coordinate system.

enum NRC_COORD
{
NRC_ACS = 0, ///< Joint coordinate
NRC_MCS = 1, ///< Cartesian coordinate
NRC_PCS = 2, ///< Tool coordinate
NRC_UCS = 3 ///< User coordinate
};

NRC_SetCurrentCoord() is defined as follows

/**
* @brief Switch current coordinate system
* @param coord Switch the current coordinate system to this coordinate system
* @see NRC_COORD
*/
int NRC_SetCurrentCoord(NRC_COORD coord);