top of page
6. Common Settings
6.1. Set Tool Reference Point - Six-Point Method
/**
* @brief Set tool reference point - six-point method
* @param [in] point_num Point number, range [1~6]
* @return Error code
*/
errno_t SetToolPoint(int point_num);
6.2. Calculate Tool Coordinate System
/**
* @brief Calculate tool coordinate system
* @param [out] tcp_pose Tool coordinate system
* @return Error code
*/
errno_t ComputeTool(DescPose *tcp_pose);
6.3. Set Tool Reference Point - Four-Point Method
/**
* @brief Set tool reference point - four-point method
* @param [in] point_num Point number, range [1~4]
* @return Error code
*/
errno_t SetTcp4RefPoint(int point_num);
6.4. Calculate Tool Coordinate System
/**
* @brief Calculate tool coordinate system
* @param [out] tcp_pose Tool coordinate system
* @return Error code
*/
errno_t ComputeTcp4(DescPose *tcp_pose);
6.5. Calculate Tool Coordinate System from Points
New in version C++SDK-v2.1.8-3.7.8.
/**
* @brief Calculate tool coordinate system from point data
* @param [in] method Calculation method: 0-four-point method; 1-six-point method
* @param [in] pos Joint position array (4 points for four-point method, 6 points for six-point method)
* @param [out] coord Resulting tool coordinate system
* @return Error code
*/
errno_t ComputeToolCoordWithPoints(int