orocos_kdl
chainfksolver.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_FKSOLVER_HPP
23 #define KDL_CHAIN_FKSOLVER_HPP
24 
25 #include "chain.hpp"
26 #include "framevel.hpp"
27 #include "frameacc.hpp"
28 #include "jntarray.hpp"
29 #include "jntarrayvel.hpp"
30 #include "jntarrayacc.hpp"
31 #include "solveri.hpp"
32 
33 namespace KDL {
40  //Forward definition
41  class ChainFkSolverPos : public KDL::SolverI {
42  public:
52  virtual int JntToCart(const JntArray& q_in, Frame& p_out,int segmentNr=-1)=0;
62  virtual int JntToCart(const JntArray& q_in, std::vector<KDL::Frame>& p_out,int segmentNr=-1)=0;
63 
64  virtual void updateInternalDataStructures()=0;
65  virtual ~ChainFkSolverPos(){};
66  };
67 
74  class ChainFkSolverVel : public KDL::SolverI {
75  public:
85  virtual int JntToCart(const JntArrayVel& q_in, FrameVel& out,int segmentNr=-1)=0;
95  virtual int JntToCart(const JntArrayVel& q_in, std::vector<KDL::FrameVel>& out,int segmentNr=-1)=0;
96 
97  virtual void updateInternalDataStructures()=0;
98  virtual ~ChainFkSolverVel(){};
99  };
100 
108  public:
120  virtual int JntToCart(const JntArrayAcc& q_in, FrameAcc& out,int segmentNr=-1)=0;
132  virtual int JntToCart(const JntArrayAcc& q_in, std::vector<FrameAcc>& out,int segmentNr=-1)=0;
133 
134  virtual void updateInternalDataStructures()=0;
135  virtual ~ChainFkSolverAcc()=0;
136  };
137 
138 
139 }//end of namespace KDL
140 
141 #endif
chain.hpp
KDL::ChainFkSolverAcc
This abstract class encapsulates a solver for the forward acceleration kinematics for a KDL::Chain.
Definition: chainfksolver.hpp:107
KDL::JntArray
Definition: jntarray.hpp:69
std::vector< KDL::Frame >
jntarray.hpp
jntarrayacc.hpp
KDL::ChainFkSolverVel
This abstract class encapsulates a solver for the forward velocity kinematics for a KDL::Chain.
Definition: chainfksolver.hpp:74
KDL::FrameAcc
Definition: frameacc.hpp:188
KDL::ChainFkSolverPos
This abstract class encapsulates a solver for the forward position kinematics for a KDL::Chain.
Definition: chainfksolver.hpp:41
KDL::ChainFkSolverPos::JntToCart
virtual int JntToCart(const JntArray &q_in, Frame &p_out, int segmentNr=-1)=0
jntarrayvel.hpp
KDL
Definition: kukaLWR_DHnew.cpp:25
KDL::ChainFkSolverAcc::updateInternalDataStructures
virtual void updateInternalDataStructures()=0
framevel.hpp
KDL::ChainFkSolverAcc::JntToCart
virtual int JntToCart(const JntArrayAcc &q_in, FrameAcc &out, int segmentNr=-1)=0
KDL::ChainFkSolverVel::~ChainFkSolverVel
virtual ~ChainFkSolverVel()
Definition: chainfksolver.hpp:98
KDL::Frame
represents a frame transformation in 3D space (rotation + translation)
Definition: frames.hpp:572
solveri.hpp
KDL::ChainFkSolverPos::updateInternalDataStructures
virtual void updateInternalDataStructures()=0
KDL::ChainFkSolverAcc::~ChainFkSolverAcc
virtual ~ChainFkSolverAcc()=0
KDL::JntArrayVel
Definition: jntarrayvel.hpp:45
KDL::ChainFkSolverPos::~ChainFkSolverPos
virtual ~ChainFkSolverPos()
Definition: chainfksolver.hpp:65
KDL::SolverI
Definition: solveri.hpp:84
KDL::ChainFkSolverVel::JntToCart
virtual int JntToCart(const JntArrayVel &q_in, FrameVel &out, int segmentNr=-1)=0
KDL::FrameVel
Definition: framevel.hpp:209
frameacc.hpp
KDL::ChainFkSolverVel::updateInternalDataStructures
virtual void updateInternalDataStructures()=0
KDL::JntArrayAcc
Definition: jntarrayacc.hpp:49