PhysicsTypes.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2012-2015 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 FrictionPyramid;
42  class Gripper;
43  class Joint;
44  class JointController;
45  class Contact;
46  class PresetManager;
47  class PhysicsEngine;
48  class Mass;
49  class Road;
50  class Shape;
51  class RayShape;
52  class MultiRayShape;
53  class Inertial;
54  class SurfaceParams;
55  class BoxShape;
56  class CylinderShape;
57  class MeshShape;
58  class SphereShape;
59  class PlaneShape;
60  class HeightmapShape;
61  class PolylineShape;
62  class ModelState;
63  class LinkState;
64  class JointState;
65 
68  typedef boost::shared_ptr<Base> BasePtr;
69 
72  typedef boost::shared_ptr<Contact> ContactPtr;
73 
76  typedef boost::shared_ptr<Entity> EntityPtr;
77 
80  typedef boost::shared_ptr<World> WorldPtr;
81 
84  typedef boost::shared_ptr<Model> ModelPtr;
85 
88  typedef boost::shared_ptr<Actor> ActorPtr;
89 
92  typedef boost::shared_ptr<Link> LinkPtr;
93 
96  typedef boost::shared_ptr<Collision> CollisionPtr;
97 
100  typedef boost::shared_ptr<Joint> JointPtr;
101 
104  typedef boost::shared_ptr<JointController> JointControllerPtr;
105 
108  typedef boost::shared_ptr<PhysicsEngine> PhysicsEnginePtr;
109 
112  typedef boost::shared_ptr<PresetManager> PresetManagerPtr;
113 
116  typedef boost::shared_ptr<Shape> ShapePtr;
117 
120  typedef boost::shared_ptr<RayShape> RayShapePtr;
121 
124  typedef boost::shared_ptr<HeightmapShape> HeightmapShapePtr;
125 
128  typedef boost::shared_ptr<MultiRayShape> MultiRayShapePtr;
129 
132  typedef boost::shared_ptr<Inertial> InertialPtr;
133 
136  typedef boost::shared_ptr<Road> RoadPtr;
137 
140  typedef boost::shared_ptr<FrictionPyramid> FrictionPyramidPtr;
141 
144  typedef boost::shared_ptr<SurfaceParams> SurfaceParamsPtr;
145 
148  typedef boost::shared_ptr<BoxShape> BoxShapePtr;
149 
152  typedef boost::shared_ptr<CylinderShape> CylinderShapePtr;
153 
156  typedef boost::shared_ptr<PlaneShape> PlaneShapePtr;
157 
160  typedef boost::shared_ptr<MeshShape> MeshShapePtr;
161 
164  typedef boost::shared_ptr<PolylineShape> PolylineShapePtr;
165 
168  typedef boost::shared_ptr<SphereShape> SphereShapePtr;
169 
172  typedef boost::shared_ptr<Gripper> GripperPtr;
173 
176  typedef std::vector<BasePtr> Base_V;
177 
180  typedef std::vector<ModelPtr> Model_V;
181 
184  typedef std::vector<ActorPtr> Actor_V;
185 
188  typedef std::vector<JointPtr> Joint_V;
189 
192  typedef std::vector<JointControllerPtr> JointController_V;
193 
196  typedef std::vector<LinkPtr> Link_V;
197 
200  typedef std::vector<CollisionPtr> Collision_V;
201 
204  typedef std::map<std::string, ModelState> ModelState_M;
205 
208  typedef std::map<std::string, LinkState> LinkState_M;
209 
212  typedef std::map<std::string, JointState> JointState_M;
213 
214  #ifndef GZ_COLLIDE_BITS
215 
219  #define GZ_ALL_COLLIDE 0x0FFFFFFF
220 
223  #define GZ_NONE_COLLIDE 0x00000000
224 
227  #define GZ_FIXED_COLLIDE 0x00000001
228 
231  #define GZ_SENSOR_COLLIDE 0x00000002
232 
235  #define GZ_GHOST_COLLIDE 0x10000000
236 
237  #endif
238  }
239 }
240 #endif
std::vector< JointPtr > Joint_V
Definition: PhysicsTypes.hh:188
boost::shared_ptr< Base > BasePtr
Definition: PhysicsTypes.hh:68
boost::shared_ptr< Model > ModelPtr
Definition: PhysicsTypes.hh:84
boost::shared_ptr< Shape > ShapePtr
Definition: PhysicsTypes.hh:116
std::map< std::string, JointState > JointState_M
Definition: PhysicsTypes.hh:212
boost::shared_ptr< Inertial > InertialPtr
Definition: PhysicsTypes.hh:132
std::vector< LinkPtr > Link_V
Definition: PhysicsTypes.hh:196
boost::shared_ptr< Collision > CollisionPtr
Definition: PhysicsTypes.hh:96
boost::shared_ptr< JointController > JointControllerPtr
Definition: PhysicsTypes.hh:104
boost::shared_ptr< MultiRayShape > MultiRayShapePtr
Definition: PhysicsTypes.hh:128
std::vector< JointControllerPtr > JointController_V
Definition: PhysicsTypes.hh:192
boost::shared_ptr< PhysicsEngine > PhysicsEnginePtr
Definition: PhysicsTypes.hh:108
std::map< std::string, ModelState > ModelState_M
Definition: PhysicsTypes.hh:204
std::vector< ActorPtr > Actor_V
Definition: PhysicsTypes.hh:184
boost::shared_ptr< Contact > ContactPtr
Definition: PhysicsTypes.hh:72
boost::shared_ptr< Entity > EntityPtr
Definition: PhysicsTypes.hh:76
Used to render a strip of road.
boost::shared_ptr< SurfaceParams > SurfaceParamsPtr
Definition: PhysicsTypes.hh:144
boost::shared_ptr< SphereShape > SphereShapePtr
Definition: PhysicsTypes.hh:168
boost::shared_ptr< World > WorldPtr
Definition: PhysicsTypes.hh:80
boost::shared_ptr< Joint > JointPtr
Definition: PhysicsTypes.hh:100
boost::shared_ptr< Actor > ActorPtr
Definition: PhysicsTypes.hh:88
boost::shared_ptr< FrictionPyramid > FrictionPyramidPtr
Definition: PhysicsTypes.hh:140
std::map< std::string, LinkState > LinkState_M
Definition: PhysicsTypes.hh:208
boost::shared_ptr< HeightmapShape > HeightmapShapePtr
Definition: PhysicsTypes.hh:124
std::vector< CollisionPtr > Collision_V
Definition: PhysicsTypes.hh:200
std::vector< ModelPtr > Model_V
Definition: PhysicsTypes.hh:180
boost::shared_ptr< Gripper > GripperPtr
Definition: PhysicsTypes.hh:172
boost::shared_ptr< MeshShape > MeshShapePtr
Definition: PhysicsTypes.hh:160
boost::shared_ptr< PlaneShape > PlaneShapePtr
Definition: PhysicsTypes.hh:156
boost::shared_ptr< BoxShape > BoxShapePtr
Definition: PhysicsTypes.hh:148
boost::shared_ptr< PolylineShape > PolylineShapePtr
Definition: PhysicsTypes.hh:164
boost::shared_ptr< CylinderShape > CylinderShapePtr
Definition: PhysicsTypes.hh:152
std::vector< BasePtr > Base_V
Definition: PhysicsTypes.hh:176
boost::shared_ptr< Link > LinkPtr
Definition: PhysicsTypes.hh:92
boost::shared_ptr< RayShape > RayShapePtr
Definition: PhysicsTypes.hh:120
boost::shared_ptr< Road > RoadPtr
Definition: PhysicsTypes.hh:136
boost::shared_ptr< PresetManager > PresetManagerPtr
Definition: PhysicsTypes.hh:112