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:
ParameterTypeDescription
0intSuccess.
1intThe controller returns false, indicating that the parameters are sent incorrectly or the robotic arm state is wrong.
-1intThe data transmission fails, indicating that a problem occurs during the communication.
-2intThe data reception fails, indicating that a problem occurs during the communication, or the controller has a return timeout.
-3intThe return value parse fails, indicating that the received data format is incorrect or incomplete.
  • 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:
ParameterTypeDescription
0intSuccess.
1intThe controller returns false, indicating that the parameters are sent incorrectly or the robotic arm state is wrong.
-1intThe data transmission fails, indicating that a problem occurs during the communication.
-2intThe data reception fails, indicating that a problem occurs during the communication, or the controller has a return timeout.
-3intThe return value parse fails, indicating that the received data format is incorrect or incomplete.
  • Usage demo
C
//Get installation angles
float fx,fy,fz;
ret = Get_Install_Pose(m_sockhand,&fx,&fy,&fz);