You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for sharing this implementation of minimum snap trajectories. I am currently trying to understand your code to determine if adding corridor constraints can be easily added in your implementation.
I think I am finally starting to understand how the constraint matrix in TrajectoryGenerator.cpp is built but still have one more question:
In TrajectoryGenerator.cpp (see code section below) all constraints are multiplied with 1 / std::pow(t_next - t_now, der) i.e. (t_next - t_now)^-derivative - my understanding is that this is related to equation (12) on page 6 of your report:
I did this work more than two years ago now so my memory is a bit fuzzy. I think it would be useful if you read Adam Bry's thesis, specifically on pages 37-39 where he sets up the problem. I think you might have misread something (sorry for the report being in french). I believe double int_t_prev = 1 / std::pow(t_now - t_prev, der); is basically the coefficient that arises out of integrating the polynomial.
So the arrival constraint ("arriving" to the current waypoint) uses t_now and t_prev whereas the departure constraint ("departing" from the current waypoint) uses t_next and t_now. What's interesting is that I just noticed there is a bug in the c++ version and the variable int_t is never actually used, must be a copy-paste error...
Hope this clears things up? I might be able to look into this during the weekend.
Hi,
Thanks for sharing this implementation of minimum snap trajectories. I am currently trying to understand your code to determine if adding corridor constraints can be easily added in your implementation.
I think I am finally starting to understand how the constraint matrix in TrajectoryGenerator.cpp is built but still have one more question:
In TrajectoryGenerator.cpp (see code section below) all constraints are multiplied with
1 / std::pow(t_next - t_now, der)
i.e.(t_next - t_now)^-derivative
- my understanding is that this is related to equation (12) on page 6 of your report:Now my question is: Why is (t_next - t_now)^n not included here? Is it included somewhere else instead?
Thanks a lot!
Tino
Relevant Code section:
The text was updated successfully, but these errors were encountered: