void trajectory_set_speed(struct trajectory *traj, double d_speed, double a_speed);
/** set speed consign */
-void trajectory_set_speed(struct trajectory *traj, double d_acc, double a_acc);
+void trajectory_set_acc(struct trajectory *traj, double d_acc, double a_acc);
/**
* set windows for trajectory.
*/
void trajectory_set_circle_coef(struct trajectory *traj, double coef);
+/**
+ * return trajectory state
+ */
+enum trajectory_state trajectory_get_state(struct trajectory *traj);
+
/** return true if the position consign is equal to the filtered
* position consign (after quadramp filter), for angle and
* distance. */