KDL
1.5.3
Toggle main menu visibility
Loading...
Searching...
No Matches
src
chain.hpp
Go to the documentation of this file.
1
// Copyright (C) 2007 Ruben Smits <ruben dot smits at mech dot kuleuven dot be>
2
3
// Version: 1.0
4
// Author: Ruben Smits <ruben dot smits at mech dot kuleuven dot be>
5
// Maintainer: Ruben Smits <ruben dot smits at mech dot kuleuven dot be>
6
// URL: http://www.orocos.org/kdl
7
8
// This library is free software; you can redistribute it and/or
9
// modify it under the terms of the GNU Lesser General Public
10
// License as published by the Free Software Foundation; either
11
// version 2.1 of the License, or (at your option) any later version.
12
13
// This library is distributed in the hope that it will be useful,
14
// but WITHOUT ANY WARRANTY; without even the implied warranty of
15
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16
// Lesser General Public License for more details.
17
18
// You should have received a copy of the GNU Lesser General Public
19
// License along with this library; if not, write to the Free Software
20
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21
22
#ifndef KDL_CHAIN_HPP
23
#define KDL_CHAIN_HPP
24
25
#include "
segment.hpp
"
26
#include <string>
27
28
namespace
KDL
{
35
class
Chain
{
36
private
:
37
unsigned
int
nrOfJoints
;
38
unsigned
int
nrOfSegments
;
39
public
:
40
std::vector<Segment>
segments
;
45
Chain
();
46
Chain
(
const
Chain
& in);
47
Chain
&
operator =
(
const
Chain
& arg);
48
54
void
addSegment
(
const
Segment
& segment);
61
void
addChain
(
const
Chain
& chain);
62
71
unsigned
int
getNrOfJoints
()
const
{
return
nrOfJoints
;};
76
unsigned
int
getNrOfSegments
()
const
{
return
nrOfSegments
;};
77
86
const
Segment
&
getSegment
(
unsigned
int
nr)
const
;
87
96
Segment
&
getSegment
(
unsigned
int
nr);
97
98
virtual
~Chain
();
99
};
100
101
102
103
}
//end of namespace KDL
104
105
#endif
KDL::Chain::addChain
void addChain(const Chain &chain)
Adds a complete chain to the end of the chain The added chain is copied.
Definition
chain.cpp:61
KDL::Chain::getSegment
const Segment & getSegment(unsigned int nr) const
Request the nr'd segment of the chain.
Definition
chain.cpp:67
KDL::Chain::nrOfJoints
unsigned int nrOfJoints
Definition
chain.hpp:37
KDL::Chain::Chain
Chain()
The constructor of a chain, a new chain is always empty.
Definition
chain.cpp:26
KDL::Chain::getNrOfJoints
unsigned int getNrOfJoints() const
Request the total number of joints in the chain.
Definition
chain.hpp:71
KDL::Chain::~Chain
virtual ~Chain()
Definition
chain.cpp:77
KDL::Chain::operator=
Chain & operator=(const Chain &arg)
Definition
chain.cpp:42
KDL::Chain::addSegment
void addSegment(const Segment &segment)
Adds a new segment to the end of the chain.
Definition
chain.cpp:53
KDL::Chain::getNrOfSegments
unsigned int getNrOfSegments() const
Request the total number of segments in the chain.
Definition
chain.hpp:76
KDL::Chain::segments
std::vector< Segment > segments
Definition
chain.hpp:40
KDL::Chain::nrOfSegments
unsigned int nrOfSegments
Definition
chain.hpp:38
KDL::Segment
Definition
segment.hpp:46
KDL
Definition
articulatedbodyinertia.cpp:26
segment.hpp
Generated by
1.17.0