27 int main(
int argc,
char *argv[])
39 fprintf(stderr,
"ERROR : cannot open spur.\n");
45 fprintf(stderr,
"USAGE: %s maximum_velocity second\n", argv[0]);
49 refvel = atoi(argv[1]);
50 alpha = refvel / atoi(argv[2]);
65 printf(
"# torque force torque_r, torque_l vel w\n");
82 printf(
"%f %f %f %f %f %f\n", torque, force, tr, tl, vel, w);
89 fprintf(stderr,
"INFO: Every robot parameter MUST BE TUNED FINELY!\n");
90 fprintf(stderr,
"INFO: This estimation is susceptible to ERROR!\n");
92 if (fabs((torque1 - torque) / torque1) > 0.5)
96 fprintf(stderr,
"WARNING: TORQUE_VISCOS or 1/MOTOR_VC might be too large\n");
100 fprintf(stderr,
"WARNING: TORQUE_VISCOS or 1/MOTOR_VC might be too small\n");
109 fprintf(stderr,
"WARNING: Too small Angular acceleration\n");
112 N = (torque_sum / torque_num);
117 fprintf(stderr,
"%f[Nm], %f[rad/s^2] %f[Nm^2]\n", N, alpha, I);
#define Spur_set_pos_GL(x, y, th)
int main(int argc, char *argv[])
#define Spur_get_force(trans, angular)
#define Spur_set_angaccel(w)
#define Spur_set_accel(v)
#define Spur_set_angvel(w)
double YP_get_wheel_torque(double *torque_r, double *torque_l)
#define Spur_get_vel(v, w)