Public Member Functions | Protected Attributes | Private Member Functions | List of all members
hrp::LinkTraverse Class Reference

#include <LinkTraverse.h>

Inheritance diagram for hrp::LinkTraverse:
Inheritance graph
[legend]

Public Member Functions

std::vector< Link * >::const_iterator begin () const
 
void calcForwardKinematics (bool calcVelocity=false, bool calcAcceleration=false) const
 
double calcTotalMass ()
 
bool empty () const
 
std::vector< Link * >::const_iterator end () const
 
virtual void find (Link *root, bool doUpward=false, bool doDownward=true)
 
bool isDownward (int index) const
 
Linklink (int index) const
 
 LinkTraverse ()
 
 LinkTraverse (int size)
 
 LinkTraverse (Link *root, bool doUpward=false, bool doDownward=true)
 
unsigned int numLinks () const
 
Linkoperator[] (int index) const
 
LinkrootLink () const
 
size_t size () const
 
double totalMass () const
 
virtual ~LinkTraverse ()
 

Protected Attributes

std::vector< Link * > links
 
int numUpwardConnections
 
double totalMass_
 

Private Member Functions

void traverse (Link *link, bool doUpward, bool doDownward, bool isUpward, Link *prev)
 

Detailed Description

Definition at line 29 of file LinkTraverse.h.

Constructor & Destructor Documentation

◆ LinkTraverse() [1/3]

LinkTraverse::LinkTraverse ( )

Definition at line 26 of file LinkTraverse.cpp.

◆ LinkTraverse() [2/3]

LinkTraverse::LinkTraverse ( int  size)

Definition at line 32 of file LinkTraverse.cpp.

◆ LinkTraverse() [3/3]

LinkTraverse::LinkTraverse ( Link root,
bool  doUpward = false,
bool  doDownward = true 
)

Definition at line 39 of file LinkTraverse.cpp.

◆ ~LinkTraverse()

LinkTraverse::~LinkTraverse ( )
virtual

Definition at line 45 of file LinkTraverse.cpp.

Member Function Documentation

◆ begin()

std::vector<Link*>::const_iterator hrp::LinkTraverse::begin ( ) const
inline

Definition at line 64 of file LinkTraverse.h.

◆ calcForwardKinematics()

void LinkTraverse::calcForwardKinematics ( bool  calcVelocity = false,
bool  calcAcceleration = false 
) const

Definition at line 79 of file LinkTraverse.cpp.

◆ calcTotalMass()

double LinkTraverse::calcTotalMass ( )

Definition at line 206 of file LinkTraverse.cpp.

◆ empty()

bool hrp::LinkTraverse::empty ( void  ) const
inline

Definition at line 44 of file LinkTraverse.h.

◆ end()

std::vector<Link*>::const_iterator hrp::LinkTraverse::end ( ) const
inline

Definition at line 68 of file LinkTraverse.h.

◆ find()

void LinkTraverse::find ( Link root,
bool  doUpward = false,
bool  doDownward = true 
)
virtual

Reimplemented in hrp::LinkPath.

Definition at line 51 of file LinkTraverse.cpp.

◆ isDownward()

bool hrp::LinkTraverse::isDownward ( int  index) const
inline

If the connection from the queried link to the next link is downward (forward) direction, the method returns true. Otherwise, returns false. The range of valid indices is 0 to (numLinks() - 2).

Definition at line 77 of file LinkTraverse.h.

◆ link()

Link* hrp::LinkTraverse::link ( int  index) const
inline

Definition at line 56 of file LinkTraverse.h.

◆ numLinks()

unsigned int hrp::LinkTraverse::numLinks ( ) const
inline

Definition at line 40 of file LinkTraverse.h.

◆ operator[]()

Link* hrp::LinkTraverse::operator[] ( int  index) const
inline

Definition at line 60 of file LinkTraverse.h.

◆ rootLink()

Link* hrp::LinkTraverse::rootLink ( ) const
inline

Definition at line 52 of file LinkTraverse.h.

◆ size()

size_t hrp::LinkTraverse::size ( void  ) const
inline

Definition at line 48 of file LinkTraverse.h.

◆ totalMass()

double hrp::LinkTraverse::totalMass ( ) const
inline

Definition at line 85 of file LinkTraverse.h.

◆ traverse()

void LinkTraverse::traverse ( Link link,
bool  doUpward,
bool  doDownward,
bool  isUpward,
Link prev 
)
private

Definition at line 59 of file LinkTraverse.cpp.

Member Data Documentation

◆ links

std::vector<Link*> hrp::LinkTraverse::links
protected

Definition at line 91 of file LinkTraverse.h.

◆ numUpwardConnections

int hrp::LinkTraverse::numUpwardConnections
protected

Definition at line 92 of file LinkTraverse.h.

◆ totalMass_

double hrp::LinkTraverse::totalMass_
protected

Definition at line 93 of file LinkTraverse.h.


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


openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Thu Sep 8 2022 02:24:08