“…To obtain a more reliable convergence for the nlp solver, we have observed that it can be beneficial to compute the motion primitives for backward motion from the goal state to the initial state in forward motion for which the system is stable. Since the truck and trailer system is on the form of Lemma 1 in [52], it is possible, according to Theorem 1 in [52], to obtain an optimal backward motion (x * t,b (τ ), u * b (τ )), τ ∈ [0, T ] that brings the system from x start to x final , from the optimal forward motion (x * t,f (t), u * f (t)), t ∈ [0, T ]. This can be achieved by the state and control transformation: 15) where the optimal forward motion is obtained by solving the motion primitive ocp (4.2) from x final to x start .…”