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

A mistake on dynamic constraints in reference_path.py #8

Open
nistring opened this issue Aug 13, 2023 · 0 comments
Open

A mistake on dynamic constraints in reference_path.py #8

nistring opened this issue Aug 13, 2023 · 0 comments

Comments

@nistring
Copy link

nistring commented Aug 13, 2023

Hi! I'm trying to reproduce your work and I think I found a mistake on setting dynamic constraints in reference_path.py file.

            # Fill operator matrix
            # dynamics of acceleration
            if i < N-1:
                D1[i, i:i+2] = np.array([-1/(2*li), 1/(2*li)])

Guess a linear motion is assumed in this context, I believe the calculation needs to be doen by v^2, not v.
$$a = \frac{v^2 - v_0^2}{2l}$$
I would be grateful if you go over it and let me know if my suggestion is correct.
Much thanks!

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

No branches or pull requests

1 participant