#include <LinkTraverse.h>
Public Member Functions | |
std::vector< Link * > ::const_iterator | begin () const |
void | calcForwardKinematics (bool calcVelocity=false, bool calcAcceleration=false) const |
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 |
Link * | link (int index) const |
LinkTraverse () | |
LinkTraverse (int size) | |
LinkTraverse (Link *root, bool doUpward=false, bool doDownward=true) | |
unsigned int | numLinks () const |
Link * | operator[] (int index) const |
Link * | rootLink () const |
size_t | size () const |
virtual | ~LinkTraverse () |
Protected Attributes | |
std::vector< Link * > | links |
int | numUpwardConnections |
Private Member Functions | |
void | traverse (Link *link, bool doUpward, bool doDownward, bool isUpward, Link *prev) |
Definition at line 29 of file LinkTraverse.h.
Definition at line 26 of file LinkTraverse.cpp.
LinkTraverse::LinkTraverse | ( | int | size | ) |
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.
LinkTraverse::~LinkTraverse | ( | ) | [virtual] |
Definition at line 45 of file LinkTraverse.cpp.
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.
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.
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.
void LinkTraverse::traverse | ( | Link * | link, |
bool | doUpward, | ||
bool | doDownward, | ||
bool | isUpward, | ||
Link * | prev | ||
) | [private] |
Definition at line 59 of file LinkTraverse.cpp.
std::vector<Link*> hrp::LinkTraverse::links [protected] |
Definition at line 85 of file LinkTraverse.h.
int hrp::LinkTraverse::numUpwardConnections [protected] |
Definition at line 86 of file LinkTraverse.h.