treejnttojacsolver.hpp 800 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * TreeJntToJacSolver.hpp
  3. *
  4. * Created on: Nov 27, 2008
  5. * Author: rubensmits
  6. */
  7. #ifndef TREEJNTTOJACSOLVER_HPP_
  8. #define TREEJNTTOJACSOLVER_HPP_
  9. #include "tree.hpp"
  10. #include "jacobian.hpp"
  11. #include "jntarray.hpp"
  12. namespace KDL {
  13. class TreeJntToJacSolver {
  14. public:
  15. TreeJntToJacSolver(const Tree& tree);
  16. virtual ~TreeJntToJacSolver();
  17. /*
  18. * Calculate the jacobian for a part of the tree: from a certain segment, given by segmentname to the root.
  19. * The resulting jacobian is expressed in the baseframe of the tree ("root"), the reference point is in the end-segment
  20. */
  21. int JntToJac(const JntArray& q_in, Jacobian& jac,
  22. const std::string& segmentname);
  23. private:
  24. KDL::Tree tree;
  25. };
  26. }//End of namespace
  27. #endif /* TREEJNTTOJACSOLVER_H_ */