Lab 6: Trajectory Generation

Overview

In this lab, we will focus on how to generate smooth trajectories while following a path with specified waypoints. We will implement two different approaches:


1) Gradient Descent Path Smoothing. The task is to apply gradient descent method to minimize a cost function that balances two cost terms: 


2) Third-Order Polynomial Time Scaling. The task is to implement the 3rd order polynomial time scaling and apply it for each segment of the trajectory and for both x and y coordinates. Waypoints will be provided in the sample script, and should be included in the boundary/continuity constraints when generating trajectories.