Choreonoid  1.8
CollisionData.h
Go to the documentation of this file.
1 
2 #ifndef CNOID_AIST_COLLISION_DETECTOR_COLLISION_DATA_H
3 #define CNOID_AIST_COLLISION_DETECTOR_COLLISION_DATA_H
4 
5 #include <cnoid/EigenTypes>
6 #include "exportdecl.h"
7 
8 namespace cnoid {
9 
17 {
18 public:
19  int id1;
20  int id2;
21 
24  int i_point_new[4];
25 
27  double depth;
28 
29  Vector3 n; // normal vector of triangle id1
30  Vector3 m; // normal vector of triangle id2
31  int c_type; // c_type=1 for vertex-face contact, c_type=2 for edge-edge contact
32 };
33 
34 }
35 
36 #endif
cnoid::collision_data::m
Vector3 m
Definition: CollisionData.h:30
cnoid::collision_data::depth
double depth
Definition: CollisionData.h:27
cnoid::Vector3
Eigen::Vector3d Vector3
Definition: EigenTypes.h:57
cnoid::collision_data::i_point_new
int i_point_new[4]
Definition: CollisionData.h:24
cnoid::collision_data::c_type
int c_type
Definition: CollisionData.h:31
cnoid::collision_data::id1
int id1
Definition: CollisionData.h:19
cnoid::collision_data::id2
int id2
Definition: CollisionData.h:20
cnoid
Definition: AbstractSceneLoader.h:11
cnoid::collision_data::n
Vector3 n
Definition: CollisionData.h:29
cnoid::collision_data::n_vector
Vector3 n_vector
Definition: CollisionData.h:26
cnoid::collision_data
Definition: CollisionData.h:16
cnoid::collision_data::i_points
Vector3 i_points[4]
Definition: CollisionData.h:23
cnoid::collision_data::num_of_i_points
int num_of_i_points
Definition: CollisionData.h:22