15 static int BAUDRATES[13] = { 4800, 9600, 19200, 38400, 57600, 115200, 230400, 460800, 921600, 1000000, 1500000, 2000000, 2500000 };
18 for (
int i = 0; i < 13; i++) {
if (
BAUDRATES[i] == baud)
return i; }
52 unsigned char *send_data =
new unsigned char[num];
53 for (
int i = 0; i < num; i++) { send_data[i] = (
unsigned char)datas[i];}
55 std::lock_guard<std::mutex> locker(
mutex_);
56 int ret =
send_xbus(funcode, send_data, num);
60 ret =
send_pend(funcode, 0, timeout, NULL);
65 unsigned char *send_data =
new unsigned char[num];
66 for (
int i = 0; i < num; i++) { send_data[i] = (
unsigned char)datas[i]; }
68 std::lock_guard<std::mutex> locker(
mutex_);
69 int ret =
send_xbus(funcode, send_data, num);
73 ret =
send_pend(funcode, 0, timeout, NULL);
78 unsigned char *send_data =
new unsigned char[num];
79 int ret =
get_nu8(funcode, send_data, num);
80 for (
int i = 0; i < num; i++) { rx_data[i] = send_data[i]; }
86 std::lock_guard<std::mutex> locker(
mutex_);
93 unsigned char *send_data =
new unsigned char[num * 2];
94 for (
int i = 0; i < num; i++) {
bin16_to_8(datas[i], &send_data[i * 2]); }
96 std::lock_guard<std::mutex> locker(
mutex_);
97 int ret =
send_xbus(funcode, send_data, num * 2);
104 std::lock_guard<std::mutex> locker(
mutex_);
107 unsigned char *datas =
new unsigned char[num * 2];
109 for (
int i = 0; i < num; i++) { rx_data[i] =
bin8_to_16(&datas[i * 2]); }
115 unsigned char *send_data =
new unsigned char[num * 4];
118 std::lock_guard<std::mutex> locker(
mutex_);
119 int ret =
send_xbus(funcode, send_data, num * 4);
127 unsigned char *send_data =
new unsigned char[num * 4];
130 std::lock_guard<std::mutex> locker(
mutex_);
131 int ret =
send_xbus(funcode, send_data, num * 4);
138 std::lock_guard<std::mutex> locker(
mutex_);
141 unsigned char *datas =
new unsigned char[num * 4];
149 unsigned char *send_data =
new unsigned char[128];
152 std::lock_guard<std::mutex> locker(
mutex_);
153 int ret =
send_xbus(funcode, send_data, txn * 4);
156 unsigned char *datas =
new unsigned char[128];
164 unsigned char *send_data =
new unsigned char[txn * 4];
167 std::lock_guard<std::mutex> locker(
mutex_);
168 int ret =
send_xbus(funcode, send_data, txn * 4);
171 unsigned char *rx_data =
new unsigned char[txn * 4];
179 unsigned char *send_data =
new unsigned char[num * 4 + len];
181 for (
int i = 0; i < len; i++) { send_data[num * 4 + i] = additional[i]; }
183 std::lock_guard<std::mutex> locker(
mutex_);
184 int ret =
send_xbus(funcode, send_data, num * 4 + len);
211 int txdata[1] = { value };
216 int txdata[2] = { times, spdx };
221 int txdata[1] = { times };
238 int txdata[1] = { on_off };
243 float txdata[1] = { lspd_mm };
248 float txdata[1] = { jspd_rad };
256 int UxbusCmd::get_reduced_states(
int *on,
int xyz_list[6],
float *tcp_speed,
float *joint_speed,
float jrange_rad[14],
int *fense_is_on,
int *collision_rebound_is_on,
int length) {
257 unsigned char *rx_data =
new unsigned char[length];
264 if (jrange_rad != NULL) {
hex_to_nfp32(&rx_data[21], jrange_rad, 14); }
265 if (fense_is_on != NULL) { *fense_is_on = rx_data[77]; }
266 if (collision_rebound_is_on != NULL) { *collision_rebound_is_on = rx_data[78]; }
293 int txdata[1] = { on_off };
298 int txdata[1] = { on_off };
303 int txdata[2] = { id, value };
328 int txdata[1] = { 0 };
333 int txdata[1] = { 0 };
338 int txdata[1] = { 0 };
343 int txdata[2] = { axis, en };
348 int txdata[1] = { value };
356 float txdata[9] = { 0 };
357 for (
int i = 0; i < 6; i++) { txdata[i] = mvpose[i]; }
366 float txdata[10] = { 0 };
367 for (
int i = 0; i < 6; i++) { txdata[i] = mvpose[i]; }
378 float txdata[10] = { 0 };
379 for (
int i = 0; i < 7; i++) { txdata[i] = mvjoint[i]; }
387 float txdata[10] = { 0 };
388 for (
int i = 0; i < 7; i++) { txdata[i] = mvjoint[i]; }
396 float txdata[9] = { 0 };
397 for (
int i = 0; i < 6; i++) { txdata[i] = mvpose[i]; }
405 float txdata[3] = { 0 };
413 float txdata[10] = { 0 };
414 for (
int i = 0; i < 7; i++) { txdata[i] = mvjoint[i]; }
422 float txdata[9] = { 0 };
423 for (
int i = 0; i < 6; i++) { txdata[i] = mvpose[i]; }
431 float txdata[7] = { 0 };
432 for (
int i = 0; i < 7; i++) { txdata[i] = jnt_taus[i]; }
441 int txdata[1] = { level };
450 float txdata[1] = { sltime };
456 float txdata[16] = { 0 };
457 for (
int i = 0; i < 6; i++) {
458 txdata[i] = pose1[i];
459 txdata[6 + i] = pose2[i];
464 txdata[15] = percent;
470 float txdata[1] = { jerk };
475 float txdata[1] = { maxacc };
480 float txdata[1] = { jerk };
485 float txdata[1] = { maxacc };
494 float txdata[4] = { mass, load_offset[0], load_offset[1], load_offset[2] };
546 unsigned char *txdata =
new unsigned char[7];
551 std::lock_guard<std::mutex> locker(
mutex_);
559 unsigned char *txdata =
new unsigned char[3];
563 std::lock_guard<std::mutex> locker(
mutex_);
567 unsigned char *rx_data =
new unsigned char[4];
575 unsigned char *txdata =
new unsigned char[7];
580 std::lock_guard<std::mutex> locker(
mutex_);
588 unsigned char *txdata =
new unsigned char[3];
592 std::lock_guard<std::mutex> locker(
mutex_);
596 unsigned char *rx_data =
new unsigned char[4];
639 unsigned char *txdata =
new unsigned char[7];
644 std::lock_guard<std::mutex> locker(
mutex_);
652 unsigned char *txdata =
new unsigned char[3];
656 std::lock_guard<std::mutex> locker(
mutex_);
660 unsigned char *rx_data =
new unsigned char[4];
667 unsigned char *txdata =
new unsigned char[7];
672 std::lock_guard<std::mutex> locker(
mutex_);
680 unsigned char *txdata =
new unsigned char[3];
684 std::lock_guard<std::mutex> locker(
mutex_);
688 unsigned char *rx_data =
new unsigned char[4];
699 *io1 = (int)tmp & 0x0001;
700 *io2 = ((int)tmp & 0x0002) >> 1;
708 if (value) { tmp = tmp | 0x0001; }
710 else if (ionum == 2) {
712 if (value) { tmp = tmp | 0x0002; }
723 *value = (float)(tmp * 3.3 / 4095.0);
731 *value = (float)(tmp * 3.3 / 4095.0);
746 if (baud_inx == -1)
return -1;
749 int baud_i = (int)val;
750 if (baud_i != baud_inx) {
761 unsigned char *txdata =
new unsigned char[len_t + 1];
763 for (
int i = 0; i < len_t; i++) { txdata[i + 1] = modbus_t[i]; }
765 std::lock_guard<std::mutex> locker(
mutex_);
775 unsigned char *txdata =
new unsigned char[9];
776 unsigned char *rx_data =
new unsigned char[254];
790 unsigned char *txdata =
new unsigned char[6];
801 unsigned char *txdata =
new unsigned char[2];
809 unsigned char *txdata =
new unsigned char[2];
821 unsigned char *rx_data =
new unsigned char[254];
829 unsigned char *txdata =
new unsigned char[4];
830 txdata[0] = ((int)pulse >> 24) & 0xFF;
831 txdata[1] = ((int)pulse >> 16) & 0xFF;
832 txdata[2] = ((int)pulse >> 8) & 0xFF;
833 txdata[3] = (int)pulse & 0xFF;
840 unsigned char *txdata =
new unsigned char[2];
848 unsigned char *rx_data =
new unsigned char[254];
871 unsigned char *txdata =
new unsigned char[7];
876 std::lock_guard<std::mutex> locker(
mutex_);
884 unsigned char *txdata =
new unsigned char[3];
888 std::lock_guard<std::mutex> locker(
mutex_);
892 unsigned char *rx_data =
new unsigned char[4];
900 unsigned char *txdata =
new unsigned char[7];
905 std::lock_guard<std::mutex> locker(
mutex_);
913 unsigned char *txdata =
new unsigned char[3];
917 std::lock_guard<std::mutex> locker(
mutex_);
921 unsigned char *rx_data =
new unsigned char[4];
939 *value = (float)(tmp * 10.0 / 4095.0);
945 *value = (float)(tmp * 10.0 / 4095.0);
951 tmp[1] = tmp[1] | (0x0100 << (ionum - 8));
954 tmp[1] = tmp[1] | (0x0001 << (ionum - 8));
960 tmp = tmp | (0x0100 << ionum);
963 tmp = tmp | (0x0001 << ionum);
970 int val = (int)(value / 10.0 * 4095.0);
975 int val = (int)(value / 10.0 * 4095.0);
980 int txdata[2] = { num, fun };
984 int txdata[2] = { num, fun };
1007 int UxbusCmd::cgpio_get_state(
int *state,
int *digit_io,
float *analog,
int *input_conf,
int *output_conf,
int *input_conf2,
int *output_conf2) {
1008 unsigned char *rx_data =
new unsigned char[50];
1011 state[0] = rx_data[0];
1012 state[1] = rx_data[1];
1013 for (
int i = 0; i < 4; i++) {
1014 digit_io[i] =
bin8_to_16(&rx_data[2 + i * 2]);
1015 analog[i] = (float)(
bin8_to_16(&rx_data[10 + i * 2]) / 4095.0 * 10.0);
1017 for (
int i = 0; i < 8; i++) {
1018 input_conf[i] = rx_data[18 + i];
1019 output_conf[i] = rx_data[26 + i];
1021 if (input_conf2 != NULL) {
1022 for (
int i = 0; i < 8; i++) {
1023 input_conf2[i] = rx_data[34 + i];
1026 if (output_conf2 != NULL) {
1027 for (
int i = 0; i < 8; i++) {
1028 output_conf2[i] = rx_data[42 + i];
1036 float txdata[14] = { 0 };
1037 for (
int i = 0; i < 6; i++) { txdata[i] = pose1[i]; }
1038 for (
int i = 0; i < 6; i++) { txdata[6+i] = pose2[i]; }
1039 unsigned char *hexdata =
new unsigned char[50];
1041 hexdata[48] = orient_type_in;
1042 hexdata[49] = orient_type_out;
1044 std::lock_guard<std::mutex> locker(
mutex_);
1048 unsigned char *datas =
new unsigned char[24];
1060 float txdata[9] = { 0 };
1061 for (
int i = 0; i < 6; i++) { txdata[i] = mvpose[i]; }
1065 char additional[2] = { (char)mvcoord, (
char)relative };
1070 float txdata[9] = { 0 };
1071 for (
int i = 0; i < 6; i++) { txdata[i] = mvpose[i]; }
1074 txdata[8] = (char)tool_coord;
1075 char additional[1] = { (char)relative };
1080 unsigned char *txdata =
new unsigned char[6];
1085 std::lock_guard<std::mutex> locker(
mutex_);
1093 unsigned char *txdata =
new unsigned char[6];
1098 std::lock_guard<std::mutex> locker(
mutex_);
1106 unsigned char *txdata =
new unsigned char[18];
1112 std::lock_guard<std::mutex> locker(
mutex_);
1120 unsigned char *txdata =
new unsigned char[18];
1126 std::lock_guard<std::mutex> locker(
mutex_);
1134 unsigned char *txdata =
new unsigned char[19];
1136 int val = (int)(value / 10.0 * 4095.0);
1141 std::lock_guard<std::mutex> locker(
mutex_);
1149 int txdata[2] = { io_type, val };
1154 int txdata[1] = { tau_or_i };
1163 int txdata[1] = { on_off };
1169 char additional[1] = { (char)tool_type };
1173 int txdata[1] = { tool_type };
1183 float txdata[7] = { 0 };
1184 for (
int i = 0; i < 7; i++) { txdata[i] = jnt_v[i]; }
1185 char additional[1] = { (char)jnt_sync };
1190 float txdata[6] = { 0 };
1191 for (
int i = 0; i < 6; i++) { txdata[i] = line_v[i]; }
1192 char additional[1] = { (char)coord };
int set_gravity_dir(float gravity_dir[3])
static const unsigned char DELAYED_CGPIO_SET
static const unsigned char PLAY_TRAJ
int get_reduced_states(int *on, int xyz_list[6], float *tcp_speed, float *joint_speed, float jrange_rad[14]=NULL, int *fense_is_on=NULL, int *collision_rebound_is_on=NULL, int length=21)
int set_collis_sens(int value)
int set_nfp32_with_bytes(int funcode, float *datas, int num, char *additional, int n)
static const unsigned char SET_GRAVITY_DIR
static const unsigned short SOFT_REBOOT
int set_nu8(int funcode, int *datas, int num)
int gripper_set_posspd(float speed)
int gripper_addr_r16(int addr, float *value)
static const unsigned char GET_REPORT_TAU_OR_I
static const unsigned char SET_LOAD_PARAM
void sleep_milliseconds(unsigned long milliseconds)
int gripper_modbus_set_pos(float pulse)
int set_joint_maxacc(float maxacc)
static const unsigned char SLEEP_INSTT
int get_err_code(int *rx_data)
int get_version(unsigned char rx_data[40])
int gripper_modbus_clean_err(void)
int set_safe_level(int level)
void fp32_to_hex(double dataf, unsigned char datahex[4])
static const unsigned char DELAYED_TGPIO_SET
int tgpio_get_analog1(float *value)
static const unsigned char SERVO_DBMSG
int set_timeout(float timeout)
int playback_traj_old(int times)
static const unsigned char SERVO_W16B
int cgpio_get_analog2(float *value)
static const unsigned char IS_TCP_LIMIT
int gripper_set_mode(int value)
int move_jointb(float mvjoint[7], float mvvelo, float mvacc, float mvradii)
static const unsigned char CGPIO_SET_OUT_FUN
static const unsigned char SET_SIMULATION_ROBOT
static const unsigned short MT_ZERO
static const unsigned char MOVE_JOINT
static const unsigned char SET_WORLD_OFFSET
static const unsigned char SAVE_CONF
int set_nu8_char(int funcode, char *datas, int num)
static const unsigned char SET_TCP_OFFSET
static const unsigned char TGPIO_MB_TIOUT
static const unsigned char SAVE_TRAJ
static const unsigned char GET_REDUCED_MODE
static const unsigned char GET_TCP_POSE_AA
static const unsigned char MOVE_LINE_TOOL
int move_lineb(float mvpose[6], float mvvelo, float mvacc, float mvtime, float mvradii)
static const unsigned char TGPIO_ERR
int get_hd_types(int *rx_data)
static const unsigned char CGPIO_SET_ANALOG2
static const int TGPIO_ID
int set_tcp_maxacc(float maxacc)
int get_report_tau_or_i(int *rx_data)
int get_nu16(int funcode, int *rx_data, int num)
static const unsigned char GET_REDUCED_STATE
static const int GRIPPER_ID
int set_world_offset(float pose_offset[6])
int config_io_stop_reset(int io_type, int val)
int set_reduced_jrange(float jrange_rad[14])
static const unsigned char CGPIO_SET_DIGIT
int servo_get_dbmsg(int rx_data[16])
static const unsigned char GET_SAFE_LEVEL
virtual int check_xbus_prot(unsigned char *data, int funcode)
void hex_to_nfp32(unsigned char *datahex, float *dataf, int n)
int shutdown_system(int value)
int gripper_get_errcode(int rx_data[2])
static const unsigned char SERVO_W32B
int get_fk(float angles[7], float pose[6])
int gripper_modbus_w16s(int addr, float value, int len)
int load_traj(char filename[81])
static const unsigned char GET_STATE
static const unsigned char SET_IO_STOP_RESET
int vc_set_linev(float line_v[6], int coord)
int gripper_modbus_set_zero(void)
int get_state(int *rx_data)
int set_xyz_limits(int xyz_list[6])
static const unsigned short POS_SPD
int is_tcp_limit(float pose[6], int *value)
static const unsigned char CGPIO_SET_IN_FUN
int bin8_to_32(unsigned char *a)
int tgpio_get_digital(int *io1, int *io2)
static const unsigned char CGPIO_GET_ANALOG1
int reload_dynamics(void)
int set_reduced_jointspeed(float jspd_rad)
int set_servot(float jnt_taus[7])
static const unsigned char POSITION_TGPIO_SET
static const unsigned char MOVE_JOINTB
int save_traj(char filename[81])
int set_collision_tool_model(int tool_type, int n=0, float *argv=NULL)
int set_nint32(int funcode, int *datas, int num)
int get_joint_pose(float angles[7])
void nint32_to_hex(int *data, unsigned char *datahex, int n)
static const unsigned short CURR_POS
int move_circle(float pose1[6], float pose2[6], float mvvelo, float mvacc, float mvtime, float percent)
static const unsigned char SET_JOINT_MAXACC
static const unsigned char VC_SET_JOINTV
static const unsigned char MOVE_SERVO_CART
int gripper_clean_err(void)
int move_servo_cartesian(float mvpose[6], float mvvelo, float mvacc, float mvtime)
static const unsigned char CHECK_VERIFY
static const unsigned char GET_TCP_POSE
int is_joint_limit(float joint[7], int *value)
static const unsigned char MOVE_LINE_AA
static const unsigned char LOAD_TRAJ
int swop_nfp32(int funcode, float tx_datas[], int txn, float *rx_data, int rxn)
static const unsigned char SET_MODE
int set_nu16(int funcode, int *datas, int num)
static const unsigned char MOVE_SERVOJ
static const unsigned char SET_REDUCED_MODE
static const unsigned char MOVE_CIRCLE
static const unsigned char CNTER_RESET
static const unsigned char SET_TCP_JERK
int cgpio_get_state(int *state, int *digit_io, float *analog, int *input_conf, int *output_conf, int *input_conf2=NULL, int *output_conf2=NULL)
int playback_traj(int times, int spdx=1)
static const unsigned char SET_LIMIT_XYZ
static const unsigned char SET_STATE
int get_traj_rw_status(int *rx_data)
int cgpio_position_set_analog(int ionum, float value, float xyz[3], float tol_r)
static const int ERR_NOTTCP
static const unsigned short CON_EN
static const unsigned char VC_SET_CARTV
int move_line_aa(float mvpose[6], float mvvelo, float mvacc, float mvtime, int mvcoord=0, int relative=0)
int get_robot_sn(unsigned char rx_data[40])
int tgpio_addr_w16(int addr, float value)
static const unsigned char SET_REDUCED_TRSV
int servo_addr_r16(int id, int addr, float *value)
static const unsigned char SERVO_ZERO
void nfp32_to_hex(float *dataf, unsigned char *datahex, int n)
int move_gohome(float mvvelo, float mvacc, float mvtime)
int get_ik(float pose[6], float angles[7])
int get_nu8(int funcode, int *rx_data, int num)
int gripper_modbus_set_en(int value)
int tgpio_set_modbus(unsigned char *send_data, int length, unsigned char *recv_data)
static const unsigned char SET_SAFE_LEVEL
int set_modbus_timeout(int value)
int check_verification(int *rx_data)
static const unsigned char CLEAN_CONF
static const unsigned char GET_ROBOT_SN
int get_nfp32(int funcode, float *rx_data, int num)
int gripper_modbus_get_errcode(int *err)
int set_simulation_robot(int on_off)
static const unsigned char SET_TRAJ_RECORD
static const unsigned char SET_REDUCED_P2PV
static const unsigned char SET_FENSE_ON
int servo_addr_w32(int id, int addr, float value)
int cgpio_set_infun(int ionum, int fun)
void bin16_to_8(int a, unsigned char *b)
int get_position_aa(float pose[6])
int cgpio_set_auxdigit(int ionum, int value)
static const unsigned short ERR_CODE
static const unsigned char MOVE_SERVO_CART_AA
static int get_baud_inx(int baud)
int get_pose_offset(float pose1[6], float pose2[6], float offset[6], int orient_type_in=0, int orient_type_out=0)
int gripper_modbus_set_posspd(float speed)
int gripper_set_pos(float pulse)
static const unsigned char MOVE_HOME
int set_tcp_offset(float pose_offset[6])
static const unsigned char GET_IK
int set_fense_on(int on_off)
virtual int send_pend(int funcode, int num, int timeout, unsigned char *rx_data)
int tgpio_addr_r32(int addr, float *value)
static const unsigned char CNTER_PLUS
int set_modbus_baudrate(int baud)
int gripper_modbus_r16s(int addr, int len, unsigned char *rx_data)
static const unsigned char IS_JOINT_LIMIT
int gripper_modbus_set_mode(int value)
static const unsigned char CGPIO_SET_ANALOG1
int servo_set_zero(int id)
int tgpio_get_analog2(float *value)
static const unsigned char GET_TRAJ_RW_STATUS
int set_collis_reb(int on_off)
static const unsigned char SERVO_R16B
int get_safe_level(int *level)
int get_tcp_pose(float pose[6])
int gripper_addr_r32(int addr, float *value)
static const unsigned char CGPIO_GET_DIGIT
static const unsigned char POSITION_CGPIO_SET
int gripper_set_zero(void)
int cgpio_get_auxdigit(int *value)
int gripper_get_pos(float *pulse)
int move_line_tool(float mvpose[6], float mvvelo, float mvacc, float mvtime)
static const unsigned char TGPIO_W16B
int sleep_instruction(float sltime)
int get_joint_tau(float jnt_taus[7])
void bin8_to_ns16(unsigned char *a, int *data, int n)
int move_line(float mvpose[6], float mvvelo, float mvacc, float mvtime)
static const unsigned char GET_VERSION
static const unsigned char TGPIO_W32B
static const unsigned char GET_JOINT_TAU
static const unsigned short ANALOG_IO2
float hex_to_fp32(unsigned char datahex[4])
int get_cmdnum(int *rx_data)
static const unsigned char SET_TCP_MAXACC
static const unsigned char GET_HD_TYPES
static const unsigned char CGPIO_GET_STATE
static const unsigned char CLEAN_ERR
static const unsigned char MOVE_LINEB
int tgpio_addr_r16(int addr, float *value)
static const unsigned short RESET_ERR
static const unsigned short TAGET_POS
int set_tcp_jerk(float jerk)
static const unsigned char TGPIO_R32B
static const unsigned char MOVE_LINE
int servo_addr_r32(int id, int addr, float *value)
static const unsigned char CGPIO_GET_ANALOG2
int servo_addr_w16(int id, int addr, float value)
static const unsigned char SET_TEACH_SENS
int cgpio_position_set_digital(int ionum, int value, float xyz[3], float tol_r)
static const unsigned char SET_COLLIS_TOOL
static const unsigned char GET_CMDNUM
int set_record_traj(int value)
static const unsigned char TGPIO_MODBUS
int move_servoj(float mvjoint[7], float mvvelo, float mvacc, float mvtime)
static const unsigned char REPORT_TAU_OR_I
int is_nfp32(int funcode, float datas[], int txn, int *value)
int tgpio_position_set_digital(int ionum, int value, float xyz[3], float tol_r)
static const unsigned char SET_SELF_COLLIS_CHECK
int gripper_modbus_get_pos(float *pulse)
int tgpio_addr_w32(int addr, float value)
static const unsigned short CON_MODE
static const unsigned char GET_ERROR
int set_reduced_mode(int on_off)
int set_teach_sens(int value)
static const unsigned char SET_JOINT_JERK
int move_joint(float mvjoint[7], float mvvelo, float mvacc, float mvtime)
int set_reduced_linespeed(float lspd_mm)
int get_reduced_mode(int *rx_data)
int set_nfp32(int funcode, float *datas, int num)
static const unsigned char RELOAD_DYNAMICS
int set_self_collision_detection(int on_off)
int gripper_addr_w16(int addr, float value)
static const unsigned char CLEAN_WAR
int vc_set_jointv(float jnt_v[7], int jnt_sync)
static const unsigned short DIGITAL_IN
static const unsigned char TGPIO_R16B
static const unsigned short MODBUS_BAUDRATE
int set_tcp_load(float mass, float load_offset[3])
int set_joint_jerk(float jerk)
static const unsigned char GET_FK
int gripper_addr_w32(int addr, float value)
int move_servo_cart_aa(float mvpose[6], float mvvelo, float mvacc, int tool_coord=0, int relative=0)
static const unsigned char SERVO_R32B
int cgpio_set_outfun(int ionum, int fun)
static const unsigned short ANALOG_IO1
static const unsigned short DIGITAL_OUT
static const unsigned char SET_COLLIS_REB
static const unsigned char GET_JOINT_POS
static const unsigned char SET_BRAKE
static const unsigned char SHUTDOWN_SYSTEM
int motion_en(int id, int value)
int cgpio_set_analog2(float value)
virtual int send_xbus(int funcode, unsigned char *txdata, int num)
static const unsigned char MOTION_EN
int cgpio_get_analog1(float *value)
int cgpio_delay_set_digital(int ionum, int value, float delay_sec)
static const unsigned char SET_REDUCED_JRANGE
static const unsigned char SET_SERVOT
int set_report_tau_or_i(int tau_or_i)
int gripper_set_en(int value)
int set_brake(int axis, int en)
int bin8_to_16(unsigned char *a)
int cgpio_set_analog1(float value)
int tgpio_delay_set_digital(int ionum, int value, float delay_sec)
int tgpio_set_digital(int ionum, int value)