Converts a path (one configuration per row, for example from
robot_plan()) into a rest-to-rest trajectory through every waypoint:
each segment uses robot_traj_trapezoidal() with the given limits and
the robot stops at each waypoint. The result is feasible for the stated
velocity and acceleration limits, but not time optimal; a collision-free
path is not automatically dynamically feasible for torque limits.