Public Member Functions | Protected Attributes | Private Member Functions
hrp::LinkTraverse Class Reference

#include <LinkTraverse.h>

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

List of all members.

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

Definition at line 26 of file LinkTraverse.cpp.

Definition at line 32 of file LinkTraverse.cpp.

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

Definition at line 39 of file LinkTraverse.cpp.

Definition at line 45 of file LinkTraverse.cpp.


Member Function Documentation

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

Definition at line 64 of file LinkTraverse.h.

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

Definition at line 79 of file LinkTraverse.cpp.

Definition at line 206 of file LinkTraverse.cpp.

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

Definition at line 44 of file LinkTraverse.h.

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

Definition at line 68 of file LinkTraverse.h.

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

Reimplemented in hrp::LinkPath.

Definition at line 51 of file LinkTraverse.cpp.

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* hrp::LinkTraverse::link ( int  index) const [inline]

Definition at line 56 of file LinkTraverse.h.

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

Definition at line 40 of file LinkTraverse.h.

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

Definition at line 60 of file LinkTraverse.h.

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

Definition at line 52 of file LinkTraverse.h.

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

Definition at line 48 of file LinkTraverse.h.

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

Definition at line 85 of file LinkTraverse.h.

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

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

Definition at line 91 of file LinkTraverse.h.

Definition at line 92 of file LinkTraverse.h.

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 Apr 11 2019 03:30:22