* @param tc Constrains for the trajectory.
* @param backward Backward trajectory, implicit value false.
*/
-MoveHelper& MoveHelper::trajectory_new(TrajectoryConstraints* tc, bool backward) {
+MoveHelper& MoveHelper::trajectory_new(const TrajectoryConstraints* tc, bool backward) {
if (!tc) tc = &trajectoryConstraintsDefault;
if (t) delete t;
t = new Trajectory(*tc, backward);
* @param heading Desired heading of the robot at goal point.
* @param planning Use planning or not.
*/
-void MoveHelper::goto_notrans(double x, double y, move_target_heading heading, TrajectoryConstraints* tc, bool planning) {
+void MoveHelper::goto_notrans(double x, double y, move_target_heading heading, const TrajectoryConstraints* tc, bool planning) {
move_target *target = new move_target();
target->x = x;
target->y = y;
* @param heading Final heading
* @param tc Trajectory constrains
*/
-void MoveHelper::move_by(double distance, move_target_heading heading, TrajectoryConstraints* tc) {
+void MoveHelper::move_by(double distance, move_target_heading heading, const TrajectoryConstraints* tc) {
double x, y, phi;
robot.get_est_pos(x, y, phi);