Choreonoid  1.8
InverseKinematics.h
Go to the documentation of this file.
1 
5 #ifndef CNOID_BODY_INVERSE_KINEMATICS_H
6 #define CNOID_BODY_INVERSE_KINEMATICS_H
7 
8 #include <cnoid/EigenTypes>
9 #include "exportdecl.h"
10 
11 namespace cnoid {
12 
13 class CNOID_EXPORT InverseKinematics
14 {
15 public:
16  virtual ~InverseKinematics();
17 
18  virtual bool calcInverseKinematics(const Isometry3& T) = 0;
19 
20  virtual bool calcRemainingPartForwardKinematicsForInverseKinematics();
21 
23  bool calcInverseKinematics(const Vector3& p, const Matrix3& R) {
24  Isometry3 T;
25  T.linear() = R;
26  T.translation() = p;
27  return calcInverseKinematics(T);
28  }
29 };
30 
31 }
32 
33 #endif
cnoid::Vector3
Eigen::Vector3d Vector3
Definition: EigenTypes.h:57
cnoid::Isometry3
Eigen::Isometry3d Isometry3
Definition: EigenTypes.h:73
cnoid::Matrix3
Eigen::Matrix3d Matrix3
Definition: EigenTypes.h:56
cnoid
Definition: AbstractSceneLoader.h:11
cnoid::InverseKinematics
Definition: InverseKinematics.h:13
cnoid::InverseKinematics::calcInverseKinematics
bool calcInverseKinematics(const Vector3 &p, const Matrix3 &R)
deprecated
Definition: InverseKinematics.h:23