Gazebo Sim
API Reference
8.7.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
86
87
class
Physics
:
88
public
System
,
89
public
ISystemConfigure
,
90
public
ISystemReset
,
91
public
ISystemUpdate
92
{
94
public
:
explicit
Physics
();
95
97
public
:
~Physics
()
override
;
98
99
// Documentation inherited
100
public
:
void
Configure
(
const
Entity
&_entity,
101
const
std::shared_ptr<const sdf::Element>
&_sdf,
102
EntityComponentManager
&_ecm,
103
EventManager
&_eventMgr)
final
;
104
105
// Documentation inherited
106
public
:
void
Reset
(
const
UpdateInfo
&_info,
107
EntityComponentManager
&_ecm)
final
;
108
109
// Documentation inherited
110
public
:
void
Update
(
const
UpdateInfo
&_info,
111
EntityComponentManager
&_ecm)
final
;
112
114
private
:
std::unique_ptr<PhysicsPrivate>
dataPtr;
115
};
116
}
117
}
118
}
119
}
120
#endif