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 <boost/shared_ptr.hpp>
22 
26 namespace gazebo
27 {
29  namespace physics
30  {
31  class Base;
32  class Entity;
33  class World;
34  class Model;
35  class Actor;
36  class Link;
37  class Collision;
38  class Joint;
39  class JointController;
40  class Contact;
41  class PhysicsEngine;
42  class Mass;
43  class Road;
44  class Shape;
45  class RayShape;
46  class MultiRayShape;
47  class Inertial;
48  class SurfaceParams;
49  class BoxShape;
50  class CylinderShape;
51  class SphereShape;
52  class MeshShape;
53  class HeightmapShape;
54 
57  typedef boost::shared_ptr<Base> BasePtr;
58 
61  typedef boost::shared_ptr<Contact> ContactPtr;
62 
65  typedef boost::shared_ptr<Entity> EntityPtr;
66 
69  typedef boost::shared_ptr<World> WorldPtr;
70 
73  typedef boost::shared_ptr<Model> ModelPtr;
74 
77  typedef boost::shared_ptr<Actor> ActorPtr;
78 
81  typedef boost::shared_ptr<Link> LinkPtr;
82 
85  typedef boost::shared_ptr<Collision> CollisionPtr;
86 
89  typedef boost::shared_ptr<Joint> JointPtr;
90 
93  typedef boost::shared_ptr<JointController> JointControllerPtr;
94 
97  typedef boost::shared_ptr<PhysicsEngine> PhysicsEnginePtr;
98 
101  typedef boost::shared_ptr<Shape> ShapePtr;
102 
105  typedef boost::shared_ptr<RayShape> RayShapePtr;
106 
109  typedef boost::shared_ptr<HeightmapShape> HeightmapShapePtr;
110 
113  typedef boost::shared_ptr<MultiRayShape> MultiRayShapePtr;
114 
117  typedef boost::shared_ptr<Inertial> InertialPtr;
118 
121  typedef boost::shared_ptr<Road> RoadPtr;
122 
125  typedef boost::shared_ptr<SurfaceParams> SurfaceParamsPtr;
126 
129  typedef boost::shared_ptr<BoxShape> BoxShapePtr;
130 
133  typedef boost::shared_ptr<CylinderShape> CylinderShapePtr;
134 
137  typedef boost::shared_ptr<SphereShape> SphereShapePtr;
138 
141  typedef boost::shared_ptr<MeshShape> MeshShapePtr;
142 
145  typedef std::vector<BasePtr> Base_V;
146 
149  typedef std::vector<ModelPtr> Model_V;
150 
153  typedef std::vector<ActorPtr> Actor_V;
154 
157  typedef std::vector<JointPtr> Joint_V;
158 
161  typedef std::vector<JointControllerPtr> JointController_V;
162 
165  typedef std::vector<LinkPtr> Link_V;
166 
169  typedef std::vector<CollisionPtr> Collision_V;
170 
171  #ifndef GZ_COLLIDE_BITS
172 
176  #define GZ_ALL_COLLIDE 0x0FFFFFFF
177 
180  #define GZ_NONE_COLLIDE 0x00000000
181 
184  #define GZ_FIXED_COLLIDE 0x00000001
185 
188  #define GZ_SENSOR_COLLIDE 0x00000002
189 
192  #define GZ_GHOST_COLLIDE 0x10000000
193 
194  #endif
195  }
196 }
197 #endif