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

MPC compare trajectory options #32

Merged
merged 13 commits into from
Mar 22, 2019
Merged

MPC compare trajectory options #32

merged 13 commits into from
Mar 22, 2019

Conversation

avikde
Copy link
Owner

@avikde avikde commented Mar 21, 2019

Closes #31

  • implement lin along trajectory (time varying)
  • other lin options

@avikde
Copy link
Owner Author

avikde commented Mar 21, 2019

Sine traj

image

@avikde
Copy link
Owner Author

avikde commented Mar 22, 2019

The implementation seems correct, but it goes unstable. Probably "constant input" over 10 timesteps results in a very unstable trajectory.

Instead treat the reference as a

  • "get to desired velocity"
  • desired vel can be modified using an outer loop for traj following if need be.
  • current vel -> desired vel is a vector space, so interpolating seems like a fine option. could put acc limits on this "vel traj"

@avikde
Copy link
Owner Author

avikde commented Mar 22, 2019

Tracking 0 vel from (1,0,0)

image

@avikde
Copy link
Owner Author

avikde commented Mar 22, 2019

Can do a somersault! xr = np.array([0, 0, omega*t,0.,0.,omega])

image

This is a case where LQR fails

image

@avikde avikde merged commit 6dc2eb0 into master Mar 22, 2019
@avikde avikde deleted the 31-mpctraj branch March 22, 2019 21:25
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.

None yet

1 participant