if (fabs(future_pos.v) < 0.01)
continue;
- x = future_pos.x + cos(future_pos.phi)*ROBOT_AXIS_TO_BACK_M;
- y = future_pos.y + sin(future_pos.phi)*ROBOT_AXIS_TO_BACK_M;
+ x = future_pos.x + cos(future_pos.phi)*ROBOT_AXIS_TO_FRONT_M;
+ y = future_pos.y + sin(future_pos.phi)*ROBOT_AXIS_TO_FRONT_M;
ShmapPoint2Cell(x, y, &xcell, &ycell, &valid);
if (!valid)
next_period(&next, MOTION_PERIOD_NS);
if (measurement_ok) {
if (measurement_ok == 2) {
- fprintf(stderr, "problem: measurement timeout!!!!!!!!!!!");
+ fprintf(stderr, "problem: measurement timeout!\n");
}
measurement_ok--;
}