All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PhysicsTypes.hh
Go to the documentation of this file.
1 /*
2  * Copyright 2012 Open Source Robotics Foundation
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16 */
17 #ifndef _PHYSICSTYPES_HH_
18 #define _PHYSICSTYPES_HH_
19 
20 #include <vector>
21 #include <map>
22 #include <string>
23 #include <boost/shared_ptr.hpp>
24 
28 namespace gazebo
29 {
31  namespace physics
32  {
33  class Base;
34  class Entity;
35  class World;
36  class Model;
37  class Actor;
38  class Link;
39  class Collision;
40  class Joint;
41  class JointController;
42  class Contact;
43  class PhysicsEngine;
44  class Mass;
45  class Road;
46  class Shape;
47  class RayShape;
48  class MultiRayShape;
49  class Inertial;
50  class SurfaceParams;
51  class BoxShape;
52  class CylinderShape;
53  class MeshShape;
54  class SphereShape;
55  class MeshShape;
56  class HeightmapShape;
57  class ModelState;
58  class LinkState;
59  class JointState;
60 
63  typedef boost::shared_ptr<Base> BasePtr;
64 
67  typedef boost::shared_ptr<Contact> ContactPtr;
68 
71  typedef boost::shared_ptr<Entity> EntityPtr;
72 
75  typedef boost::shared_ptr<World> WorldPtr;
76 
79  typedef boost::shared_ptr<Model> ModelPtr;
80 
83  typedef boost::shared_ptr<Actor> ActorPtr;
84 
87  typedef boost::shared_ptr<Link> LinkPtr;
88 
91  typedef boost::shared_ptr<Collision> CollisionPtr;
92 
95  typedef boost::shared_ptr<Joint> JointPtr;
96 
99  typedef boost::shared_ptr<JointController> JointControllerPtr;
100 
103  typedef boost::shared_ptr<PhysicsEngine> PhysicsEnginePtr;
104 
107  typedef boost::shared_ptr<Shape> ShapePtr;
108 
111  typedef boost::shared_ptr<RayShape> RayShapePtr;
112 
115  typedef boost::shared_ptr<HeightmapShape> HeightmapShapePtr;
116 
119  typedef boost::shared_ptr<MultiRayShape> MultiRayShapePtr;
120 
123  typedef boost::shared_ptr<Inertial> InertialPtr;
124 
127  typedef boost::shared_ptr<Road> RoadPtr;
128 
131  typedef boost::shared_ptr<SurfaceParams> SurfaceParamsPtr;
132 
135  typedef boost::shared_ptr<BoxShape> BoxShapePtr;
136 
139  typedef boost::shared_ptr<CylinderShape> CylinderShapePtr;
140 
143  typedef boost::shared_ptr<SphereShape> SphereShapePtr;
144 
147  typedef boost::shared_ptr<MeshShape> MeshShapePtr;
148 
151  typedef std::vector<BasePtr> Base_V;
152 
155  typedef std::vector<ModelPtr> Model_V;
156 
159  typedef std::vector<ActorPtr> Actor_V;
160 
163  typedef std::vector<JointPtr> Joint_V;
164 
167  typedef std::vector<JointControllerPtr> JointController_V;
168 
171  typedef std::vector<LinkPtr> Link_V;
172 
175  typedef std::vector<CollisionPtr> Collision_V;
176 
179  typedef std::map<std::string, ModelState> ModelState_M;
180 
183  typedef std::map<std::string, LinkState> LinkState_M;
184 
187  typedef std::map<std::string, JointState> JointState_M;
188 
189  #ifndef GZ_COLLIDE_BITS
190 
194  #define GZ_ALL_COLLIDE 0x0FFFFFFF
195 
198  #define GZ_NONE_COLLIDE 0x00000000
199 
202  #define GZ_FIXED_COLLIDE 0x00000001
203 
206  #define GZ_SENSOR_COLLIDE 0x00000002
207 
210  #define GZ_GHOST_COLLIDE 0x10000000
211 
212  #endif
213  }
214 }
215 #endif