MBSim

Project Page
Classes | Public Member Functions | Private Attributes
MBSim::JointConstraint Class Reference

Joint contraint. More...

#include <constraint.h>

Inheritance diagram for MBSim::JointConstraint:
MBSim::Constraint MBSim::Object MBSim::Element

List of all members.

Classes

class  Residuum

Public Member Functions

 JointConstraint (const std::string &name="")
void init (InitStage stage)
 initialize object at start of simulation with respect to contours and frames
void initz ()
 initialize state of object at start of simulation
void connect (Frame *frame1, Frame *frame2)
void setDependentBodiesFirstSide (std::vector< RigidBody * > bd)
void setDependentBodiesSecondSide (std::vector< RigidBody * > bd)
void setIndependentBody (RigidBody *bi)
void setSecondIndependentBody (RigidBody *bi2)
virtual void setUpInverseKinetics ()
 TODO.
void setForceDirection (const fmatvec::Mat3xV &d_)
void setMomentDirection (const fmatvec::Mat3xV &d_)
void setFrameOfReferenceID (int ID)
 The frame of reference ID for the force/moment direction vectors.
fmatvec::Vec res (const fmatvec::Vec &q, const double &t)
void updateStateDependentVariables (double t)
void updateJacobians (double t, int j=0)
virtual void initializeUsingXML (xercesc::DOMElement *element)
virtual xercesc::DOMElement * writeXMLFile (xercesc::DOMNode *element)
virtual std::string getType () const
void setInitialGuess (const fmatvec::VecV &q0_)

Private Attributes

std::vector< RigidBody * > bd1
std::vector< RigidBody * > bd2
RigidBody * bi
RigidBody * bi2
std::vector< Frame * > if1
std::vector< Frame * > if2
Frame * frame1
Frame * frame2
Frame * refFrame
 frame of reference the force is defined in
int refFrameID
fmatvec::Mat3xV dT
fmatvec::Mat3xV dR
fmatvec::Mat3xV forceDir
fmatvec::Mat3xV momentDir
std::vector< fmatvec::Index > Iq1
std::vector< fmatvec::Index > Iq2
std::vector< fmatvec::Index > Iu1
std::vector< fmatvec::Index > Iu2
std::vector< fmatvec::Index > Ih1
std::vector< fmatvec::Index > Ih2
int nq
int nu
int nh
fmatvec::Vec q
 positions, velocities
fmatvec::Vec u
fmatvec::Mat J
fmatvec::Vec j
fmatvec::Mat JT
fmatvec::Mat JR
fmatvec::Vec q0
 initial position, velocity
std::string saved_ref1
std::string saved_ref2
std::vector< std::string > saved_RigidBodyFirstSide
std::vector< std::string > saved_RigidBodySecondSide
std::string saved_IndependentBody
std::string saved_IndependentBody2

Detailed Description

Joint contraint.

Author:
Martin Foerg 2011-08-04 XML Interface added (Markus Schneider)

Member Function Documentation

virtual std::string MBSim::JointConstraint::getType ( ) const [inline, virtual]
Returns:
std::string representation

Reimplemented from MBSim::Object.

The frame of reference ID for the force/moment direction vectors.

If ID=0 (default) the first frame, if ID=1 the second frame is used.


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