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

Interpolation between two curves #18

Open
gehrinch opened this issue Aug 21, 2014 · 2 comments
Open

Interpolation between two curves #18

gehrinch opened this issue Aug 21, 2014 · 2 comments

Comments

@gehrinch
Copy link

There should be a tool which allows to extract an interpolated curve from two other curves depending on an interpolation parameter that is in range [0, 1].

A simplified example would be
curve = linearlyInterpolate(curve1, curve2, t);
t = 0.0 -> curve = curve1
t = 0.5 -> curve = 0.5_curve1 + 0.5_curve2
t = 1.0 -> curve = curve2

Should and how should we add this feature to this library?

@furgalep
Copy link
Contributor

Would you keep the original curves underneath? If so, this is extremely easy to implement.

Yes! If this is useful, we could add this.

However, there would have to be a specific linear interpolation policy for each Value type.

And derivatives might be a problem. But the vector space version should be very easy.

@gehrinch
Copy link
Author

What do you mean by "keep the original curves underneath"?

This feature is very useful. We already use it for gait transitions where we interpolate between two swing foot trajectories (from two different parameter sets).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants