Skip to content
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

Drone in tube #284

Closed
wants to merge 21 commits into from
Closed

Drone in tube #284

wants to merge 21 commits into from

Conversation

Peter230655
Copy link
Contributor

This is the drone from examples-gallery, but now it must stay inside a tube of a given radius, and a curve as centerline of the tube.
To get the distance of the drone to the centerline of the tube, I intersect a certain plane (described in more detail in the program) with the centerline.
This will lead to a nonlinear equation for the point of intersection. I declare this equation an additional eom, and the parameter as an additional state variable. I do not think, this method in in examples gallery already.
The distance drone-centerline also becomes a state vatiable, so it can be bound 0 <= distance <= radius of the tube.

It turned out, that it is very difficult to get it to converge. My suspicion is that because the nonlinear equation in general has many solutions, this causes trouble with convergence. For example I never managed to get the drone to fly as fast as possible.

@Peter230655
Copy link
Contributor Author

Peter230655 commented Dec 23, 2024

I do not see, how the error is related to my code: it seems to pass the test with older an with newer versions of python - if I read it correctly.
image
Unlcear, what this means.
In any case a second PR without any material changes worked.

@Peter230655
Copy link
Contributor Author

Small obervation: when I switched the description of the rotation of the drone from quaternions to 'normal' angles, this seemed to help 'speed optimization'. But it more seemed to hurt 'minimum energy optimozation'. All in all it seems to be a difficult problem for opty, unless I committed some basic blunder.

@Peter230655
Copy link
Contributor Author

I did not change anything in the code. Just trying if the error given earlier has gone.

@Peter230655
Copy link
Contributor Author

I pushed this one from the wrong branch.
I pushed it again, so I will close this PR.

@Peter230655 Peter230655 deleted the drone-in-tube branch December 30, 2024 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant