This class encapsulates a serial kinematic interconnection structure. It is built out of segments.
More...
#include <chain.hpp>
This class encapsulates a serial kinematic interconnection structure. It is built out of segments.
◆ Chain() [1/2]
The constructor of a chain, a new chain is always empty.
◆ Chain() [2/2]
| KDL::Chain::Chain |
( |
const Chain & | in | ) |
|
◆ ~Chain()
| virtual KDL::Chain::~Chain |
( |
| ) |
|
|
virtual |
◆ addChain()
| void KDL::Chain::addChain |
( |
const Chain & | chain | ) |
|
Adds a complete chain to the end of the chain The added chain is copied.
- Parameters
-
◆ addSegment()
| void KDL::Chain::addSegment |
( |
const Segment & | segment | ) |
|
Adds a new segment to the end of the chain.
- Parameters
-
| segment | The segment to add |
◆ getNrOfJoints()
| unsigned int KDL::Chain::getNrOfJoints |
( |
| ) |
const |
|
inline |
Request the total number of joints in the chain.
Important: It is not the same as the total number of segments since a segment does not need to have a joint. This function is important when creating a KDL::JntArray to use with this chain.
- Returns
- total nr of joints
◆ getNrOfSegments()
| unsigned int KDL::Chain::getNrOfSegments |
( |
| ) |
const |
|
inline |
Request the total number of segments in the chain.
- Returns
- total number of segments
◆ getSegment() [1/2]
| Segment & KDL::Chain::getSegment |
( |
unsigned int | nr | ) |
|
Request the nr'd segment of the chain. There is no boundary checking.
- Parameters
-
| nr | the nr of the segment starting from 0 |
- Returns
- a reference to the nr'd segment
◆ getSegment() [2/2]
| const Segment & KDL::Chain::getSegment |
( |
unsigned int | nr | ) |
const |
Request the nr'd segment of the chain. There is no boundary checking.
- Parameters
-
| nr | the nr of the segment starting from 0 |
- Returns
- a constant reference to the nr'd segment
◆ operator=()
| Chain & KDL::Chain::operator= |
( |
const Chain & | arg | ) |
|
◆ segments
| std::vector<Segment> KDL::Chain::segments |
The documentation for this class was generated from the following file:
- build/orocos_kdl_install/include/kdl/chain.hpp