Materials: [ Cód.: RobotTrajectoryOptimizationCode.zip ]
This video presents the Python code (Matlab code also available) which executes
the nonlinear trajectory optimization whose problem statement was discussed in
video [
The code explanation will be split in two videos, this one explaining some
preliminary setup and the next on [
In the present video, we discuss the size of states and actions, the differential equation model of the unicycle robot abstraction, the polyhedral representation of the safe corridor and the generation of an initial guess for the optimizer to start upon. The initial guess will be inconsistent, infeasible, but luckily, the optimizer seemed to find its way towards feasible solutions.
The robot has linear velocity and angular velocity constraints; it is left to the reader to amend the code towards a more realistic two-wheel robot model with wheel velocity constraints instead.
As commented above, discussion on the code continues on video [
*Link to my [whole collection] of videos in English. Link to larger [Colección completa] in Spanish.