Gazebo Sim
API Reference
10.6.0
insert_drive_file
Tutorials
library_books
Classes
toc
Namespaces
insert_drive_file
Files
launch
Gazebo Website
Index
List
Hierarchy
Members: All
Members: Functions
Members: Variables
Members: Typedefs
Members: Enumerations
Members: Enumerator
List
Members
Functions
Typedefs
Variables
Enumerations
Enumerator
src
gz-sim
src
systems
physics
src/systems/physics/Physics.hh
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2018 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 GZ_SIM_SYSTEMS_PHYSICS_HH_
18
#define GZ_SIM_SYSTEMS_PHYSICS_HH_
19
20
#include <memory>
21
#include <unordered_map>
22
#include <utility>
23
#include <
gz/physics/FindFeatures.hh
>
24
#include <
gz/physics/RequestFeatures.hh
>
25
26
// Features need to be defined ahead of entityCast
27
#include <
gz/physics/BoxShape.hh
>
28
#include <
gz/physics/CapsuleShape.hh
>
29
#include <
gz/physics/ConeShape.hh
>
30
#include <
gz/physics/CylinderShape.hh
>
31
#include <
gz/physics/EllipsoidShape.hh
>
32
#include <
gz/physics/ForwardStep.hh
>
33
#include <
gz/physics/FrameSemantics.hh
>
34
#include <
gz/physics/FreeGroup.hh
>
35
#include <
gz/physics/FixedJoint.hh
>
36
#include <
gz/physics/GetContacts.hh
>
37
#include <
gz/physics/GetBoundingBox.hh
>
38
#include <
gz/physics/Joint.hh
>
39
#include <
gz/physics/Link.hh
>
40
#include <
gz/physics/RemoveEntities.hh
>
41
#include <
gz/physics/Shape.hh
>
42
#include <
gz/physics/SphereShape.hh
>
43
#include <
gz/physics/World.hh
>
44
#include <
gz/physics/mesh/MeshShape.hh
>
45
#include <
gz/physics/sdf/ConstructCollision.hh
>
46
#include <
gz/physics/sdf/ConstructJoint.hh
>
47
#include <
gz/physics/sdf/ConstructLink.hh
>
48
#include <
gz/physics/sdf/ConstructModel.hh
>
49
#include <
gz/physics/sdf/ConstructNestedModel.hh
>
50
#include <
gz/physics/sdf/ConstructWorld.hh
>
51
52
#include <gz/sim/config.hh>
53
#include <
gz/sim/System.hh
>
54
55
namespace
gz
56
{
57
namespace
sim
58
{
59
// Inline bracket to help doxygen filtering.
60
inline
namespace
GZ_SIM_VERSION_NAMESPACE {
61
namespace
systems
62
{
63
// Forward declarations.
64
class
PhysicsPrivate;
65
122
123
class
Physics
:
124
public
System
,
125
public
ISystemConfigure
,
126
public
ISystemConfigurePriority
,
127
public
ISystemReset
,
128
public
ISystemUpdate
129
{
131
public
:
explicit
Physics
();
132
134
public
:
~Physics
()
override
;
135
136
// Documentation inherited
137
public
:
void
Configure
(
const
Entity
&_entity,
138
const
std::shared_ptr<const sdf::Element>
&_sdf,
139
EntityComponentManager
&_ecm,
140
EventManager
&_eventMgr)
final
;
141
143
public
:
System::PriorityType
ConfigurePriority
() final;
144
145
// Documentation inherited
146
public:
void
Reset(const
UpdateInfo
&_info,
147
EntityComponentManager
&_ecm) final;
148
149
// Documentation inherited
150
public:
void
Update(const
UpdateInfo
&_info,
151
EntityComponentManager
&_ecm) final;
152
154
private:
std
::unique_ptr<PhysicsPrivate> dataPtr;
155
};
156
}
157
}
158
}
159
}
160
#endif