Choreonoid  1.8
PenetrationBlocker.h
Go to the documentation of this file.
1 
5 #ifndef CNOID_BODY_PENETRATION_BLOCKER_H
6 #define CNOID_BODY_PENETRATION_BLOCKER_H
7 
8 #include "Link.h"
9 #include <cnoid/CollisionDetector>
10 #include "exportdecl.h"
11 
12 namespace cnoid {
13 
14 class PenetrationBlockerImpl;
15 
19 class CNOID_EXPORT PenetrationBlocker
20 {
21 public:
25  PenetrationBlocker(CollisionDetectorPtr collisionDetector, Link* targetLink);
26 
27  void addOpponentLink(Link* link);
28  void setDepth(double depth);
29  void start();
30  bool adjust(Isometry3& io_T, const Vector3& pushDirection);
31 
32 private:
33  PenetrationBlockerImpl* impl;
34 };
35 
36 }
37 
38 #endif
cnoid::Vector3
Eigen::Vector3d Vector3
Definition: EigenTypes.h:57
cnoid::Isometry3
Eigen::Isometry3d Isometry3
Definition: EigenTypes.h:73
cnoid::ref_ptr< CollisionDetector >
cnoid
Definition: AbstractSceneLoader.h:11
cnoid::PenetrationBlocker
Definition: PenetrationBlocker.h:19