Choreonoid  1.8
Collision.h
Go to the documentation of this file.
1 
6 #ifndef CNOID_UTIL_COLLISION_H
7 #define CNOID_UTIL_COLLISION_H
8 
9 #include "EigenTypes.h"
10 #include <vector>
11 
12 namespace cnoid {
13 
14 struct Collision {
17  double depth;
18  union {
19  struct {
20  unsigned int id1;
21  unsigned int id2;
22  };
23  unsigned long long int id;
24  };
25 };
26 
27 typedef std::vector<Collision> CollisionArray;
28 
30 typedef std::vector<Collision> CollisionList;
31 
32 }
33 
34 #endif
cnoid::CollisionArray
std::vector< Collision > CollisionArray
Definition: Collision.h:27
cnoid::Vector3
Eigen::Vector3d Vector3
Definition: EigenTypes.h:57
cnoid::Collision::id1
unsigned int id1
Definition: Collision.h:20
cnoid::Collision::id
unsigned long long int id
Definition: Collision.h:23
cnoid::Collision::normal
Vector3 normal
Definition: Collision.h:16
cnoid::Collision::depth
double depth
Definition: Collision.h:17
cnoid::Collision::point
Vector3 point
Definition: Collision.h:15
cnoid::CollisionList
std::vector< Collision > CollisionList
obsolete
Definition: Collision.h:30
cnoid
Definition: AbstractSceneLoader.h:11
cnoid::Collision
Definition: Collision.h:14
EigenTypes.h
cnoid::Collision::id2
unsigned int id2
Definition: Collision.h:21