-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generated trajectories have discontinuities #7
Comments
Ok that's interesting! I have the same version of |
The compiler shouldn't matter. I think it might be a problem with nlopt (sometimes nlopt returns solutions that violate the constraints). There is some discussion on that here: ethz-asl/mav_trajectory_generation#84. You could try a different version of nlopt. |
I just tried with version 2.5 of NLOpt but sadly that makes no difference. Going back to an even older version is difficult because versions before 2.5 don't use CMake and it actually just fails to compile on my Mac. I guess this issue will be very difficult to debug, so I'm going to just use it on Ubuntu where everything works as expected. Thank you for your help! |
Dear Wolfgang,
Thank you for making this nice tool available - it really makes it a lot easier to generate trajectories compared to using ETH's
mav_trajectory_generation
directly!One problem, however, that I quite frequently encounter is that the generated trajectories are really "messed up": sometimes there are discontinuities so that the trajectory looks nothing like one would expect given the waypoints, other times the velocity jumps or goes to very high values. To me it looks like numerical instabilities but since my examples are so simple (see below) and obviously people are successfully using this tool for much more complicated trajectories it might also be that I'm somehow misusing the tool?
Examples for the weird behavior: (all examples use the command
./genTrajectory -i waypoints.csv -o trajectory.csv --v_max 2 --a_max 2.0
)A simple square in the x-y-plane:
results in:

A straight line with an additional waypoint in the middle:
Here the positions look fine but there are pretty crazy jumps in the velocity:

I also tested with several much more complex real-world trajectories with dozens of waypoints and the behavior was very much the same, sadly.
Do you have any idea what could be the problem here?
Thank you very much for your help!
Michael
The text was updated successfully, but these errors were encountered: