Skip to content

System Installation Method Configuration installPos

The RealMan robotic arm supports different installation methods. However, the robot's dynamic model parameters and frame directions may vary depending on the installation method. This interface is used to set and read the robot arm's installation method.

Set installation method parametersrm_set_install_pose()

  • Method prototype:
C
int rm_set_install_pose(rm_robot_handle * handle,float x,float y,float z)

Jump to rm_robot_handle for details of the structure

  • Parameter description:
ParameterTypeDescription
handleInputRobotic arm handle.
xInputRotation angle, in °.
yInputPitch angle, in °.
zInputAzimuth angle, in °.
  • Return value:

0 represents success. For other error codes, please refer to the API2 Error Codes.

  • Usage demo
C
//Set installation angles: rotation angle 30°, pitch angle 60°, and azimuth angle 90°
float x = 30;
float y = 60;
float z = 90;
ret = rm_set_install_pose(robot_handle,x,y,z);

Get installation method parametersrm_get_install_pose()

  • Method prototype:
C
int rm_get_install_pose(rm_robot_handle * handle,float * x,float * y,float * z)

Jump to rm_robot_handle for details of the structure

  • Parameter description:
ParameterTypeDescription
handleInputRobotic arm handle.
xOutputStore the rotation angle, in °.
yOutputStore the pitch angle, in °.
zOutputStore the azimuth angle, in °.
  • Return value:

0 represents success. For other error codes, please refer to the API2 Error Codes.

  • Usage demo
C
//Get installation angles
float fx,fy,fz;
ret = Get_Install_Pose(m_sockhand,&fx,&fy,&fz);