public ControlPoint(float x, float y, ControlPointDirection direction, Boolean selected = false) { this.x = x; this.y = y; this.direction = direction; this.selected = selected; }
public VelocityGenerator(double max_vel, double max_acc, double max_jerk, ControlPointDirection direction, double dt) { this.max_vel = max_vel; this.max_acc = max_acc; this.max_jerk = max_jerk; this.direction = direction; this.dt = dt; s_curve[0] = new S_Curve(0.0, 0.0, max_jerk, 0.0, 0.0, 0.0); // curve1 s_curve[1] = new S_Curve(0.0, 0.0, 0.0, 0.0, 0.0, 0.0); // curve2 s_curve[2] = new S_Curve(0.0, 0.0, -max_jerk, 0.0, 0.0, 0.0); // curve3 s_curve[3] = new S_Curve(0.0, 0.0, 0.0, 0.0, 0.0, 0.0); // curve4 s_curve[4] = new S_Curve(0.0, 0.0, -max_jerk, 0.0, 0.0, 0.0); // curve5 s_curve[5] = new S_Curve(0.0, 0.0, 0.0, 0.0, 0.0, 0.0); // curve6 s_curve[6] = new S_Curve(0.0, 0.0, max_jerk, 0.0, 0.0, 0.0); // curve7 }