30 #define Spur_md_init(dev) YPSpur_md_init(dev) 31 #define Spur_md_initex(dev, msq) YPSpur_md_initex(dev, msq) 32 #define Spur_md_init_socket(dev, ip, port) YPSpur_md_init_socket(dev, ip, port) 33 #define Spur_md_stop(dev) YPSpur_md_stop(dev) 34 #define Spur_md_free(dev) YPSpur_md_free(dev) 36 #define Spur_md_freeze(dev) YPSpur_md_freeze(dev) 37 #define Spur_md_isfreeze(dev) YPSpur_md_isfreeze(dev) 38 #define Spur_md_unfreeze(dev) YPSpur_md_unfreeze(dev) 40 #define Spur_md_line_GL(dev, x, y, th) YPSpur_md_line(dev, CS_GL, x, y, th) 41 #define Spur_md_line_LC(dev, x, y, th) YPSpur_md_line(dev, CS_LC, x, y, th) 42 #define Spur_md_line_FS(dev, x, y, th) YPSpur_md_line(dev, CS_FS, x, y, th) 43 #define Spur_md_line_BS(dev, x, y, th) YPSpur_md_line(dev, CS_BS, x, y, th) 44 #define Spur_md_line_BL(dev, x, y, th) YPSpur_md_line(dev, CS_BL, x, y, th) 46 #define Spur_md_stop_line_GL(dev, x, y, th) YPSpur_md_stop_line(dev, CS_GL, x, y, th) 47 #define Spur_md_stop_line_LC(dev, x, y, th) YPSpur_md_stop_line(dev, CS_LC, x, y, th) 48 #define Spur_md_stop_line_FS(dev, x, y, th) YPSpur_md_stop_line(dev, CS_FS, x, y, th) 49 #define Spur_md_stop_line_BS(dev, x, y, th) YPSpur_md_stop_line(dev, CS_BS, x, y, th) 50 #define Spur_md_stop_line_BL(dev, x, y, th) YPSpur_md_stop_line(dev, CS_BL, x, y, th) 52 #define Spur_md_circle_GL(dev, x, y, d) YPSpur_md_circle(dev, CS_GL, x, y, d) 53 #define Spur_md_circle_LC(dev, x, y, d) YPSpur_md_circle(dev, CS_LC, x, y, d) 54 #define Spur_md_circle_FS(dev, x, y, d) YPSpur_md_circle(dev, CS_FS, x, y, d) 55 #define Spur_md_circle_BS(dev, x, y, d) YPSpur_md_circle(dev, CS_BS, x, y, d) 56 #define Spur_md_circle_BL(dev, x, y, d) YPSpur_md_circle(dev, CS_BL, x, y, d) 58 #define Spur_md_spin_GL(dev, th) YPSpur_md_spin(dev, CS_GL, th) 59 #define Spur_md_spin_LC(dev, th) YPSpur_md_spin(dev, CS_LC, th) 60 #define Spur_md_spin_FS(dev, th) YPSpur_md_spin(dev, CS_FS, th) 61 #define Spur_md_spin_BS(dev, th) YPSpur_md_spin(dev, CS_BS, th) 62 #define Spur_md_spin_BL(dev, th) YPSpur_md_spin(dev, CS_BL, th) 64 #define Spur_md_orient_GL(dev, th) YPSpur_md_orient(dev, CS_GL, th) 65 #define Spur_md_orient_LC(dev, th) YPSpur_md_orient(dev, CS_LC, th) 66 #define Spur_md_orient_FS(dev, th) YPSpur_md_orient(dev, CS_FS, th) 67 #define Spur_md_orient_BS(dev, th) YPSpur_md_orient(dev, CS_BS, th) 68 #define Spur_md_orient_BL(dev, th) YPSpur_md_orient(dev, CS_BL, th) 70 #define Spur_md_set_pos_GL(dev, x, y, th) YPSpur_md_set_pos(dev, CS_GL, x, y, th) 71 #define Spur_md_set_pos_LC(dev, x, y, th) YPSpur_md_set_pos(dev, CS_LC, x, y, th) 72 #define Spur_md_set_pos_BL(dev, x, y, th) YPSpur_md_set_pos(dev, CS_BL, x, y, th) 74 #define Spur_md_set_vel(dev, v) YPSpur_md_set_vel(dev, v) 75 #define Spur_md_set_angvel(dev, w) YPSpur_md_set_angvel(dev, w) 76 #define Spur_md_set_accel(dev, v) YPSpur_md_set_accel(dev, v) 77 #define Spur_md_set_angaccel(dev, w) YPSpur_md_set_angaccel(dev, w) 79 #define Spur_md_adjust_pos_GL(dev, x, y, th) YPSpur_md_adjust_pos(dev, CS_GL, x, y, th) 80 #define Spur_md_adjust_pos_LC(dev, x, y, th) YPSpur_md_adjust_pos(dev, CS_LC, x, y, th) 81 #define Spur_md_adjust_pos_FS(dev, x, y, th) YPSpur_md_adjust_pos(dev, CS_FS, x, y, th) 82 #define Spur_md_adjust_pos_BS(dev, x, y, th) YPSpur_md_adjust_pos(dev, CS_BS, x, y, th) 83 #define Spur_md_adjust_pos_BL(dev, x, y, th) YPSpur_md_adjust_pos(dev, CS_BL, x, y, th) 85 #define Spur_md_get_pos_GL(dev, x, y, th) YPSpur_md_get_pos(dev, CS_GL, x, y, th) 86 #define Spur_md_get_pos_LC(dev, x, y, th) YPSpur_md_get_pos(dev, CS_LC, x, y, th) 87 #define Spur_md_get_pos_BS(dev, x, y, th) YPSpur_md_get_pos(dev, CS_BS, x, y, th) 88 #define Spur_md_get_pos_BL(dev, x, y, th) YPSpur_md_get_pos(dev, CS_BL, x, y, th) 90 #define Spur_md_get_vel(dev, v, w) YPSpur_md_get_vel(dev, v, w) 91 #define Spur_md_get_force(dev, trans, angular) YPSpur_md_get_force(dev, trans, angular) 93 #define Spur_md_near_pos_GL(dev, x, y, r) YPSpur_md_near_pos(dev, CS_GL, x, y, r) 94 #define Spur_md_near_pos_LC(dev, x, y, r) YPSpur_md_near_pos(dev, CS_LC, x, y, r) 95 #define Spur_md_near_pos_BS(dev, x, y, r) YPSpur_md_near_pos(dev, CS_BS, x, y, r) 96 #define Spur_md_near_pos_BL(dev, x, y, r) YPSpur_md_near_pos(dev, CS_BL, x, y, r) 98 #define Spur_md_near_ang_GL(dev, th, d) YPSpur_md_near_ang(dev, CS_GL, th, d) 99 #define Spur_md_near_ang_LC(dev, th, d) YPSpur_md_near_ang(dev, CS_LC, th, d) 100 #define Spur_md_near_ang_BS(dev, th, d) YPSpur_md_near_ang(dev, CS_BS, th, d) 101 #define Spur_md_near_ang_BL(dev, th, d) YPSpur_md_near_ang(dev, CS_BL, th, d) 103 #define Spur_md_over_line_GL(dev, x, y, th) YPSpur_md_over_line(dev, CS_GL, x, y, th) 104 #define Spur_md_over_line_LC(dev, x, y, th) YPSpur_md_over_line(dev, CS_LC, x, y, th) 105 #define Spur_md_over_line_BS(dev, x, y, th) YPSpur_md_over_line(dev, CS_BS, x, y, th) 106 #define Spur_md_over_line_BL(dev, x, y, th) YPSpur_md_over_line(dev, CS_BL, x, y, th) 108 #define Spur_md_vel(dev, v, w) YPSpur_md_vel(dev, v, w) 110 #define Spur_md_tilt_GL(dev, d, t) YPSpur_md_tilt(dev, CS_GL, d, t) 111 #define Spur_md_tilt_LC(dev, d, t) YPSpur_md_tilt(dev, CS_LC, d, t) 112 #define Spur_md_tilt_FS(dev, d, t) YPSpur_md_tilt(dev, CS_FS, d, t) 113 #define Spur_md_tilt_BS(dev, d, t) YPSpur_md_tilt(dev, CS_BS, d, t) 114 #define Spur_md_tilt_BL(dev, d, t) YPSpur_md_tilt(dev, CS_BL, d, t) 204 #define YPSPUR_JOINT_SUPPORT 1 205 #define YPSPUR_JOINT_ANG_VEL_SUPPORT 1 206 #define YPSPUR_GET_DEVICE_ERROR_STATE_SUPPORT 1 210 #endif // __cplusplus 211 #endif // YPSPUR_MD_H int YPSpur_md_set_vel(YPSpur *dev, double v)
int YPSpur_md_initex(YPSpur *dev, int msq_key)
int YP_md_wheel_ang(YPSpur *dev, double r, double l)
int YPSpur_md_free(YPSpur *dev)
int YPSpur_md_line(YPSpur *dev, int cs, double x, double y, double theta)
int YP_md_joint_ang_vel(YPSpur *spur, int id, double a, double v)
int YPSpur_md_isfreeze(YPSpur *dev)
double YP_md_get_joint_vel(YPSpur *spur, int id, double *v)
double YPSpur_md_get_pos(YPSpur *dev, int cs, double *x, double *y, double *theta)
int YPSpur_md_freeze(YPSpur *dev)
double YP_md_get_wheel_vel(YPSpur *dev, double *wr, double *wl)
int YPSpur_md_orient(YPSpur *dev, int cs, double theta)
int YPSpur_md_over_line(YPSpur *dev, int cs, double x, double y, double theta)
int YPSpur_md_set_pos(YPSpur *dev, int cs, double x, double y, double theta)
int YPSpur_md_set_accel(YPSpur *dev, double v)
int YP_md_set_io_dir(YPSpur *dev, unsigned char dir)
int YPSpur_md_circle(YPSpur *dev, int cs, double x, double y, double r)
int YP_md_wheel_torque(YPSpur *dev, double r, double l)
double YP_md_get_joint_torque(YPSpur *spur, int id, double *t)
int YP_md_set_parameter_array(YPSpur *dev, int param_id, double *value)
double YP_md_get_joint_vref(YPSpur *spur, int id, double *v)
int YPSpur_md_near_ang(YPSpur *dev, int cs, double th, double d)
int YP_md_set_io_data(YPSpur *dev, unsigned char data)
int YP_md_set_joint_accel(YPSpur *spur, int id, double a)
int YPSpur_md_stop_line(YPSpur *dev, int cs, double x, double y, double theta)
int YP_md_wheel_vel(YPSpur *dev, double r, double l)
double YPSpur_md_get_force(YPSpur *dev, double *trans, double *angular)
int YP_md_get_ad_value(YPSpur *dev, int num)
int YP_md_set_joint_vel(YPSpur *spur, int id, double v)
int YP_md_set_parameter(YPSpur *dev, int param_id, double value)
int YPSpur_md_tilt(YPSpur *dev, int cs, double dir, double tilt)
int YPSpur_md_init(YPSpur *dev)
double YP_md_get_wheel_vref(YPSpur *dev, double *wrref, double *wlref)
int YPSpur_md_near_pos(YPSpur *dev, int cs, double x, double y, double r)
int YP_md_joint_ang(YPSpur *spur, int id, double a)
int YP_md_set_wheel_accel(YPSpur *dev, double r, double l)
double YPSpur_md_get_vel(YPSpur *dev, double *v, double *w)
int YP_md_get_error_state(YPSpur *dev)
int YP_md_get_parameter(YPSpur *dev, int param_id, double *value)
double YP_md_get_wheel_ang(YPSpur *dev, double *theta_r, double *theta_l)
double YP_md_get_wheel_torque(YPSpur *dev, double *torque_r, double *torque_l)
int YP_md_set_wheel_vel(YPSpur *dev, double r, double l)
int YP_md_get_parameter_array(YPSpur *dev, int param_id, double *value)
int YPSpur_md_set_angaccel(YPSpur *dev, double w)
int YPSpur_md_unfreeze(YPSpur *dev)
double YP_md_get_device_error_state(YPSpur *dev, int id, int *err)
double YP_md_get_vref(YPSpur *dev, double *vref, double *wref)
int YPSpur_md_init_socket(YPSpur *dev, char *ip, int port)
int state(YPSpur_state id)
int YPSpur_md_vel(YPSpur *dev, double v, double w)
double YP_md_get_joint_ang(YPSpur *spur, int id, double *a)
int YPSpur_md_adjust_pos(YPSpur *dev, int cs, double x, double y, double theta)
int YP_md_joint_torque(YPSpur *spur, int id, double t)
int YPSpur_md_set_angvel(YPSpur *dev, double w)
int YP_md_openfree(YPSpur *dev)
int YP_md_joint_vel(YPSpur *spur, int id, double v)
int YPSpur_md_spin(YPSpur *dev, int cs, double theta)
int YPSpur_md_stop(YPSpur *dev)
int YP_md_set_control_state(YPSpur *dev, int control_id, int state)