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 Gripper;
41  class Joint;
42  class JointController;
43  class Contact;
44  class PhysicsEngine;
45  class Mass;
46  class Road;
47  class Shape;
48  class RayShape;
49  class MultiRayShape;
50  class Inertial;
51  class SurfaceParams;
52  class BoxShape;
53  class CylinderShape;
54  class MeshShape;
55  class SphereShape;
56  class MeshShape;
57  class HeightmapShape;
58  class ModelState;
59  class LinkState;
60  class JointState;
61 
64  typedef boost::shared_ptr<Base> BasePtr;
65 
68  typedef boost::shared_ptr<Contact> ContactPtr;
69 
72  typedef boost::shared_ptr<Entity> EntityPtr;
73 
76  typedef boost::shared_ptr<World> WorldPtr;
77 
80  typedef boost::shared_ptr<Model> ModelPtr;
81 
84  typedef boost::shared_ptr<Actor> ActorPtr;
85 
88  typedef boost::shared_ptr<Link> LinkPtr;
89 
92  typedef boost::shared_ptr<Collision> CollisionPtr;
93 
96  typedef boost::shared_ptr<Joint> JointPtr;
97 
100  typedef boost::shared_ptr<JointController> JointControllerPtr;
101 
104  typedef boost::shared_ptr<PhysicsEngine> PhysicsEnginePtr;
105 
108  typedef boost::shared_ptr<Shape> ShapePtr;
109 
112  typedef boost::shared_ptr<RayShape> RayShapePtr;
113 
116  typedef boost::shared_ptr<HeightmapShape> HeightmapShapePtr;
117 
120  typedef boost::shared_ptr<MultiRayShape> MultiRayShapePtr;
121 
124  typedef boost::shared_ptr<Inertial> InertialPtr;
125 
128  typedef boost::shared_ptr<Road> RoadPtr;
129 
132  typedef boost::shared_ptr<SurfaceParams> SurfaceParamsPtr;
133 
136  typedef boost::shared_ptr<BoxShape> BoxShapePtr;
137 
140  typedef boost::shared_ptr<CylinderShape> CylinderShapePtr;
141 
144  typedef boost::shared_ptr<SphereShape> SphereShapePtr;
145 
148  typedef boost::shared_ptr<MeshShape> MeshShapePtr;
149 
152  typedef boost::shared_ptr<Gripper> GripperPtr;
153 
156  typedef std::vector<BasePtr> Base_V;
157 
160  typedef std::vector<ModelPtr> Model_V;
161 
164  typedef std::vector<ActorPtr> Actor_V;
165 
168  typedef std::vector<JointPtr> Joint_V;
169 
172  typedef std::vector<JointControllerPtr> JointController_V;
173 
176  typedef std::vector<LinkPtr> Link_V;
177 
180  typedef std::vector<CollisionPtr> Collision_V;
181 
184  typedef std::map<std::string, ModelState> ModelState_M;
185 
188  typedef std::map<std::string, LinkState> LinkState_M;
189 
192  typedef std::map<std::string, JointState> JointState_M;
193 
194  #ifndef GZ_COLLIDE_BITS
195 
199  #define GZ_ALL_COLLIDE 0x0FFFFFFF
200 
203  #define GZ_NONE_COLLIDE 0x00000000
204 
207  #define GZ_FIXED_COLLIDE 0x00000001
208 
211  #define GZ_SENSOR_COLLIDE 0x00000002
212 
215  #define GZ_GHOST_COLLIDE 0x10000000
216 
217  #endif
218  }
219 }
220 #endif