-
Notifications
You must be signed in to change notification settings - Fork 224
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
How to use QUINTIC & CUBIC #59
Comments
You can use an IK solver to find suitable joint configurations for Cartesian waypoints. How to interpolate between these points depends on whether you want an interpolation in joint space or a linear interpolation in Cartesian space. For an interpolation between two joint configurations in joint space, you can directly use an interpolation such as To interpolate between multiple joint configurations, you can use For a linear interpolation between two joint configurations in Cartesian space, you have to define an interpolation for the position and orientation of the corresponding Cartesian pose. Position is analog to joint interpolation, but for orientation you should use quaternions. The combination of these two interpolations creates a 6D vector (x,y,z,a,b,c) that can be transformed to joint space via the Jacobian inverse. Due to singularities and joint limits, there may not be a viable solution when moving to the target position. |
Please in your description of using any of these Thanks for this amazing library |
A function for the interpolation between several waypoints requires multiple polynomials, therefore the respective static functions in the class rlInterpolatorDemo includes an example with rl/demos/rlInterpolatorDemo/rlInterpolatorDemo.cpp Lines 209 to 237 in 2da1f81
|
Thanks I now understand |
Hi there,
I was confused trying to run rlaxiscontrollerdemo.How to interpolate joint waypoints.
The trajectory planning outputs a series of spatial coordinate points, which are solved by IK to obtain the joint list. We use the interpolation algorithm to calculate the smooth trajectory and send it to the robot.
Does the RTT output trajectory need to be interpolated first, then IK solved, and then interpolated and smoothed the joint path points?
#ifdef CUBIC rl::math::Polynomial<rl::math::Vector> interpolator = rl::math::Polynomial<rl::math::Vector>::CubicFirst( q0, q1, rl::math::Vector::Zero(controller.getDof()), rl::math::Vector::Zero(controller.getDof()), te ); #endif // CUBIC #ifdef QUINTIC rl::math::Polynomial<rl::math::Vector> interpolator = rl::math::Polynomial<rl::math::Vector>::( q0, q1, rl::math::Vector::Zero(controller.getDof()), rl::math::Vector::Zero(controller.getDof()), rl::math::Vector::Zero(controller.getDof()), rl::math::Vector::Zero(controller.getDof()), te );
How to determine cubic & quintic parameters when the interpolation object is a series of joint waypoints.
The text was updated successfully, but these errors were encountered: