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

[KdlSolver] Alternative to LMA #34

Closed
jgvictores opened this issue Jun 10, 2016 · 2 comments
Closed

[KdlSolver] Alternative to LMA #34

jgvictores opened this issue Jun 10, 2016 · 2 comments

Comments

@jgvictores
Copy link
Member

[KdlSolver] Alternative to LMA

@jgvictores
Copy link
Member Author

Something like:

#ifdef USE_LMA

Eigen::Matrix<double,6,1> L;
  L(0)=0.5;L(1)=0.5;L(2)=0.5;
  L(3)=0.05;L(4)=0.05;L(5)=0.05;

  //-- Main invKin (pos) solver lines
KDL::ChainIkSolverPos_LMA inv_pos_solver(chain,L,1E-10,100000,1E-25);

inv_pos_solver.CartToJnt(qGuessInRad,frameXd,kdlq);

#else //USE_LMA

//Forward solvers, needed by the geometric solver
KDL::ChainFkSolverPos_recursive fksolver(chain);
KDL::ChainIkSolverVel_pinv iksolver(chain);  // _givens

//Geometric solver definition (with joint limits)
KDL::ChainIkSolverPos_NR_JL inv_pos_solver(chain,q_min,q_max,fksolver,iksolver,100000,1E-15);

inv_pos_solver.CartToJnt(qGuessInRad,frameXd,kdlq);

#endif //USE_LMA

@jgvictores
Copy link
Member Author

Done at 96a62f3.

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