Public Member Functions | Private Attributes | List of all members
UxbusCmdSer Class Reference

#include <uxbus_cmd_ser.h>

Inheritance diagram for UxbusCmdSer:
Inheritance graph
[legend]

Public Member Functions

int check_xbus_prot (unsigned char *datas, int funcode)
 
void close (void)
 
int is_ok (void)
 
int send_pend (int funcode, int num, int timeout, unsigned char *ret_data)
 
int send_xbus (int funcode, unsigned char *datas, int num)
 
 UxbusCmdSer (SerialPort *arm_port)
 
 ~UxbusCmdSer (void)
 
- Public Member Functions inherited from UxbusCmd
int cgpio_delay_set_digital (int ionum, int value, float delay_sec)
 
int cgpio_get_analog1 (float *value)
 
int cgpio_get_analog2 (float *value)
 
int cgpio_get_auxdigit (int *value)
 
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 cgpio_position_set_analog (int ionum, float value, float xyz[3], float tol_r)
 
int cgpio_position_set_digital (int ionum, int value, float xyz[3], float tol_r)
 
int cgpio_set_analog1 (float value)
 
int cgpio_set_analog2 (float value)
 
int cgpio_set_auxdigit (int ionum, int value)
 
int cgpio_set_infun (int ionum, int fun)
 
int cgpio_set_outfun (int ionum, int fun)
 
int check_verification (int *rx_data)
 
int clean_conf (void)
 
int clean_err (void)
 
int clean_war (void)
 
int cnter_plus (void)
 
int cnter_reset (void)
 
int config_io_stop_reset (int io_type, int val)
 
int get_cmdnum (int *rx_data)
 
int get_err_code (int *rx_data)
 
int get_fk (float angles[7], float pose[6])
 
int get_hd_types (int *rx_data)
 
int get_ik (float pose[6], float angles[7])
 
int get_joint_pose (float angles[7])
 
int get_joint_tau (float jnt_taus[7])
 
int get_pose_offset (float pose1[6], float pose2[6], float offset[6], int orient_type_in=0, int orient_type_out=0)
 
int get_position_aa (float pose[6])
 
int get_reduced_mode (int *rx_data)
 
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 get_report_tau_or_i (int *rx_data)
 
int get_robot_sn (unsigned char rx_data[40])
 
int get_safe_level (int *level)
 
int get_state (int *rx_data)
 
int get_tcp_pose (float pose[6])
 
int get_traj_rw_status (int *rx_data)
 
int get_version (unsigned char rx_data[40])
 
int gripper_addr_r16 (int addr, float *value)
 
int gripper_addr_r32 (int addr, float *value)
 
int gripper_addr_w16 (int addr, float value)
 
int gripper_addr_w32 (int addr, float value)
 
int gripper_clean_err (void)
 
int gripper_get_errcode (int rx_data[2])
 
int gripper_get_pos (float *pulse)
 
int gripper_modbus_clean_err (void)
 
int gripper_modbus_get_errcode (int *err)
 
int gripper_modbus_get_pos (float *pulse)
 
int gripper_modbus_r16s (int addr, int len, unsigned char *rx_data)
 
int gripper_modbus_set_en (int value)
 
int gripper_modbus_set_mode (int value)
 
int gripper_modbus_set_pos (float pulse)
 
int gripper_modbus_set_posspd (float speed)
 
int gripper_modbus_set_zero (void)
 
int gripper_modbus_w16s (int addr, float value, int len)
 
int gripper_set_en (int value)
 
int gripper_set_mode (int value)
 
int gripper_set_pos (float pulse)
 
int gripper_set_posspd (float speed)
 
int gripper_set_zero (void)
 
int is_joint_limit (float joint[7], int *value)
 
int is_tcp_limit (float pose[6], int *value)
 
int load_traj (char filename[81])
 
int motion_en (int id, int value)
 
int move_circle (float pose1[6], float pose2[6], float mvvelo, float mvacc, float mvtime, float percent)
 
int move_gohome (float mvvelo, float mvacc, float mvtime)
 
int move_joint (float mvjoint[7], float mvvelo, float mvacc, float mvtime)
 
int move_jointb (float mvjoint[7], float mvvelo, float mvacc, float mvradii)
 
int move_line (float mvpose[6], float mvvelo, float mvacc, float mvtime)
 
int move_line_aa (float mvpose[6], float mvvelo, float mvacc, float mvtime, int mvcoord=0, int relative=0)
 
int move_line_tool (float mvpose[6], float mvvelo, float mvacc, float mvtime)
 
int move_lineb (float mvpose[6], float mvvelo, float mvacc, float mvtime, float mvradii)
 
int move_servo_cart_aa (float mvpose[6], float mvvelo, float mvacc, int tool_coord=0, int relative=0)
 
int move_servo_cartesian (float mvpose[6], float mvvelo, float mvacc, float mvtime)
 
int move_servoj (float mvjoint[7], float mvvelo, float mvacc, float mvtime)
 
int playback_traj (int times, int spdx=1)
 
int playback_traj_old (int times)
 
int reload_dynamics (void)
 
int save_conf (void)
 
int save_traj (char filename[81])
 
int servo_addr_r16 (int id, int addr, float *value)
 
int servo_addr_r32 (int id, int addr, float *value)
 
int servo_addr_w16 (int id, int addr, float value)
 
int servo_addr_w32 (int id, int addr, float value)
 
int servo_get_dbmsg (int rx_data[16])
 
int servo_set_zero (int id)
 
int set_brake (int axis, int en)
 
int set_collis_reb (int on_off)
 
int set_collis_sens (int value)
 
int set_collision_tool_model (int tool_type, int n=0, float *argv=NULL)
 
int set_fense_on (int on_off)
 
int set_gravity_dir (float gravity_dir[3])
 
int set_joint_jerk (float jerk)
 
int set_joint_maxacc (float maxacc)
 
int set_modbus_baudrate (int baud)
 
int set_modbus_timeout (int value)
 
int set_mode (int value)
 
int set_record_traj (int value)
 
int set_reduced_jointspeed (float jspd_rad)
 
int set_reduced_jrange (float jrange_rad[14])
 
int set_reduced_linespeed (float lspd_mm)
 
int set_reduced_mode (int on_off)
 
int set_report_tau_or_i (int tau_or_i)
 
int set_safe_level (int level)
 
int set_self_collision_detection (int on_off)
 
int set_servot (float jnt_taus[7])
 
int set_simulation_robot (int on_off)
 
int set_state (int value)
 
int set_tcp_jerk (float jerk)
 
int set_tcp_load (float mass, float load_offset[3])
 
int set_tcp_maxacc (float maxacc)
 
int set_tcp_offset (float pose_offset[6])
 
int set_teach_sens (int value)
 
int set_timeout (float timeout)
 
int set_world_offset (float pose_offset[6])
 
int set_xyz_limits (int xyz_list[6])
 
int shutdown_system (int value)
 
int sleep_instruction (float sltime)
 
int tgpio_addr_r16 (int addr, float *value)
 
int tgpio_addr_r32 (int addr, float *value)
 
int tgpio_addr_w16 (int addr, float value)
 
int tgpio_addr_w32 (int addr, float value)
 
int tgpio_delay_set_digital (int ionum, int value, float delay_sec)
 
int tgpio_get_analog1 (float *value)
 
int tgpio_get_analog2 (float *value)
 
int tgpio_get_digital (int *io1, int *io2)
 
int tgpio_position_set_digital (int ionum, int value, float xyz[3], float tol_r)
 
int tgpio_set_digital (int ionum, int value)
 
int tgpio_set_modbus (unsigned char *send_data, int length, unsigned char *recv_data)
 
 UxbusCmd (void)
 
int vc_set_jointv (float jnt_v[7], int jnt_sync)
 
int vc_set_linev (float line_v[6], int coord)
 
 ~UxbusCmd (void)
 

Private Attributes

SerialPortarm_port_
 

Additional Inherited Members

- Public Attributes inherited from UxbusCmd
bool state_is_ready
 

Detailed Description

Definition at line 13 of file uxbus_cmd_ser.h.

Constructor & Destructor Documentation

UxbusCmdSer::UxbusCmdSer ( SerialPort arm_port)

Definition at line 14 of file uxbus_cmd_ser.cc.

UxbusCmdSer::~UxbusCmdSer ( void  )

Definition at line 15 of file uxbus_cmd_ser.cc.

Member Function Documentation

int UxbusCmdSer::check_xbus_prot ( unsigned char *  datas,
int  funcode 
)
virtual

Reimplemented from UxbusCmd.

Definition at line 17 of file uxbus_cmd_ser.cc.

void UxbusCmdSer::close ( void  )
virtual

Reimplemented from UxbusCmd.

Definition at line 74 of file uxbus_cmd_ser.cc.

int UxbusCmdSer::is_ok ( void  )
virtual

Reimplemented from UxbusCmd.

Definition at line 76 of file uxbus_cmd_ser.cc.

int UxbusCmdSer::send_pend ( int  funcode,
int  num,
int  timeout,
unsigned char *  ret_data 
)
virtual

Reimplemented from UxbusCmd.

Definition at line 34 of file uxbus_cmd_ser.cc.

int UxbusCmdSer::send_xbus ( int  funcode,
unsigned char *  datas,
int  num 
)
virtual

Reimplemented from UxbusCmd.

Definition at line 53 of file uxbus_cmd_ser.cc.

Member Data Documentation

SerialPort* UxbusCmdSer::arm_port_
private

Definition at line 25 of file uxbus_cmd_ser.h.


The documentation for this class was generated from the following files:


xarm_api
Author(s):
autogenerated on Sat May 8 2021 02:51:23