54 #define OPTION_DEFAULT (OPTION_HIGH_PREC) 56 #define DEFAULT_PARAMETER_FILE "./robot.param" 57 #define DEFAULT_DEVICE_NAME "/dev/ttyUSB0" 60 #define SIGN(x) ((x < 0) ? -1 : 1) 90 void arg_help(
int argc,
char *argv[]);
93 int set_param(
char *filename,
char *concrete_path);
98 int parameter_set(
char param,
char id,
long long int value64);
double * pp(YPSpur_param id, enum motor_id motor)
int set_param_velocity(void)
double p(YPSpur_param id, enum motor_id motor)
void arg_longhelp(int argc, char *argv[])
int apply_robot_params(void)
void enable_state(YPSpur_state id)
char parameter_filename[132]
void calc_param_inertia2ff(void)
int parameter_set(char param, char id, long long int value64)
struct _parameters Parameters
void param_update_loop_cleanup(void *data)
int set_paramptr(FILE *paramfile)
#define YP_PARAM_MAX_MOTOR_NUM
void param_update(void *filename)
int motor_enable[YP_PARAM_MAX_MOTOR_NUM]
int state(YPSpur_state id)
int set_param_motor(void)
int isset_p(YPSpur_param id, enum motor_id motor)
int set_param(char *filename, char *concrete_path)
void disable_state(YPSpur_state id)
int arg_analyze(int argc, char *argv[])
ParametersPtr get_param_ptr()
void init_param_update_thread(pthread_t *thread, char *filename)
struct _parameters * ParametersPtr
void arg_help(int argc, char *argv[])
int does_option_set(ParamOptions option)