Cheetah Software  1.0
CollisionPlane.h
Go to the documentation of this file.
1 
7 #ifndef COLLISIONPLANE_H
8 #define COLLISIONPLANE_H
9 
10 #include <vector>
11 #include "Collision/Collision.h"
12 #include "cppTypes.h"
13 
17 template <typename T>
18 class CollisionPlane : public Collision<T> {
19  public:
20  EIGEN_MAKE_ALIGNED_OPERATOR_NEW
21 
32  CollisionPlane(const T& mu, const T& restitution, const T& height)
33  : Collision<T>(mu, restitution), _height(height) {}
34 
35  virtual ~CollisionPlane() {}
36 
37  virtual bool ContactDetection(const Vec3<T>& cp_pos, T& penetration,
38  Mat3<T>& cp_frame);
39 
40  private:
42 };
43 
44 #endif // COLLISION_PLANE_H
typename Eigen::Matrix< T, 3, 3 > Mat3
Definition: cppTypes.h:54
typename Eigen::Matrix< T, 3, 1 > Vec3
Definition: cppTypes.h:26
EIGEN_MAKE_ALIGNED_OPERATOR_NEW CollisionPlane(const T &mu, const T &restitution, const T &height)
Virtual class of Collision logic.
virtual ~CollisionPlane()
virtual bool ContactDetection(const Vec3< T > &cp_pos, T &penetration, Mat3< T > &cp_frame)