chainfksolverpos_recursive.hpp 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. // Copyright (C) 2007 Ruben Smits <ruben dot smits at mech dot kuleuven dot be>
  2. // Version: 1.0
  3. // Author: Ruben Smits <ruben dot smits at mech dot kuleuven dot be>
  4. // Maintainer: Ruben Smits <ruben dot smits at mech dot kuleuven dot be>
  5. // URL: http://www.orocos.org/kdl
  6. // This library is free software; you can redistribute it and/or
  7. // modify it under the terms of the GNU Lesser General Public
  8. // License as published by the Free Software Foundation; either
  9. // version 2.1 of the License, or (at your option) any later version.
  10. // This library is distributed in the hope that it will be useful,
  11. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  13. // Lesser General Public License for more details.
  14. // You should have received a copy of the GNU Lesser General Public
  15. // License along with this library; if not, write to the Free Software
  16. // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  17. #ifndef KDLCHAINFKSOLVERPOS_RECURSIVE_HPP
  18. #define KDLCHAINFKSOLVERPOS_RECURSIVE_HPP
  19. #include "chainfksolver.hpp"
  20. namespace KDL {
  21. /**
  22. * Implementation of a recursive forward position kinematics
  23. * algorithm to calculate the position transformation from joint
  24. * space to Cartesian space of a general kinematic chain (KDL::Chain).
  25. *
  26. * @ingroup KinematicFamily
  27. */
  28. class ChainFkSolverPos_recursive : public ChainFkSolverPos
  29. {
  30. public:
  31. ChainFkSolverPos_recursive(const Chain& chain);
  32. ~ChainFkSolverPos_recursive();
  33. virtual int JntToCart(const JntArray& q_in, Frame& p_out, int segmentNr=-1);
  34. private:
  35. const Chain chain;
  36. };
  37. }
  38. #endif