Csharp

This document introduces the data types and APIs defined in JAKA SDK (C#), mainly intended for software developers who create robot applications in C# to communicate with virtual or real controllers. It will also be helpful for users who need to understand JAKA robot controller applications.

Calling Conventions

  • robot_id and robot_index select the target robot. Use 0 for a single arm; for V3 dual-arm systems, use 0 or 1 according to controller configuration.

  • Only managed overloads declaring = default_value allow the corresponding argument to be omitted. Native or extended entry points without defaults require explicit arguments. Supply intervening positional arguments, or use named arguments where the managed overload supports them.

  • These interfaces follow src/csharp/jakaAPI.cs in the SDK client source.

  • handle is the robot handle, returned at login and supplied to subsequent interfaces. The caller allocates output buffers.

  • A return value of 0 indicates success; other values are error codes. Success from a non-blocking motion call does not mean the target has been reached.

Warning: Binding Notes

JointValue in jkType.cs currently has 6 array elements, whereas MAX_AXIS in native jktypes.h is 7. AdmitCtrlType also lacks the axis field. Before calling, ensure that structures and nested structures match the layout of the supplied native library.

Interface List

Basic Robot Operations

Robot Arm Login

int create_handler(char[] ip, ref int handle);
int create_handler(string ip, ref int handle);
int create_handler_with_auth([MarshalAs(UnmanagedType.LPStr)] string ip, ref int handle, bool use_grpc,[MarshalAs(UnmanagedType.LPStr)] string username, [MarshalAs(UnmanagedType.LPStr)] string password);

int create_handler(string ip, ref int handle, bool use_grpc = false, string username = "", string password = "");
  • Parameters

    • ip Controller IP address

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • use_grpc 1/true for gRPC, 0/false for TCP. gRPC is recommended for V3. Optional in overloads declaring a default; default: false.

    • username SDK login username; use jaka_sdk with V3. Optional in overloads declaring a default; default: "".

    • password SDK account password configured in JAKA App. Optional in overloads declaring a default; default: "".

Robot Arm Logout

int destory_handler(ref int handle)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

Power On Robot Arm

int power_on(ref int handle)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

Power Off Robot Arm

int power_off(ref int handle)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

Shut Down Robot Arm

int shut_down(ref int handle)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

Enable Robot Arm

int enable_robot(ref int handle)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

Disable Robot Arm

int disable_robot(ref int handle)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

Get the DH parameters of the currently connected robot arm

int get_dh_param(ref int handle,ref JKTYPE.DHParam offset)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • offset Outputs robot DH parameters.

Set Robot Arm Installation Angle

int set_installation_angle(ref int handle, double angleX, double angleZ)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • angleX Rotation angle around X-axis

    • angleZ Rotation angle around Z-axis

Get Robot Arm Installation Angle

int get_installation_angle(ref int handle, ref JKTYPE.Quaternion quat, ref JKTYPE.Rpy appang)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • quat Installation angle quaternion

    • appang Installation angle RPY (Roll-Pitch-Yaw) angles

Get Robot Arm Status

int get_robot_state(ref int handle, ref JKTYPE.RobotState state)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • state Robot arm status query result

Retrieve robot arm status monitoring data (only thread-safe interface)

int get_robot_status(ref int handle, ref JKTYPE.RobotStatus status)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • status  Robot arm status

Get Robot Arm Status Monitoring Data

int get_robot_status_simple(ref int handle, ref JKTYPE.RobotStatus_simple status)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • status  Robot arm status

Set Simulation Mode

int set_sim_enable_with_robot_id(ref int handle, int enable, int robot_id);
int set_sim_enable(ref int handle, int enable, int robot_id = 0);
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • enable Simulation mode: 1 for simulation, 0 for a physical robot.

    • robot_id Compatibility parameter; this interface currently does not distinguish robots. Use 0. Optional in overloads declaring a default; default: 0.

  • Return value: ERR_SUCC on success; any other value indicates failure.

Get Simulation Mode

int get_sim_enable_with_robot_id(ref int handle, ref int enable, int robot_id);
int get_sim_enable(ref int handle, ref int enable, int robot_id = 0);
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • enable Outputs the simulation mode: 1 for simulation, 0 for a physical robot.

    • robot_id Compatibility parameter; this interface currently does not distinguish robots. Use 0. Optional in overloads declaring a default; default: 0.

  • Return value: ERR_SUCC on success; any other value indicates failure.

Set Simulated Robot Model

int set_sim_robot_with_robot_id(ref int handle, int index, int robot_id);
int set_sim_robot(ref int handle, int index, int robot_id = 0);
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • index Simulated model index; first obtain the list of models supported by the controller.

    • robot_id Compatibility parameter; this interface currently does not distinguish robots. Use 0. Optional in overloads declaring a default; default: 0.

  • Return value: ERR_SUCC on success; any other value indicates failure.

Get Simulated Robot Model

int get_sim_robot_with_robot_id(ref int handle, ref int index, int robot_id);
int get_sim_robot(ref int handle, ref int index, int robot_id = 0);
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • index Outputs the current simulated model index.

    • robot_id Compatibility parameter; this interface currently does not distinguish robots. Use 0. Optional in overloads declaring a default; default: 0.

  • Return value: ERR_SUCC on success; any other value indicates failure.

Get Simulated Robot Model List

Warning: Interface Notes

The current C# source declares both extern and managed wrapper methods with identical parameter types. Default arguments do not distinguish overloads; remove duplicate declarations and have the wrapper call a separate native entry point before use.

int get_sim_robot_list(ref int handle, ref JKTYPE.SimRobotInfoList robot_list, int robot_id = 0);
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • robot_list Outputs the simulated robot model list; count is the valid entry count. Entries contain model indices and names.

    • robot_id Target robot identifier: 0 for a single arm; 0 or 1 for dual arms according to controller configuration. The current gRPC query does not distinguish robots using this parameter. Optional in overloads declaring a default; default: 0.

  • Return value: ERR_SUCC on success; any other value indicates failure.

Get Robot Control Source

int get_control_source_with_robot_id(ref int handle, ref int source, int robot_id);
int get_control_source(ref int handle, ref int source, int robot_id = 0);
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • source Outputs the current control-source code; interpret it according to the controller’s control-source configuration. This interface queries the source; it does not switch it.

    • robot_id Target robot identifier: 0 for a single arm; 0 or 1 for dual arms according to controller configuration. The current gRPC query does not distinguish robots using this parameter. Optional in overloads declaring a default; default: 0.

  • Return value: ERR_SUCC on success; any other value indicates failure.

Robot Moving Output

Robotic arm movement in manual mode

int jog(ref int handle, int aj_num, JKTYPE.MoveMode move_mode, JKTYPE.CoordType coord_type, double vel_cmd, double pos_cmd)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • aj_num Represents joint numbers [0-5 ]in joint space; in Cartesian space it corresponds to axes x, y, z, rx, ry, rz

    • move_mode Robot arm motion mode. Available types: Absolute motion (ABS), incremental motion (INCR), continuous motion (CONTINUE), and stop (STOP)

    • coord_type Robot arm motion coordinate system. Available systems: Tool coordinate system (COORD_TOOL), base coordinate system (COORD_BASE), or joint space (COORD_JOINT)

    • vel_cmd Command speed. Unit for rotational axes or joint motion is rad/s; unit for linear axes is mm/s

    • pos_cmd Command position, rotation axis or joint movement unit is rad, linear axis unit is mm. When move_mode is continuous, the parameter can be ignored

Robotic arm stop movement in manual mode

int jog_stop(ref int handle, int num)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • num Legacy axis identifier; ignored by the current implementation, which calls stop_jog.

Robotic arm joint movement

int joint_move(ref int handle, ref JKTYPE.JointValue joint_pos, JKTYPE.MoveMode move_mode, bool is_block, double speed);
int joint_move_extend(ref int handle, ref JKTYPE.JointValue joint_pos, JKTYPE.MoveMode move_mode, bool is_block, double speed, double acc, double tol, ref JKTYPE.OptionalCond option_cond)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • joint_pos Target position for robot arm joint movement, a double type 6-dimensional array

    • move_mode Robot arm motion mode. Available types: Absolute motion (ABS), incremental motion (INCR), continuous motion (CONTINUE), and stop (STOP)

    • is_block Wait for motion completion: 1/true for blocking, 0/false for non-blocking. Waiting uses an empty queue and the in-position flag, not a fixed 30-second timeout.

    • speed robot arm joint movement speed, unit: rad/s

    • acc robot arm joint movement angular acceleration, default value is 3.5rad/s^2^

    • tol robot arm joint movement endpoint error, this parameter makes transitions between two movements smoother. When using this parameter, multiple consecutive movements are required, and it must be in non-blocking mode. Default value is 0mm

    • option_cond Optional motion condition pointer. The current joint_move, linear_move, and circular_move implementations do not serialize it into motion requests; it cannot implement termination conditions.

Robotic arm linear movement at end effector

int linear_move(ref int handle, ref JKTYPE.CartesianPose end_pos, JKTYPE.MoveMode move_mode, bool is_block, double speed);
int linear_move_extend(ref int handle, ref JKTYPE.CartesianPose cart_pos, JKTYPE.MoveMode move_mode, bool is_block, double speed, double acc, double tol, ref JKTYPE.OptionalCond option_cond);
int linear_move_extend_ori(ref int handle, ref JKTYPE.CartesianPose cart_pos, JKTYPE.MoveMode move_mode, bool is_block, double speed, double acc, double tol, ref JKTYPE.OptionalCond option_cond, double ori_vel, double ori_acc)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • end_pos Target position for robot arm end movement

    • move_mode Robot arm motion mode. Available types: Absolute motion (ABS), incremental motion (INCR), continuous motion (CONTINUE), and stop (STOP)

    • is_block Wait for motion completion: 1/true for blocking, 0/false for non-blocking. Waiting uses an empty queue and the in-position flag, not a fixed 30-second timeout.

    • speed robot arm linear movement speed, unit: mm/s

    • cart_pos Target Cartesian pose; position in mm, orientation in rad.

    • acc robot arm linear movement acceleration, default value is 500mm/s^2^

    • tol robot arm linear movement endpoint error. This parameter makes transitions between two movements smoother. When using this parameter, multiple consecutive movements are required, and it must be in non-blocking mode. Default value is 0mm

    • option_cond Optional motion condition pointer. The current joint_move, linear_move, and circular_move implementations do not serialize it into motion requests; it cannot implement termination conditions.

    • ori_vel Orientation velocity, default value is 3.14rad/s

    • ori_acc Orientation acceleration, default value is 12.56rad/s^2^

Robotic arm arc movement

int circular_move(ref int handle, ref JKTYPE.CartesianPose end_pos, ref JKTYPE.CartesianPose mid_pos, JKTYPE.MoveMode move_mode, bool is_block, double speed, double acc, double tol, ref JKTYPE.OptionalCond option_cond);
int circular_move_extend(ref int handle, ref JKTYPE.CartesianPose end_pos, ref JKTYPE.CartesianPose mid_pos, JKTYPE.MoveMode move_mode, bool is_block, double speed, double acc, double tol, ref JKTYPE.OptionalCond option_cond, double circle_cnt);
int circular_move_extend_mode(ref int handle, ref JKTYPE.CartesianPose end_pos, ref JKTYPE.CartesianPose mid_pos, JKTYPE.MoveMode move_mode, bool is_block, double speed, double acc, double tol, ref JKTYPE.OptionalCond option_cond, double circle_cnt, int circle_mode)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • end_pos Target position for robot arm end movement

    • mid_pos Intermediate point of the robot arm end movement

    • move_mode Robot arm motion mode. Available types: Absolute motion (ABS), incremental motion (INCR), continuous motion (CONTINUE), and stop (STOP)

    • is_block Wait for motion completion: 1/true for blocking, 0/false for non-blocking. Waiting uses an empty queue and the in-position flag, not a fixed 30-second timeout.

    • speed robot arm linear movement speed, unit: mm/s

    • acc Acceleration of the robot arm in Cartesian space, unit: mm/s^2^

    • tol Endpoint error of the robot arm movement in Cartesian space

    • option_cond Optional motion condition pointer. The current joint_move, linear_move, and circular_move implementations do not serialize it into motion requests; it cannot implement termination conditions.

    • circle_cnt Specifies the number of circular motion loops for the robot arm. The default value is 0; when it is 0, it is equivalent to circular_move

    • circle_mode Specifies the circular motion mode of the robot arm, default value is 0, parameter description as follows:

Set robot arm speed multiplier

int set_rapidrate(ref int handle, double rapid_rate)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • rapid_rate is the program running rate, setting range is [0 to 1]

Get robot arm speed multiplier

int get_rapidrate(ref int handle, ref double rapid_rate)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • rapid_rate Outputs the robot motion speed ratio, ranging from 0 to 1.

Set tool information

int set_tool_data(ref int handle, int id, ref JKTYPE.CartesianPose tcp, char[] name);
int set_tool_data(ref int handle, int id, ref JKTYPE.CartesianPose tcp, [MarshalAs(UnmanagedType.LPStr)] string name)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • id Tool ID, value range [1 to 15]

    • tcp Tool coordinate system offset relative to the flange coordinate system

    • name Alias for the specified tool

Get tool information

int get_tool_data(ref int handle, int id, ref JKTYPE.CartesianPose tcp)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • id Tool ID query result

    • tcp Tool coordinate system offset relative to the flange coordinate system

Set the currently used tool ID

int set_tool_id(ref int handle, int id)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • id Tool coordinate system ID, value range is [0–15], where 0 means using the default end flange center coordinate system

Query the currently used tool ID

int get_tool_id(ref int handle, ref int id)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • id Tool ID query result

Set user coordinate system information

int set_user_frame_data(ref int handle, int id, ref JKTYPE.CartesianPose user_frame, char[] name);
int set_user_frame_data(ref int handle, int id, ref JKTYPE.CartesianPose user_frame, [MarshalAs(UnmanagedType.LPStr)] string name)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • id User coordinate system ID, value range [1–15], 0 is the default world coordinate system and cannot be changed.

    • user_frame User coordinate system offset value

    • name User coordinate system alias

Get user coordinate system information

int get_user_frame_data(ref int handle, int id, ref JKTYPE.CartesianPose user_frame)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • id User coordinate system ID

    • user_frame User coordinate system offset value

Set the user coordinate system ID currently in use

int set_user_frame_id(ref int handle, int id)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • id User coordinate system ID, value range is [0 to 15], where 0 is the world coordinate system

Query the user coordinate system ID currently in use

int get_user_frame_id(ref int handle, ref int id)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • id Result obtained

Control robot arm to enter or exit drag mode

int drag_mode_enable(ref int handle, bool enable)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • enable TRUE to enter drag mode, FALSE to exit drag mode

Query whether the robot arm is in drag mode

int is_in_drag_mode(ref int handle, ref bool in_drag)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • in_drag Query result

Set joint friction compensation coefficient (drag feel parameter)

int set_drag_friction_compensation_gain(ref int handle, int joint, int gain);
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • joint Joint number 0~5

    • gain Friction compensation coefficient, value range 0-200, 200 compensates 200% of the friction

Get joint friction compensation coefficient (drag feel parameter)

int get_drag_friction_compensation_gain(ref int handle, ref JKTYPE.DragFrictionCompensationGainList gainList);
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • gainList Outputs friction compensation coefficients for all joints.

Get the pose of the tool endpoint under the current settings — servo feedback

int get_actual_tcp_position(ref int handle, ref JKTYPE.CartesianPose tcp_position)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • tcp_position Tool end pose query result

Get the pose of the tool endpoint under the current settings

int get_tcp_position(ref int handle, ref JKTYPE.CartesianPose tcp_position)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • tcp_position Tool end pose query result

Get current robot arm joint angles — servo feedback

int get_actual_joint_position(ref int handle, ref JKTYPE.JointValue joint_position)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • joint_position Joint angle query result

Get the current robot arm joint angles

int get_joint_position(ref int handle, ref JKTYPE.JointValue joint_position)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • joint_position Joint angle query result

Set manual or automatic mode

int set_auto_manual_mode(ref int handle, int mode, int robot_id = 0)

int set_auto_manual_mode_with_robot_id(ref int handle, int mode, int robot_id);
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • mode mode parameter, 0: manual mode, 1: automatic mode

    • robot_id Target robot identifier: 0 for a single arm; 0 or 1 for dual arms according to controller configuration. Optional in overloads declaring a default; default: 0.

Get the current robot arm operation mode

int get_auto_manual_mode(ref int handle, ref int mode, int robot_id = 0)

int get_auto_manual_mode_with_robot_id(ref int handle, ref int mode, int robot_id);
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • mode mode parameter, 0: manual mode, 1: automatic mode

    • robot_id Target robot identifier: 0 for a single arm; 0 or 1 for dual arms according to controller configuration. Optional in overloads declaring a default; default: 0.

Check if the robot arm exceeds the limit

int is_on_limit(ref int handle, ref bool on_limit)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • on_limit Interrogate results

Check if the robot arm movement has stopped

int is_in_pos(ref int handle, ref bool in_pos)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • in_pos Query result

Check if the robot arm is in an emergency stop state

int is_in_estop(ref int handle, ref bool estop)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • estop Query result.

Set the robot arm motion planner type

int set_motion_planner(ref int handle, int type)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • type Motion planner type

Terminate robot arm movement

int motion_abort(ref int handle)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

Check the robot arm motion status

int get_motion_status(ref int handle, ref JKTYPE.MotionStatus status)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • status robot arm movement status

Set the robot arm load

int set_payload(ref int handle, ref JKTYPE.PayLoad payload)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • payload Centroid and mass data of payload

Get robot arm load data

int get_payload(ref int handle, ref JKTYPE.PayLoad payload)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • payload Load Interrogate results

Set Dragging Parameters

Warning: Interface Notes

The corresponding TCP client implementation is empty and sends no request. A return value of 0 does not confirm execution of the original operation.

int set_drag_parameters_with_robot_id(ref int handle, double[] ratio, int mode, int robot_id);
int set_drag_parameters(ref int handle, double[] ratio, int mode, int robot_id = 0);
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • ratio Joint friction compensation coefficient array of length MAX_AXIS; populate it for the robot’s actual axis count.

    • mode Dragging mode: 0 for classic, 1 for advanced.

    • robot_id Target robot identifier: 0 for a single arm; 0 or 1 for dual arms according to controller configuration. Optional in overloads declaring a default; default: 0.

  • Return value: ERR_SUCC on success; any other value indicates failure.

Get Dragging Parameters

Warning: Interface Notes

The corresponding TCP client implementation is empty and sends no request. A return value of 0 does not confirm execution of the original operation.

int get_drag_parameters_with_robot_id(ref int handle, double[] ratio_servo, double[] ratio_controller, ref int mode, ref bool advanced, int robot_id);
int get_drag_parameters(ref int handle, double[] ratio_servo, double[] ratio_controller, ref int mode, ref bool advanced, int robot_id = 0);
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • ratio_servo Outputs joint friction compensation coefficients for classic dragging, as an array of length MAX_AXIS.

    • ratio_controller Outputs joint friction compensation coefficients for advanced dragging, as an array of length MAX_AXIS.

    • mode Outputs dragging mode: 0 for classic, 1 for advanced.

    • advanced Outputs whether advanced dragging is supported.

    • robot_id Target robot identifier: 0 for a single arm; 0 or 1 for dual arms according to controller configuration. Optional in overloads declaring a default; default: 0.

  • Return value: ERR_SUCC on success; any other value indicates failure.

External axis combined motion

Warning: Interface Notes

The corresponding TCP client implementation is empty and sends no request. A return value of 0 does not confirm execution of the original operation.

int multi_mov_with_ext_default_value(ref int handle, ref JKTYPE.MultiMovInfoList info_list, bool is_block, ref JKTYPE.DI_Info di_info, int planner_type);
int multi_mov_with_ext(ref int handle, ref JKTYPE.MultiMovInfoList info_list, bool is_block = true, JKTYPE.DI_Info? di_info = null, int planner_type = 0);
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • info_list Combined motion list: count specifies the number of valid units; info holds robot/external-axis targets, speeds, accelerations, and motion types.

    • is_block Wait for completion: 1/true for blocking, 0/false for non-blocking. Waiting uses an empty queue and the in-position flag, not a fixed 30-second timeout. Optional in overloads declaring a default; default: true.

    • di_info DI motion-termination condition; use a permitted null pointer or invalid I/O configuration when no condition is required. Optional in overloads declaring a default; default: null.

    • planner_type Motion planner type; default: 0.

  • Return value: ERR_SUCC on success; any other value indicates failure.

External axis jog motion

Warning: Interface Notes

The corresponding TCP client implementation is empty and sends no request. A return value of 0 does not confirm execution of the original operation.

int jog_ext(ref int handle, int ext_id, int is_abs, double vel, double step);
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • ext_id Target external axis ID.

    • is_abs 0 means absolute motion ABS, 1 means incremental motion INCR, 2 means continuous motion CONTINUE

    • vel Speed, incremental and continuous motion direction is controlled by speed

    • step ABS: step is target position; INCR: step is target increment; CONTINUE: step has no meaning

  • Return value: ERR_SUCC on success; any other value indicates failure.

Enable on external axis

Warning: Interface Notes

The corresponding TCP client implementation is empty and sends no request. A return value of 0 does not confirm execution of the original operation.

int enable_ext(ref int handle, int ext_id);
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • ext_id External axis ID

  • Return value: ERR_SUCC on success; any other value indicates failure.

Disable on external axis

Warning: Interface Notes

The corresponding TCP client implementation is empty and sends no request. A return value of 0 does not confirm execution of the original operation.

int disable_ext(ref int handle, int ext_id);
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • ext_id External axis ID

  • Return value: ERR_SUCC on success; any other value indicates failure.

Get external axis status

Warning: Interface Notes

The corresponding TCP client implementation is empty and sends no request. A return value of 0 does not confirm execution of the original operation.

int get_ext_status_with_ext_id(ref int handle, ref JKTYPE.ExtAxisStatusList status_list, int ext_id);
int get_ext_status(ref int handle, ref JKTYPE.ExtAxisStatusList status_list, int ext_id = -1);
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • status_list External axis status list

    • ext_id External axis ID; -1 retrieves all external axes. Optional in overloads declaring a default; default: -1.

  • Return value: ERR_SUCC on success; any other value indicates failure.

Home External Servo Axis

int ext_servo_home(ref int handle, int ext_id);
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • ext_id ID of the external axis to home.

  • Return value: ERR_SUCC on success; any other value indicates failure.

EDG

Robotic arm EDG enable

int edg_init(ref int handle, ref bool en, string edg_stat_ip)
int edg_init_extend(ref int handle, ref bool en, string edg_stat_ip, int edg_port, int edg_mode)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • en  Enable switch, true to activate the EDG function, false to disable this function

    • edg_stat_ip  SDK client IP address

    • edg_port  SDK client port number

    • edg_mode  EDG mode, default value is 0; 0 means all EDG-related interfaces can be called; 1 means all interfaces except edg_servo_j and edg_servo_p can be called

Robotic arm high-speed acquisition of EDG feedback data

int edg_get_stat(ref int handle, ref JKTYPE.EDGState edg_state, byte robot_index)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • edg_state EDG feedback data (including joint position, velocity, torque, Cartesian position, and sensor data)

    • robot_index Target robot identifier: 0 for a single arm; 0 or 1 for dual arms according to controller configuration. This signature requires the argument; it cannot be omitted.

Robotic arm acquisition of EDG feedback data issuance timestamp

int edg_stat_details(ref int handle, ulong[] details)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • details Timestamp

Robotic arm EDG joint space servo mode motion

Warning: Interface Notes

The current C# binding targets the three-argument C export, so additional step_num/robot_index arguments have no effect. Bind edg_servo_j_extend/edg_servo_p_extend to use extended parameters.

int edg_servo_j(ref int handle, ref JKTYPE.JointValue joint_pos, JKTYPE.MoveMode move_mode, int step_num, byte robot_index)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • joint_pos Target joint position for robot arm joint motion

    • move_mode Robot arm motion mode. Available types: Absolute motion (ABS), incremental motion (INCR), continuous motion (CONTINUE), and stop (STOP)

    • step_num Cycle subdivision; edg_servo_j motion cycle = step_num*8ms, where step_num>=1, default value is 1

    • robot_index Target robot identifier: 0 for a single arm; 0 or 1 for dual arms according to controller configuration. This signature requires the argument; it cannot be omitted.

Robotic arm EDG Cartesian space servo mode motion

Warning: Interface Notes

The current C# binding targets the three-argument C export, so additional step_num/robot_index arguments have no effect. Bind edg_servo_j_extend/edg_servo_p_extend to use extended parameters.

int edg_servo_p(ref int handle, ref JKTYPE.CartesianPose cartesian_pose, JKTYPE.MoveMode move_mode, int step_num, byte robot_index)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • cartesian_pose target position for robot arm Cartesian space motion

    • move_mode Robot arm motion mode. Available types: Absolute motion (ABS), incremental motion (INCR), continuous motion (CONTINUE), and stop (STOP)

    • step_num multiplied subdivision cycle, edg_servo_p motion cycle is step_num*8ms, where step_num>=1

    • robot_index Target robot identifier: 0 for a single arm; 0 or 1 for dual arms according to controller configuration. This signature requires the argument; it cannot be omitted.

FTP

Initialize FTP client

Warning: Interface Notes

The current implementation retains the compatibility call and returns 0. FTP settings are initialized at login; each file transfer establishes its own connection.

int init_ftp_client(ref int i)
  • Parameters

    • i Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

Close FTP client

Warning: Interface Notes

The current implementation retains the compatibility call and returns 0. FTP settings are initialized at login; each file transfer establishes its own connection.

int close_ftp_client(ref int i)
  • Parameters

    • i Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

FTP download

int download_file(ref int handle, char[] local, char[] remote, int opt);
int download_file(ref int handle, [MarshalAs(UnmanagedType.LPStr)] string local, [MarshalAs(UnmanagedType.LPStr)] string remote, int opt)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • local: Absolute path of the local file name for download; if it is a folder, it must end with “/”

    • remote: Absolute path of the file name inside the controller; if it is a folder, it must end with “/”

    • opt: 1 single file, 2 folder

FTP upload

int upload_file(ref int handle, char[] local, char[] remote, int opt);
int upload_file(ref int handle, [MarshalAs(UnmanagedType.LPStr)] string local, [MarshalAs(UnmanagedType.LPStr)] string remote, int opt)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • local: Absolute path of the local file name; if it is a folder, it must end with “/”

    • remote: Absolute path of the file name inside the controller; if it is a folder, it must end with “/”

    • opt: 1 single file, 2 folder

FTP delete

int del_ftp_file(ref int handle, char[] remote, int opt);
int del_ftp_file(ref int handle, [MarshalAs(UnmanagedType.LPStr)] string remote, int opt)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • remote Internal file name of the controller

    • opt: 1 single file, 2 folder

FTP rename

int rename_ftp_file(ref int handle, char[] remote, char[] des, int opt);
int rename_ftp_file(ref int handle, [MarshalAs(UnmanagedType.LPStr)] string remote, [MarshalAs(UnmanagedType.LPStr)] string des, int opt)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • remote Original internal file name of the controller

    • des Target name for renaming

    • opt: 1 single file, 2 folder

FTP directory query

int get_ftp_dir(ref int handle, char[] remote, int type, StringBuilder ret );
int get_ftp_dir(ref int handle, [MarshalAs(UnmanagedType.LPStr)] string remote, int type, StringBuilder ret )
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • remote: Original file name inside the controller; query track “/track/”, query script program “/program/”

    • type Query type: 0 for files and subdirectories, 1 for files, 2 for subdirectories.

    • ret Returned query result

Payload Identification

Start identifying sensor end load

int start_torq_sensor_payload_identify(ref int handle, ref JKTYPE.JointValue joint_pos)

Get sensor end load identification status

Warning: Interface Notes

The binding uses EntryPoint get_torq_sensor_identify_status, but the C library exports get_torq_sensor_identify_staus. Correct the import symbol before use.

int get_torq_sensor_identify_status(ref int handle, ref int identify_status)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • identify_status Outputs payload identification status; see the corresponding C++ interface for status values.

Get sensor end load identification result

int get_torq_sensor_payload_identify_result(ref int handle, ref JKTYPE.PayLoad payload)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • payload End payload, unit: kg, mm

Set sensor end load

int set_torq_sensor_tool_payload(ref int handle, ref JKTYPE.PayLoad payload)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • payload End payload, unit: kg, mm

Get sensor end load

int get_torq_sensor_tool_payload(ref int handle, ref JKTYPE.PayLoad payload)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • payload End payload, unit: kg, mm

Tool Drag

Get force compliance control parameters

int get_admit_ctrl_config(ref int handle, ref JKTYPE.RobotAdmitCtrl admit_ctrl_cfg)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • admit_ctrl_cfg is the storage address of the robot arm’s force compliance control parameters, an array of 6 AdmitCtrlType elements corresponding to force compliance control parameters in the x, y, z, rx, ry, rz directions

[Set force compliance control parameters]

int set_admit_ctrl_config(ref int handle, int axis, int opt, double ftUser, double ftConstant, int ftNormalTrack, double ftReboundFK)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • axis 0, x-axis; 1, y-axis; 2, z-axis; 3, rx; 4, ry; 5, rz.

    • opt 0 off, 1 on.

    • ftUser damping, affects the stiffness the robot’s end shows to the external environment. The larger this parameter is, the greater the stiffness displayed by the robot’s end. Units are ×8 N·s/m (for x/y/z), ×16 Nm·s/(π·rad) (for rx/ry/rz)

    • ftConstant represents target force, units N (for x/y/z), Nm (for rx/ry/rz).

    • ftNormalTrack Normal tracking, set all to 0 during manual operation.

    • ftReboundFK rebound, indicates the elasticity coefficient between the robot’s compliance control process and the commanded trajectory (or initial position), units N/mm (for x/y/z), Nm/rad (for rx/ry/rz).

Enable or disable tool drag

int enable_admittance_ctrl(ref int handle, int enable_flag)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • enable_flag 0 disables tool dragging, 1 enables it

Enable tool dragging

int enable_tool_drive(ref int handle, int enable_flag)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • enable_flag 0 disables tool drag, 1 enables it.

Get tool dragging enable status

int get_tool_drive_state(ref int handle, ref int enable_flag, ref int state)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • enable_flag 1: on; 0: off. Query interfaces output this status.

    • state Dragging motion-limit warning status: 0 means no warning. The low 16 bits represent singularities 1–6, joint soft limits 1–9, and the speed limit, respectively.

Get tool dragging parameters

int get_tool_drive_config(ref int handle, ref JKTYPE.RobotToolDriveCtrl cfg)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • cfg Storage address for the robot arm force control compliance parameters, an array of 6 AdmitCtrlType, corresponding to the force compliance control parameters for the x, y, z, rx, ry, and rz directions.

Set force control drag feel parameters

int set_tool_drive_config(ref int handle, JKTYPE.ToolDriveConfig cfg)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • cfg Configuration for the tool drag.

Get tool drag coordinate system

int get_tool_drive_frame(ref int handle, ref JKTYPE.FTFrameType frame)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • frame Force-control or dragging reference frame; use FTFrameType values.

Set tool drag coordinate system

int set_tool_drive_frame(ref int handle, JKTYPE.FTFrameType frame)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • frame Force-control or dragging reference frame; use FTFrameType values.

Get fusion drag sensitivity

int get_fusion_drive_sensitivity_level(ref int handle, ref int level)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • level Sensitivity level, 0-5, 0 means off, the smaller the value, the less sensitive

Set fusion drag sensitivity

int set_fusion_drive_sensitivity_level(ref int handle, int level)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • level Sensitivity level, 0-5, 0 means off, the smaller the value, the less sensitive

Get motion restriction (singularity and joint limit) warning range

int get_motion_limit_warning_range(ref int handle, ref int warning_range)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • warning_range Range level, 1-5, the smaller the value, the larger the warning range

Set motion restriction (singularity and joint limit) warning range

int set_motion_limit_warning_range(ref int handle, int warning_range)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • warning_range Range level, 1-5, the smaller the value, the larger the warning range

Force control

Set constant-force compliance control coordinate system

int set_ft_ctrl_frame(ref int handle, JKTYPE.FTFrameType ftFrame)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • ftFrame 0: The directional axis of the force control coordinate system will remain parallel to the currently active tool coordinate system in real time; 1: The directional axis of the force control coordinate system will remain parallel to the currently active user coordinate system in real time.

Get constant-force compliance control coordinate system

int get_ft_ctrl_frame(ref int handle,ref JKTYPE.FTFrameType ftFrame)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • ftFrame 0: The directional axis of the force control coordinate system will remain parallel to the currently active tool coordinate system in real time; 1: The directional axis of the force control coordinate system will remain parallel to the currently active user coordinate system in real time.

Set force control type and zero calibration (initialization) options

int set_compliant_type(ref int handle, int sensor_compensation, int compliance_type)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • sensor_compensation 1 means immediately perform a sensor zero calibration, and switch APP’s real-time force curve display and torq_sensor_monitor_data.actTorque to actual external force; 0 means no zero calibration, and when not in force control state, switch APP’s real-time force curve display and torq_sensor_monitor_data.actTorque to sensor’s raw readings (if in force control state it still displays actual external force).

    • compliance_type 0 means no compliance control method is used, 1 means constant force compliance control is enabled, 2 means speed compliance control is enabled.

Get force control type and reading display (initialization) status

int get_compliant_type(ref int handle, ref int sensor_compensation, ref int compliance_type)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • sensor_compensation indicates whether sensor compensation is enabled; 1 means APP’s real-time force curve display and torq_sensor_monitor_data.actTorque show actual external force; 0 means when not in force control state APP’s real-time force curve display and torq_sensor_monitor_data.actTorque show sensor’s raw readings (if in force control state it still shows actual external force).

    • compliance_type 0 means no compliance control method is used; 1 means constant force compliance control; 2 means speed compliance control

Set compliant control force condition

int set_compliance_condition(ref int handle, ref JKTYPE.FTxyz ft)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • ft is the compliant control torque limit; exceeding the limit value will slow down until stopping

Set approach speed limit

int set_approach_speed_limit(ref int handle, double vel, double angularVel)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • vel linear speed limit, mm/s

    • angularVel angular speed limit, rad/s

Get approach speed limit

int get_approach_speed_limit(ref int handle, ref double vel, ref double angularVel)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • vel Linear speed limit in mm/s; the getter outputs the current limit.

    • angularVel Angular speed limit in rad/s.

Set constant-force control tolerance

int set_ft_tolerance(ref int handle, double force, double torque)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • force force tolerance, N

    • torque torque tolerance, Nm

Get constant-force control tolerance

int get_ft_tolerance(ref int handle, ref double force, ref double torque)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • force force tolerance, N

    • torque torque tolerance, Nm

Activate/Deactivate Constant Force Compliant Control

int set_ft_ctrl_mode(ref int handle, int mode)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • mode Enable constant-force compliance control with 1; disable it with 0.

Get constant-force compliance enable status

int get_ft_ctrl_mode(ref int handle,ref int mode)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • mode Outputs whether constant-force compliance control is enabled.

Set constant-force compliance control parameters

int set_ft_ctrl_config(ref int handle, JKTYPE.AdmitCtrlType cfg)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • cfg Constant-force compliance axis configuration: axis, opt, ft_user, ft_rebound, ft_constant, ft_normal_track.

Get constant-force compliance control parameters

int get_ft_ctrl_config(ref int handle,ref JKTYPE.RobotAdmitCtrl cfg)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • cfg Storage address for the robot arm force control compliance parameters, an array of 6 AdmitCtrlType, corresponding to the force compliance control parameters for the x, y, z, rx, ry, and rz directions.

Collision

Query whether the robot arm is in collision protection mode

int is_in_collision(ref int handle, ref bool in_collision)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • in_collision Interrogate results

Recover from collision protection mode after collision

int collision_recover(ref int handle)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

Set robot arm collision level

int set_collision_level(ref int handle, int level)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • level Collision level, range [0 to 5], where 0 disables collision, 1 is collision threshold 25N, 2 is collision threshold 50N, 3 is collision threshold 75N, 4 is collision threshold 100N, 5 is collision threshold 125N

Get collision level set by machine

int get_collision_level(ref int handle, ref int level)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • level Collision level, range [0 to 5], where 0 disables collision, 1 is collision threshold 25N, 2 is collision threshold 50N, 3 is collision threshold 75N, 4 is collision threshold 100N, 5 is collision threshold 125N

Kinematics

Robotic arm inverse kinematics solution

int kine_inverse(ref int handle, ref JKTYPE.JointValue ref_pos, ref JKTYPE.CartesianPose cartesian_pose, ref JKTYPE.JointValue joint_pos)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • ref_pos Reference joint space position for inverse solution calculation

    • cartesian_pose Cartesian space pose value

    • joint_pos Joint space position calculation result when calculation is successful

Robotic arm forward kinematics solution

int kine_forward(ref int handle, ref JKTYPE.JointValue joint_pos, ref JKTYPE.CartesianPose cartesian_pose)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • joint_pos Joint space position

    • cartesian_pose Cartesian space pose calculation result

Robotic arm inverse solution extension

int kine_inverse_extend(ref int handle, ref JKTYPE.JointValue ref_pos, ref JKTYPE.CartesianPose cartesian_pose, ref JKTYPE.JointValue joint_pos, ref JKTYPE.CartesianPose tool, ref JKTYPE.CartesianPose userFrame)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • ref_pos Reference joint space position for inverse solution calculation

    • cartesian_pose Cartesian space pose value

    • joint_pos Joint space position calculation result when calculation is successful

    • tool Specified tool coordinate system; if not specified, use the current default tool coordinate system

    • userFrame Specified user coordinate system; if not specified, use the current default user coordinate system

Extended robot arm forward kinematics calculation

int kine_forward_extend(ref int handle, ref JKTYPE.JointValue joint_pos, ref JKTYPE.CartesianPose cartesian_pose, ref JKTYPE.CartesianPose tool, ref JKTYPE.CartesianPose userFrame)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • joint_pos Joint space position

    • cartesian_pose Cartesian space pose calculation result

    • tool Specified tool coordinate system; if not specified, use the current default tool coordinate system

    • userFrame Specified user coordinate system; if not specified, use the current default user coordinate system

Convert Euler angles to rotation matrix

int rpy_to_rot_matrix(ref int handle, ref JKTYPE.Rpy rpy, ref JKTYPE.RotMatrix rot_matrix)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • rpy Euler angle data to be converted

    • rot_matrix Converted rotation matrix

Convert rotation matrix to Euler angles

int rot_matrix_to_rpy(ref int handle, ref JKTYPE.RotMatrix rot_matrix, ref JKTYPE.Rpy rpy)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • rot_matrix Rotation matrix data to be converted

    • rpy Converted RPY Euler angle result

Convert quaternion to rotation matrix

int quaternion_to_rot_matrix(ref int handle, ref JKTYPE.Quaternion quaternion, ref JKTYPE.RotMatrix rot_matrix)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • quaternion Quaternion data to be converted

    • rot_matrix Converted rotation matrix result

Convert rotation matrix to quaternion

int rot_matrix_to_quaternion(ref int handle, ref JKTYPE.RotMatrix rot_matrix, ref JKTYPE.Quaternion quaternion)
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • rot_matrix Rotation matrix to be converted

    • quaternion Resulting converted quaternion

Set Vibration Suppression Mode

int set_vibsuppress_mode(ref int handle, int mode, int robot_id = 0)

int set_vibsuppress_mode_with_robot_id(ref int handle, int mode, int robot_id);
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • mode Vibration suppression mode, 0: Off, 1: Mode 1, 2: Mode 2

    • robot_id Target robot identifier: 0 for a single arm; 0 or 1 for dual arms according to controller configuration. Optional in overloads declaring a default; default: 0.

  • Parameters

    • mode Vibration suppression mode, 0: Off, 1: Mode 1, 2: Mode 2

    • robot_id Reserved; always pass 0.

Enable vibration suppression settings

int vibsuppress_on(ref int handle, double frequency, double damping = 0.05, int robot_id = 0)

int vibsuppress_on_with_robot_id(ref int handle, double frequency, double damping, int robot_id);
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • frequency Vibration frequency

    • damping Vibration damping, default value is 0.05

    • robot_id Target robot identifier: 0 for a single arm; 0 or 1 for dual arms according to controller configuration. Optional in overloads declaring a default; default: 0.

  • Parameters

    • frequency Vibration frequency

    • damping Vibration damping, default value is 0.05

    • robot_id Reserved; always pass 0.

The initial default frequency for each model is shown in the table below:

Load/Model

Default frequency (Hz)

MiniCobot1

16

MiniCobot2

15

3kg (Zu3 and similar)

14

5kg(C5/A5)

12

7kg (Zu7 and similar)

12

12kg (Zu12 and similar)

8

16kg(Zu16)

7.5

18kg(Zu18)

7.5

20kg(Zu20)

7.5

30kg(Zu30)

7.4

Max40

5

Disable vibration suppression settings

int vibsuppress_off(ref int handle, int robot_id = 0)

int vibsuppress_off_with_robot_id(ref int handle, int robot_id);
  • Parameters

    • handle Outputs the robot handle at login; other interfaces take the address of an authenticated handle.

    • robot_id Target robot identifier: 0 for a single arm; 0 or 1 for dual arms according to controller configuration. Optional in overloads declaring a default; default: 0.

  • Parameters

    • robot_id Reserved; always pass 0.

Interface call return value list and troubleshooting

Error codes

Description

Handling suggestions

0

success

null

2

interface error or controller not supported

Check the controller and SDK version information, upgrade or use another interface

-1

invalid handler

Please check whether login is done before calling the interface

-2

invalid parameter

Please check whether the parameters are correct

-3

failed to connect

Please check the network connection status, or whether the robot IP is correct

-4

inverse kinematics error

Inverse kinematics failed, please check the current coordinate system, or whether the reference joint angles are reasonable

-5

emergency stop

Emergency stop state, status retained

-6

not powered on

Not powered on

-7

not enabled

Not enabled

-8

not in servo mode

Not in servo mode. When executing servoJP, you must first enter servo mode. Please check whether the corresponding interface is called

-9

must disable enable before powering off

Must disable enable before powering off

-10

cannot operate, program is running

Cannot operate, a program is currently running. Please close the program first

-11

cannot open file, or file does not exist

Cannot open file, or file does not exist

-12

motion abnormal

Abnormal movement, possibly near a singularity point or exceeding robot movement limits

-14

ftp error

ftp abnormal

-15

socket msg or value oversize

Exceeding limit abnormal

-16

kine_forward error

Forward kinematics failed

-17

not support empty folder

Empty folders are not supported

-20

protective stop

Safeguard (Protective) Stop

-21

emergency stop

Emergency stop

-22

on soft limit

In soft limit position, manual drag of the robot is not possible; use the teaching function in the APP to approach the soft limit

-30

fail to encode cmd string

Command encoding failed, usually due to an error while parsing the message returned by the controller

-31

fail to decode cmd string

Command decoding failed, usually due to an error while parsing the message returned by the controller

-32

fail to uncompress port 10004 string

Failed to decompress data from port 10004, possibly due to network fluctuations or excessive data size

-40

move linear error

Linear movement failed, please check if there are any singular regions in the path

-41

move joint error

Joint movement failed, please check the set joint angles

-42

move circular error

Arc motion failed, please check the set parameters

-50

block_wait timeout

Blocking wait timeout

-51

power on timeout

Power-on timeout

-52

power off timeout

Power-off timeout

-53

enable timeoff

Enable timeout

-54

disable timeout

Disable timeout

-55

set userframe timeout

Setting user coordinate system timeout

-56

set tool timeout

Setting tool coordinate system timeout

-57

edg init failed

EDG function initialization failed

-58

edg is running, cannot use servo_j or servo_p

EDG function is running, cannot use servo_j or servo_p interface

-59

Current EDG mode does not support using edg_servo_j or edg_servo_p.

EDG function is running, cannot use edg_servo_j or edg_servo_p interface

-60

set io timeout

Setting IO timeout

-61

operation timeout

Interface timeout

-62

servo queue is full

Servo queue is full

-63

servo is not running

Servo mode is not started

-9997

not implement

Interface not implemented

-9998

deprecated interface

Interface will be removed in the future (function still available)

-9999

obsolete interface

Interface will be removed in the future (function unavailable)

Issue feedback

If there are any inaccurate descriptions or mistakes in the document, we kindly ask readers for their understanding and corrections. If you find any problems or wish to provide suggestions while reading, you can send an email to support@jaka.com, and we will reply to you as soon as possible.