Nonlinear predictive control of unicycle robot (3): code , part II, core optimization

Antonio Sala, UPV

Difficulty: **** ,       Relevance: PIC,      Duration: 41:58

Materials:    [ Cód.: RobotTrajectoryOptimizationCode.zip ]

Summary:

This video continues with the detailed Casadi (+Ipopt) Python code analysis (basically line-by-line equivalent to the Matlab script also provided).

In the previous video [mpcunic2EN], the preliminary ideas were discussed (velocity constraints, number of waypoints, size of decision variables, unicycle robot state equation, initial guess based on linear interpolation of some heuristic waypoints, plus invented infeasible control actions).

In this video, we discuss the:

For brevity, plotting/animation code is not explained, as it is out of the scope of the present video.

Actual runs of the code, with simulation and animations of the resulting trajectories will be the goal of video [mpcunic4EN], which will close the case study.

*Link to my [ whole collection] of videos in English. Link to larger [ Colección completa] in Spanish.

© 2026, A. Sala. All rights reserved for materials from authors affiliated to Universitat Politecnica de Valencia.
Please consult original source/authors for info regarding rights of materials from third parties.