30 #include <sys/types.h> 34 #endif // HAVE_CONFIG_H 36 #define YP_SPUR_RUNTIME 75 *error_state = (int)msg.
data[0];
467 *theta = msg.
data[2];
631 *theta_r = msg.
data[0];
632 *theta_l = msg.
data[1];
664 *torque_r = msg.
data[0];
665 *torque_l = msg.
data[1];
697 *trans = msg.
data[0];
698 *angular = msg.
data[1];
730 ret = (int)msg.
data[0];
786 msg.
data[0] = value[0];
787 msg.
data[1] = value[1];
825 *value = msg.
data[0];
854 value[0] = msg.
data[0];
855 value[1] = msg.
data[1];
1008 msg.
data[0] = (double)num;
1025 ret = (int)msg.
data[0];
1422 msg.
data[1] = block;
double YP_md_get_joint_vref(YPSpur *spur, int id, double *v)
int YP_md_set_joint_accel(YPSpur *spur, int id, double a)
int YP_md_set_io_data(YPSpur *spur, unsigned char data)
double YP_md_get_joint_torque(YPSpur *spur, int id, double *t)
int YPSpur_md_tilt(YPSpur *spur, int cs, double dir, double tilt)
int YPSpur_md_adjust_pos(YPSpur *spur, int cs, double x, double y, double theta)
double YP_md_get_wheel_torque(YPSpur *spur, double *torque_r, double *torque_l)
int ipcmd_open_tcp(struct ipcmd_t *ipcmd, char *host, int port)
int YPSpur_md_vel(YPSpur *spur, double v, double w)
double YPSpur_md_get_force(YPSpur *spur, double *trans, double *angular)
int YP_md_get_parameter_array(YPSpur *spur, int param_id, double *value)
int YP_md_wheel_vel(YPSpur *spur, double r, double l)
int YP_md_set_io_dir(YPSpur *spur, unsigned char dir)
int YP_md_set_parameter(YPSpur *spur, int param_id, double value)
int YP_md_set_wheel_accel(YPSpur *spur, double r, double l)
double YPSpur_md_get_vel(YPSpur *spur, double *v, double *w)
int YPSpur_md_initex(YPSpur *spur, int msq_key)
int YPSpur_md_set_pos(YPSpur *spur, int cs, double x, double y, double theta)
int YPSpur_md_stop_line(YPSpur *spur, 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_init(YPSpur *spur)
double YPSpur_md_get_pos(YPSpur *spur, int cs, double *x, double *y, double *theta)
int YPSpur_md_near_ang(YPSpur *spur, int cs, double th, double d)
int YP_md_set_wheel_vel(YPSpur *spur, double r, double l)
int YPSpur_md_unfreeze(YPSpur *spur)
ParamOutputLv output_lv(void)
double YP_md_get_vref(YPSpur *spur, double *v, double *w)
int YPSpur_md_circle(YPSpur *spur, int cs, double x, double y, double r)
int YPSpur_md_init_socket(YPSpur *spur, char *ip, int port)
int YP_md_joint_vel(YPSpur *spur, int id, double v)
int YPSpur_md_spin(YPSpur *spur, int cs, double theta)
int YP_md_get_parameter(YPSpur *spur, int param_id, double *value)
int YPSpur_md_orient(YPSpur *spur, int cs, double theta)
int YPSpur_md_stop(YPSpur *spur)
int(* recv)(struct ipcmd_t *ipcmd, YPSpur_msg *data)
int YPSpur_md_set_angvel(YPSpur *spur, double w)
int YPSpur_md_free(YPSpur *spur)
int YP_md_get_error_state(YPSpur *spur)
int YPSpur_md_freeze(YPSpur *spur)
int YPSpur_md_set_vel(YPSpur *spur, double v)
int YP_md_joint_torque(YPSpur *spur, int id, double t)
double YP_md_get_joint_vel(YPSpur *spur, int id, double *v)
int YPSpur_md_line(YPSpur *spur, int cs, double x, double y, double theta)
int YP_md_wheel_ang(YPSpur *spur, double r, double l)
int state(YPSpur_state id)
void YP_md_request_device_dump(YPSpur *spur, int id, int block)
double YP_md_get_wheel_vel(YPSpur *spur, double *wr, double *wl)
int YP_md_joint_ang(YPSpur *spur, int id, double a)
double YP_md_get_wheel_ang(YPSpur *spur, double *theta_r, double *theta_l)
int YPSpur_md_over_line(YPSpur *spur, int cs, double x, double y, double theta)
int(* send)(struct ipcmd_t *ipcmd, YPSpur_msg *data)
int YP_md_set_parameter_array(YPSpur *spur, int param_id, double *value)
double YP_md_get_device_error_state(YPSpur *spur, int id, int *error_state)
int YP_md_openfree(YPSpur *spur)
double YP_md_get_wheel_vref(YPSpur *spur, double *wr, double *wl)
int YPSpur_md_isfreeze(YPSpur *spur)
int YP_md_get_ad_value(YPSpur *spur, int num)
int YP_md_set_joint_vel(YPSpur *spur, int id, double v)
int ipcmd_open_msq(struct ipcmd_t *ipcmd, int key, int creat)
int YP_md_set_control_state(YPSpur *spur, int control_id, int state)
int YP_md_wheel_torque(YPSpur *spur, double r, double l)
double YP_md_get_joint_ang(YPSpur *spur, int id, double *a)
int YPSpur_md_set_angaccel(YPSpur *spur, double dw)
int YPSpur_md_near_pos(YPSpur *spur, int cs, double x, double y, double r)
int YPSpur_md_set_accel(YPSpur *spur, double dv)