Classes | Public Member Functions | Private Member Functions | Private Attributes
KDL::ChainIdSolver_Vereshchagin Class Reference

#include <chainidsolver_vereshchagin.hpp>

List of all members.

Classes

struct  segment_info

Public Member Functions

int CartToJnt (const JntArray &q, const JntArray &q_dot, JntArray &q_dotdot, const Jacobian &alfa, const JntArray &beta, const Wrenches &f_ext, JntArray &torques)
 ChainIdSolver_Vereshchagin (const Chain &chain, Twist root_acc, unsigned int nc)
 ~ChainIdSolver_Vereshchagin ()

Private Member Functions

void constraint_calculation (const JntArray &beta)
void downwards_sweep (const Jacobian &alfa, const JntArray &torques)
void final_upwards_sweep (JntArray &q_dotdot, JntArray &torques)
void initial_upwards_sweep (const JntArray &q, const JntArray &q_dot, const JntArray &q_dotdot, const Wrenches &f_ext)

Private Attributes

Twist acc_root
Jacobian alfa_N
Jacobian alfa_N2
JntArray beta_N
Chain chain
Frame F_total
Eigen::MatrixXd M_0_inverse
unsigned int nc
unsigned int nj
unsigned int ns
Eigen::VectorXd nu
Eigen::VectorXd nu_sum
Wrench qdotdot_sum
std::vector< segment_inforesults
Eigen::VectorXd Sm
Eigen::VectorXd tmpm
Eigen::MatrixXd Um
Eigen::MatrixXd Vm

Detailed Description

Definition at line 43 of file chainidsolver_vereshchagin.hpp.


Constructor & Destructor Documentation

KDL::ChainIdSolver_Vereshchagin::ChainIdSolver_Vereshchagin ( const Chain chain,
Twist  root_acc,
unsigned int  nc 
)

Constructor for the solver, it will allocate all the necessary memory

Parameters:
chainThe kinematic chain to calculate the inverse dynamics for, an internal copy will be made.
root_accThe acceleration vector of the root to use during the calculation.(most likely contains gravity)

Definition at line 31 of file chainidsolver_vereshchagin.cpp.

Definition at line 54 of file chainidsolver_vereshchagin.hpp.


Member Function Documentation

int KDL::ChainIdSolver_Vereshchagin::CartToJnt ( const JntArray &  q,
const JntArray &  q_dot,
JntArray &  q_dotdot,
const Jacobian alfa,
const JntArray &  beta,
const Wrenches f_ext,
JntArray &  torques 
)

This method calculates joint space constraint torques and total joint space acceleration. It returns 0 when it succeeds, otherwise -1 or -2 for unmatching matrix and array sizes. Input parameters;

Parameters:
qThe current joint positions
q_dotThe current joint velocities
f_extThe external forces (no gravity, it is given in root acceleration) on the segments. Output parameters:
q_dotdotThe joint accelerations
torquesthe resulting constraint torques for the joints

Definition at line 46 of file chainidsolver_vereshchagin.cpp.

void KDL::ChainIdSolver_Vereshchagin::constraint_calculation ( const JntArray &  beta) [private]

This method calculates constraint force magnitudes.

Definition at line 240 of file chainidsolver_vereshchagin.cpp.

void KDL::ChainIdSolver_Vereshchagin::downwards_sweep ( const Jacobian alfa,
const JntArray &  torques 
) [private]

This method is a force balance sweep. It calculates articulated body inertias and bias forces. Additionally, acceleration energies generated by bias forces and unit forces are calculated here.

Definition at line 125 of file chainidsolver_vereshchagin.cpp.

void KDL::ChainIdSolver_Vereshchagin::final_upwards_sweep ( JntArray &  q_dotdot,
JntArray &  torques 
) [private]

This method puts all acceleration contributions (constraint, bias, nullspace and parent accelerations) together.

Definition at line 275 of file chainidsolver_vereshchagin.cpp.

void KDL::ChainIdSolver_Vereshchagin::initial_upwards_sweep ( const JntArray &  q,
const JntArray &  q_dot,
const JntArray &  q_dotdot,
const Wrenches f_ext 
) [private]

This method calculates all cartesian space poses, twists, bias accelerations. External forces are also taken into account in this outward sweep.

Definition at line 64 of file chainidsolver_vereshchagin.cpp.


Member Data Documentation

Definition at line 122 of file chainidsolver_vereshchagin.hpp.

Definition at line 123 of file chainidsolver_vereshchagin.hpp.

Definition at line 124 of file chainidsolver_vereshchagin.hpp.

Definition at line 128 of file chainidsolver_vereshchagin.hpp.

Definition at line 118 of file chainidsolver_vereshchagin.hpp.

Definition at line 134 of file chainidsolver_vereshchagin.hpp.

Definition at line 125 of file chainidsolver_vereshchagin.hpp.

unsigned int KDL::ChainIdSolver_Vereshchagin::nc [private]

Definition at line 121 of file chainidsolver_vereshchagin.hpp.

unsigned int KDL::ChainIdSolver_Vereshchagin::nj [private]

Definition at line 119 of file chainidsolver_vereshchagin.hpp.

unsigned int KDL::ChainIdSolver_Vereshchagin::ns [private]

Definition at line 120 of file chainidsolver_vereshchagin.hpp.

Eigen::VectorXd KDL::ChainIdSolver_Vereshchagin::nu [private]

Definition at line 129 of file chainidsolver_vereshchagin.hpp.

Eigen::VectorXd KDL::ChainIdSolver_Vereshchagin::nu_sum [private]

Definition at line 130 of file chainidsolver_vereshchagin.hpp.

Definition at line 133 of file chainidsolver_vereshchagin.hpp.

Definition at line 180 of file chainidsolver_vereshchagin.hpp.

Eigen::VectorXd KDL::ChainIdSolver_Vereshchagin::Sm [private]

Definition at line 131 of file chainidsolver_vereshchagin.hpp.

Eigen::VectorXd KDL::ChainIdSolver_Vereshchagin::tmpm [private]

Definition at line 132 of file chainidsolver_vereshchagin.hpp.

Eigen::MatrixXd KDL::ChainIdSolver_Vereshchagin::Um [private]

Definition at line 126 of file chainidsolver_vereshchagin.hpp.

Eigen::MatrixXd KDL::ChainIdSolver_Vereshchagin::Vm [private]

Definition at line 127 of file chainidsolver_vereshchagin.hpp.


The documentation for this class was generated from the following files:


orocos_kdl
Author(s): Ruben Smits, Erwin Aertbelien, Orocos Developers
autogenerated on Sat Dec 28 2013 17:17:26