Exotica
|
Weighted and Regularized Pseudo-Inverse Inverse Kinematics Solver The solver solves a weighted and regularised pseudo-inverse problem. It uses backtracking line-search and adaptive regularization. More...
#include <ik_solver.h>
Public Member Functions | |
void | Solve (Eigen::MatrixXd &solution) override |
void | SpecifyProblem (PlanningProblemPtr pointer) override |
Public Member Functions inherited from exotica::MotionSolver | |
MotionSolver ()=default | |
virtual | ~MotionSolver ()=default |
void | InstantiateBase (const Initializer &init) override |
PlanningProblemPtr | GetProblem () const |
std::string | Print (const std::string &prepend) const override |
void | SetNumberOfMaxIterations (int max_iter) |
int | GetNumberOfMaxIterations () |
double | GetPlanningTime () |
Public Member Functions inherited from exotica::Object | |
Object () | |
virtual | ~Object () |
virtual std::string | type () const |
Type Information wrapper: must be virtual so that it is polymorphic... More... | |
std::string | GetObjectName () |
void | InstantiateObject (const Initializer &init) |
Public Member Functions inherited from exotica::InstantiableBase | |
InstantiableBase ()=default | |
virtual | ~InstantiableBase ()=default |
virtual std::vector< Initializer > | GetAllTemplates () const =0 |
Public Member Functions inherited from exotica::Instantiable< IKSolverInitializer > | |
void | InstantiateInternal (const Initializer &init) override |
Initializer | GetInitializerTemplate () override |
std::vector< Initializer > | GetAllTemplates () const override |
virtual void | Instantiate (const IKSolverInitializer &init) |
const IKSolverInitializer & | GetParameters () const |
Private Member Functions | |
void | IncreaseRegularization () |
void | DecreaseRegularization () |
void | PrintDebug (const int i) |
void | ScaleToStepSize (Eigen::VectorXdRef xd) |
To scale to maximum step size. More... | |
Private Attributes | |
UnconstrainedEndPoseProblemPtr | prob_ |
Eigen::MatrixXd | W_inv_ |
Joint-space weighting (inverse) More... | |
Eigen::VectorXd | alpha_space_ |
Steplengths for backtracking line-search. More... | |
double | stop_ |
Stop criterion: Norm of cost Jacobian. More... | |
double | step_ |
Size of step: Sum of squared norm of qd_. More... | |
double | lambda_ = 0 |
Damping factor. More... | |
double | steplength_ |
Accepted steplength. More... | |
Eigen::VectorXd | q_ |
Joint configuration vector, used during optimisation. More... | |
Eigen::VectorXd | qd_ |
Change in joint configuration, used during optimisation. More... | |
Eigen::VectorXd | yd_ |
Task space difference/error, used during optimisation. More... | |
Eigen::MatrixXd | cost_jacobian_ |
Jacobian, used during optimisation. More... | |
Eigen::MatrixXd | J_pseudo_inverse_ |
Jacobian pseudo-inverse, used during optimisation. More... | |
double | error_ |
Error, used during optimisation. More... | |
double | error_prev_ |
Error at previous iteration, used during optimisation. More... | |
Eigen::LLT< Eigen::MatrixXd > | J_decomposition_ |
Cholesky decomposition for the weighted pseudo-inverse. More... | |
Eigen::MatrixXd | J_tmp_ |
Temporary variable for inverse computation. More... | |
double | th_stop_ |
Gradient convergence threshold. More... | |
double | regmin_ = 1e-9 |
Minimum regularization (will not decrease lower) More... | |
double | regmax_ = 1e9 |
Maximum regularization (to exit by divergence) More... | |
double | regfactor_ = 10. |
Factor by which the regularization gets increased/decreased. More... | |
double | th_stepdec_ = 0.5 |
Step-length threshold used to decrease regularization. More... | |
double | th_stepinc_ = 0.1 |
Step-length threshold used to increase regularization. More... | |
Additional Inherited Members | |
Public Attributes inherited from exotica::Object | |
std::string | ns_ |
std::string | object_name_ |
bool | debug_ |
Protected Attributes inherited from exotica::MotionSolver | |
PlanningProblemPtr | problem_ |
double | planning_time_ = -1 |
int | max_iterations_ = 100 |
Protected Attributes inherited from exotica::Instantiable< IKSolverInitializer > | |
IKSolverInitializer | parameters_ |
Weighted and Regularized Pseudo-Inverse Inverse Kinematics Solver The solver solves a weighted and regularised pseudo-inverse problem. It uses backtracking line-search and adaptive regularization.
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
private |
To scale to maximum step size.
|
overridevirtual |
Implements exotica::MotionSolver.
|
overridevirtual |
Reimplemented from exotica::MotionSolver.
|
private |
Steplengths for backtracking line-search.
|
private |
Jacobian, used during optimisation.
|
private |
Error, used during optimisation.
|
private |
Error at previous iteration, used during optimisation.
|
private |
Cholesky decomposition for the weighted pseudo-inverse.
|
private |
Jacobian pseudo-inverse, used during optimisation.
|
private |
Temporary variable for inverse computation.
|
private |
Damping factor.
|
private |
|
private |
Joint configuration vector, used during optimisation.
|
private |
Change in joint configuration, used during optimisation.
|
private |
Factor by which the regularization gets increased/decreased.
|
private |
Maximum regularization (to exit by divergence)
|
private |
Minimum regularization (will not decrease lower)
|
private |
Size of step: Sum of squared norm of qd_.
|
private |
Accepted steplength.
|
private |
Stop criterion: Norm of cost Jacobian.
|
private |
Step-length threshold used to decrease regularization.
|
private |
Step-length threshold used to increase regularization.
|
private |
Gradient convergence threshold.
|
private |
Joint-space weighting (inverse)
|
private |
Task space difference/error, used during optimisation.