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
include
gz
sim
Model.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_MODEL_HH_
18
#define GZ_SIM_MODEL_HH_
19
20
#include <memory>
21
#include <string>
22
#include <vector>
23
24
#include <gz/math/Pose3.hh>
25
26
#include <gz/sim/config.hh>
27
#include <
gz/sim/EntityComponentManager.hh
>
28
#include <gz/sim/Export.hh>
29
#include <
gz/sim/Types.hh
>
30
31
namespace
gz
32
{
33
namespace
sim
34
{
35
// Inline bracket to help doxygen filtering.
36
inline
namespace
GZ_SIM_VERSION_NAMESPACE {
37
// Forward declarations.
38
class
GZ_SIM_HIDDEN
ModelPrivate
;
39
//
60
class
GZ_SIM_VISIBLE
Model
{
63
public
:
explicit
Model
(
sim::Entity
_entity =
kNullEntity
);
64
67
public
:
Model
(
const
Model
&_model);
68
71
public
:
Model
(
Model
&&_model) noexcept;
72
76
public
:
Model
&
operator=
(
Model
&&_model) noexcept;
77
81
public
:
Model
&
operator=
(
const
Model
&_model);
82
84
public
:
virtual
~Model
();
85
88
public
:
sim::Entity
Entity
()
const
;
89
94
public
:
bool
Valid
(
const
EntityComponentManager
&_ecm)
const
;
95
99
public
:
std::string
Name
(
const
EntityComponentManager
&_ecm)
const
;
100
104
public
:
bool
Static
(
const
EntityComponentManager
&_ecm)
const
;
105
109
public
:
bool
SelfCollide
(
const
EntityComponentManager
&_ecm)
const
;
110
114
public
:
bool
WindMode
(
const
EntityComponentManager
&_ecm)
const
;
115
121
public
:
std::string
SourceFilePath
(
const
EntityComponentManager
&_ecm)
122
const
;
123
129
public
:
sim::Entity
JointByName
(
const
EntityComponentManager
&_ecm,
130
const
std::string
&_name)
const
;
131
137
public
:
sim::Entity
LinkByName
(
const
EntityComponentManager
&_ecm,
138
const
std::string
&_name)
const
;
139
145
public
:
sim::Entity
ModelByName
(
const
EntityComponentManager
&_ecm,
146
const
std::string
&_name)
const
;
147
151
public
:
std::vector<sim::Entity>
Joints
(
152
const
EntityComponentManager
&_ecm)
const
;
153
157
public
:
std::vector<sim::Entity>
Links
(
158
const
EntityComponentManager
&_ecm)
const
;
159
163
public
:
std::vector<sim::Entity>
Models
(
164
const
EntityComponentManager
&_ecm)
const
;
165
170
public
: uint64_t
JointCount
(
const
EntityComponentManager
&_ecm)
const
;
171
176
public
: uint64_t
LinkCount
(
const
EntityComponentManager
&_ecm)
const
;
177
182
public
: uint64_t
ModelCount
(
const
EntityComponentManager
&_ecm)
const
;
183
187
public
:
void
SetWorldPoseCmd
(
EntityComponentManager
&_ecm,
188
const
math::Pose3d
&_pose);
189
193
public
:
sim::Entity
CanonicalLink
(
194
const
EntityComponentManager
&_ecm)
const
;
195
197
private
:
std::unique_ptr<ModelPrivate>
dataPtr;
198
};
199
}
200
}
201
}
202
#endif