NTRT Simulator  v1.1
 All Classes Namespaces Files Functions Variables Typedefs Friends Pages
tgKinematicActuatorInfo Class Reference
Inheritance diagram for tgKinematicActuatorInfo:
Collaboration diagram for tgKinematicActuatorInfo:

Public Member Functions

 tgKinematicActuatorInfo (const tgKinematicActuator::Config &config)
 
 tgKinematicActuatorInfo (const tgKinematicActuator::Config &config, tgTags tags)
 
 tgKinematicActuatorInfo (const tgKinematicActuator::Config &config, const tgPair &pair)
 
virtual tgConnectorInfo * createConnectorInfo (const tgPair &pair)
 
virtual tgModel * createModel (tgWorld &world)
 
virtual tgConnectorInfo * createConnectorInfo (const tgPair &pair, const tgTagSearch &tagSearch)
 
virtual void initConnector (tgWorld &world)
 
double getMass ()
 
virtual std::vector
< tgConnectorInfo * > 
createConnectorInfos (const tgPairs &pairs, const tgTagSearch &tagSearch)
 
btVector3 & getFrom ()
 
const btVector3 & getFrom () const
 
btVector3 & getTo ()
 
const btVector3 & getTo () const
 
tgRigidInfo * getFromRigidInfo ()
 
const tgRigidInfo * getFromRigidInfo () const
 
void setFromRigidInfo (tgRigidInfo *rigidInfo)
 
tgRigidInfo * getToRigidInfo ()
 
const tgRigidInfo * getToRigidInfo () const
 
void setToRigidInfo (tgRigidInfo *rigidInfo)
 
btRigidBody * getToRigidBody ()
 
btRigidBody * getFromRigidBody ()
 
virtual void chooseRigids (std::set< tgRigidInfo * > rigids)
 
virtual void chooseRigids (std::vector< tgRigidInfo * > rigids)
 
tgRigidInfo * chooseRigid (std::set< tgRigidInfo * > rigids, const btVector3 &v)
 
void addTags (const std::string &space_separated_tags)
 
void addTags (const tgTags &tags)
 
bool hasTag (const std::string tag) const
 
bool hasAllTags (std::string tags)
 
bool hasAnyTags (const std::string tags)
 
bool hasNoTags ()
 
tgTags & getTags ()
 
const tgTags & getTags () const
 
void setTags (tgTags tags)
 
std::string getTagStr (std::string delim=" ") const
 

Protected Member Functions

tgBulletSpringCable * createTgBulletSpringCable ()
 
tgRigidInfo * findClosestCenterOfMass (std::set< tgRigidInfo * > rigids, const btVector3 &v)
 
std::set< tgRigidInfo * > findRigidsContaining (std::set< tgRigidInfo * > rigids, const btVector3 &toFind)
 
bool rigidFoundIn (std::set< tgRigidInfo * > rigids, tgRigidInfo *rigid)
 

Protected Attributes

tgBulletSpringCable * m_bulletSpringCable
 
tgPair m_pair
 
tgRigidInfo * m_fromRigidInfo
 
tgRigidInfo * m_toRigidInfo
 

Detailed Description

Definition at line 42 of file tgKinematicActuatorInfo.h.

Constructor & Destructor Documentation

tgKinematicActuatorInfo::tgKinematicActuatorInfo ( const tgKinematicActuator::Config &  config)

Construct a tgKinematicActuatorInfo with just a config. The pair must be filled in later, or factory methods can be used to create instances with pairs.

Definition at line 29 of file tgKinematicActuatorInfo.cpp.

Here is the caller graph for this function:

tgKinematicActuatorInfo::tgKinematicActuatorInfo ( const tgKinematicActuator::Config &  config,
tgTags  tags 
)

Construct a tgKinematicActuatorInfo with just a config and tags. The pair must be filled in later, or factory methods can be used to create instances with pairs.

Definition at line 34 of file tgKinematicActuatorInfo.cpp.

tgKinematicActuatorInfo::tgKinematicActuatorInfo ( const tgKinematicActuator::Config &  config,
const tgPair &  pair 
)

Construct a tgKinematicActuatorInfo from its endpoints, radius and density.

Parameters
[in]fromone endpoint
[in]tothe other endpoint
[in]configcontains the radius and density
Todo:
: make sure that tgPairs returns references to the vectors...

Definition at line 39 of file tgKinematicActuatorInfo.cpp.

Member Function Documentation

tgConnectorInfo * tgKinematicActuatorInfo::createConnectorInfo ( const tgPair &  pair)
virtual

Create a tgConnectorInfo* from a tgPair

Reimplemented from tgBasicActuatorInfo.

Definition at line 45 of file tgKinematicActuatorInfo.cpp.

Here is the call graph for this function:


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