orocos_kdl
chainiksolverpos_nr.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 KDLCHAINIKSOLVERPOS_NR_HPP
23 #define KDLCHAINIKSOLVERPOS_NR_HPP
24 
25 #include "chainiksolver.hpp"
26 #include "chainfksolver.hpp"
27 
28 namespace KDL {
29 
39  {
40  public:
41  static const int E_IKSOLVER_FAILED = -100;
42  static const int E_FKSOLVERPOS_FAILED = -101;
43 
60  unsigned int maxiter=100,double eps=1e-6);
62 
74  virtual int CartToJnt(const JntArray& q_init, const Frame& p_in, JntArray& q_out);
75 
77  virtual const char* strError(const int error) const;
78 
80  virtual void updateInternalDataStructures();
81  private:
82  const Chain& chain;
83 
84  unsigned int nj;
90 
91  unsigned int maxiter;
92  double eps;
93  };
94 
95 }
96 
97 #endif
KDL::ChainIkSolverPos_NR::ChainIkSolverPos_NR
ChainIkSolverPos_NR(const Chain &chain, ChainFkSolverPos &fksolver, ChainIkSolverVel &iksolver, unsigned int maxiter=100, double eps=1e-6)
Child FK solver failed.
Definition: chainiksolverpos_nr.cpp:26
KDL::ChainIkSolverPos_NR::fksolver
ChainFkSolverPos & fksolver
Definition: chainiksolverpos_nr.hpp:86
KDL::ChainIkSolverPos_NR::eps
double eps
Definition: chainiksolverpos_nr.hpp:92
KDL::JntArray
Definition: jntarray.hpp:69
KDL::ChainIkSolverPos_NR::delta_q
JntArray delta_q
Definition: chainiksolverpos_nr.hpp:87
KDL::ChainIkSolverPos_NR::~ChainIkSolverPos_NR
~ChainIkSolverPos_NR()
Definition: chainiksolverpos_nr.cpp:70
KDL::ChainFkSolverPos
This abstract class encapsulates a solver for the forward position kinematics for a KDL::Chain.
Definition: chainfksolver.hpp:41
KDL::ChainIkSolverPos_NR::strError
virtual const char * strError(const int error) const
Definition: chainiksolverpos_nr.cpp:74
KDL::ChainIkSolverPos_NR::E_FKSOLVERPOS_FAILED
static const int E_FKSOLVERPOS_FAILED
Child IK solver vel failed.
Definition: chainiksolverpos_nr.hpp:42
KDL
Definition: kukaLWR_DHnew.cpp:25
chainfksolver.hpp
KDL::Twist
represents both translational and rotational velocities.
Definition: frames.hpp:723
KDL::ChainIkSolverPos_NR::nj
unsigned int nj
Definition: chainiksolverpos_nr.hpp:84
KDL::ChainIkSolverPos_NR::CartToJnt
virtual int CartToJnt(const JntArray &q_init, const Frame &p_in, JntArray &q_out)
Definition: chainiksolverpos_nr.cpp:42
chainiksolver.hpp
KDL::ChainIkSolverPos_NR::maxiter
unsigned int maxiter
Definition: chainiksolverpos_nr.hpp:91
KDL::ChainIkSolverPos_NR::iksolver
ChainIkSolverVel & iksolver
Definition: chainiksolverpos_nr.hpp:85
KDL::Frame
represents a frame transformation in 3D space (rotation + translation)
Definition: frames.hpp:572
KDL::ChainIkSolverPos_NR::chain
const Chain & chain
Definition: chainiksolverpos_nr.hpp:82
KDL::ChainIkSolverPos_NR
Definition: chainiksolverpos_nr.hpp:38
KDL::ChainIkSolverPos_NR::f
Frame f
Definition: chainiksolverpos_nr.hpp:88
KDL::ChainIkSolverPos_NR::delta_twist
Twist delta_twist
Definition: chainiksolverpos_nr.hpp:89
KDL::ChainIkSolverVel
This abstract class encapsulates the inverse velocity solver for a KDL::Chain.
Definition: chainiksolver.hpp:66
KDL::ChainIkSolverPos
This abstract class encapsulates the inverse position solver for a KDL::Chain.
Definition: chainiksolver.hpp:42
KDL::ChainIkSolverPos_NR::updateInternalDataStructures
virtual void updateInternalDataStructures()
Definition: chainiksolverpos_nr.cpp:35
KDL::Chain
This class encapsulates a serial kinematic interconnection structure. It is built out of segments.
Definition: chain.hpp:35
KDL::ChainIkSolverPos_NR::E_IKSOLVER_FAILED
static const int E_IKSOLVER_FAILED
Definition: chainiksolverpos_nr.hpp:41
KDL::SolverI::error
int error
Latest error, initialized to E_NOERROR in constructor.
Definition: solveri.hpp:149