4 #include "RobotDynamics3D.h" 32 void SetGravityWrenches(
const Vector3& gravity);
36 void CalcKineticEnergyMatrix(
Matrix& B);
37 void CalcKineticEnergyMatrixInverse(
Matrix& Binv);
38 void CalcResidualTorques(
Vector&
CG);
39 void CalcResidualAccel(
Vector& ddq0);
44 void MulKineticEnergyMatrixInverse(
const Vector& x,
Vector& Binvx);
45 void MulKineticEnergyMatrixInverse(
const Matrix& A,
Matrix& BinvA);
46 void CalcVelocities();
47 void CalcLinkAccel(
const Vector& ddq);
54 std::vector<std::vector<int> > children;
55 std::vector<RigidBodyVelocity> velocities;
56 std::vector<RigidBodyVelocity> accelerations;
std::vector< SpatialMatrix > inertiaMatrices
element i is the i'th inertia matrix computed in the featherstone algorithm
Definition: NewtonEuler.h:58
std::vector< SpatialVector > biasingForces
element i is the i'th biasing force computed in the featherstone algorithm
Definition: NewtonEuler.h:59
A 3D vector class.
Definition: math3d/primitives.h:136
std::vector< Wrench > externalWrenches
set these to the external wrenches on the links (moments about the CM)
Definition: NewtonEuler.h:51
int CG(const Matrix &A, Vector &x, const Vector &b, const Preconditioner &M, int &max_iter, Real &tol)
Definition: conjgrad.h:90
std::vector< Wrench > jointWrenches
element i is the force on link i from the joint to its parent
Definition: NewtonEuler.h:57
Class defining kinematic and dynamic state of a robot, with commonly used functions. Inherits from RobotKinematics3D.
Definition: RobotDynamics3D.h:32
The Featherstone algorithm for O(n) computation of either joint torques from accelerations, or accelerations from torques.
Definition: NewtonEuler.h:27