Closed ShaneRozenLevy closed 10 months ago
In terms of the start and end time, I wrote this function assuming the start and end of the spline might not be the start and end of mode. If you think thats a reasonable assumption I can set start time and end time using the inputted spline.
Hmm, so thats close to the purpose of those variables, but not quite it. I use the start and end time for 2 purposes.
Depending on how your code is setup you might want to set start time to be 0 for each mode or maybe you want to set start_time to be your actual guess for the time the mode start. It all depends on which interval of time from the traj_init_x you want to use for the initial guess. I'm also assuming the traj_init_x does not necessarily start and start_time and end at end_time (if I did, I could get start_time and end_time from the pp_traj object).
Added new function for setting initial guess from trajectories. This has a few advantages over the current interface:
I have done some testing of this and it seems good, but it likely needs more testing and a second set of eyes before merging it in.
This change is![Reviewable](https://reviewable.io/review_button.svg)