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 (C) 2012-2014 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 #include "gazebo/util/system.hh"
25 
29 namespace gazebo
30 {
32  namespace physics
33  {
34  class Base;
35  class Entity;
36  class World;
37  class Model;
38  class Actor;
39  class Link;
40  class Collision;
41  class Gripper;
42  class Joint;
43  class JointController;
44  class Contact;
45  class PhysicsEngine;
46  class Mass;
47  class Road;
48  class Shape;
49  class RayShape;
50  class MultiRayShape;
51  class Inertial;
52  class SurfaceParams;
53  class BoxShape;
54  class CylinderShape;
55  class MeshShape;
56  class SphereShape;
57  class MeshShape;
58  class HeightmapShape;
59  class ModelState;
60  class LinkState;
61  class JointState;
62 
65  typedef boost::shared_ptr<Base> BasePtr;
66 
69  typedef boost::shared_ptr<Contact> ContactPtr;
70 
73  typedef boost::shared_ptr<Entity> EntityPtr;
74 
77  typedef boost::shared_ptr<World> WorldPtr;
78 
81  typedef boost::shared_ptr<Model> ModelPtr;
82 
85  typedef boost::shared_ptr<Actor> ActorPtr;
86 
89  typedef boost::shared_ptr<Link> LinkPtr;
90 
93  typedef boost::shared_ptr<Collision> CollisionPtr;
94 
97  typedef boost::shared_ptr<Joint> JointPtr;
98 
101  typedef boost::shared_ptr<JointController> JointControllerPtr;
102 
105  typedef boost::shared_ptr<PhysicsEngine> PhysicsEnginePtr;
106 
109  typedef boost::shared_ptr<Shape> ShapePtr;
110 
113  typedef boost::shared_ptr<RayShape> RayShapePtr;
114 
117  typedef boost::shared_ptr<HeightmapShape> HeightmapShapePtr;
118 
121  typedef boost::shared_ptr<MultiRayShape> MultiRayShapePtr;
122 
125  typedef boost::shared_ptr<Inertial> InertialPtr;
126 
129  typedef boost::shared_ptr<Road> RoadPtr;
130 
133  typedef boost::shared_ptr<SurfaceParams> SurfaceParamsPtr;
134 
137  typedef boost::shared_ptr<BoxShape> BoxShapePtr;
138 
141  typedef boost::shared_ptr<CylinderShape> CylinderShapePtr;
142 
145  typedef boost::shared_ptr<SphereShape> SphereShapePtr;
146 
149  typedef boost::shared_ptr<MeshShape> MeshShapePtr;
150 
153  typedef boost::shared_ptr<Gripper> GripperPtr;
154 
157  typedef std::vector<BasePtr> Base_V;
158 
161  typedef std::vector<ModelPtr> Model_V;
162 
165  typedef std::vector<ActorPtr> Actor_V;
166 
169  typedef std::vector<JointPtr> Joint_V;
170 
173  typedef std::vector<JointControllerPtr> JointController_V;
174 
177  typedef std::vector<LinkPtr> Link_V;
178 
181  typedef std::vector<CollisionPtr> Collision_V;
182 
185  typedef std::map<std::string, ModelState> ModelState_M;
186 
189  typedef std::map<std::string, LinkState> LinkState_M;
190 
193  typedef std::map<std::string, JointState> JointState_M;
194 
195  #ifndef GZ_COLLIDE_BITS
196 
200  #define GZ_ALL_COLLIDE 0x0FFFFFFF
201 
204  #define GZ_NONE_COLLIDE 0x00000000
205 
208  #define GZ_FIXED_COLLIDE 0x00000001
209 
212  #define GZ_SENSOR_COLLIDE 0x00000002
213 
216  #define GZ_GHOST_COLLIDE 0x10000000
217 
218  #endif
219  }
220 }
221 #endif