Gazebo Physics
API Reference
8.0.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-physics
include
gz
physics
GetBoundingBox.hh
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2020 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
18
#ifndef GZ_PHYSICS_GETBOUNDINGBOX_HH_
19
#define GZ_PHYSICS_GETBOUNDINGBOX_HH_
20
21
#include <
gz/physics/FeatureList.hh
>
22
#include <
gz/physics/FrameSemantics.hh
>
23
#include <
gz/physics/GetEntities.hh
>
24
#include <
gz/physics/Shape.hh
>
25
26
namespace
gz
27
{
28
namespace
physics
29
{
31
using
GetLinkBoundingBoxRequiredFeatures
=
FeatureList
<
32
GetShapeBoundingBox
,
33
GetShapeFromLink
,
34
LinkFrameSemantics
>;
35
40
class
GZ_PHYSICS_VISIBLE
GetLinkBoundingBox
41
:
public
virtual
42
FeatureWithRequirements
<GetLinkBoundingBoxRequiredFeatures>
43
{
44
public
:
template
<
typename
PolicyT,
typename
FeaturesT>
45
class
Link
46
:
public
virtual
GetShapeFromLink::Link
<PolicyT, FeaturesT>
47
{
48
public
:
using
AlignedBoxType
=
49
typename
FromPolicy<PolicyT>::template
Use<AlignedBox>;
50
60
public
:
AlignedBoxType
GetAxisAlignedBoundingBox
(
61
const
FrameID
&_referenceFrame = FrameID::World())
const
;
62
};
63
};
64
66
using
GetModelBoundingBoxRequiredFeatures
=
FeatureList
<
67
GetLinkBoundingBox
,
68
GetLinkFromModel
,
69
ModelFrameSemantics
>;
70
74
class
GZ_PHYSICS_VISIBLE
GetModelBoundingBox
75
:
public
virtual
76
FeatureWithRequirements
<GetModelBoundingBoxRequiredFeatures>
77
{
78
public
:
template
<
typename
PolicyT,
typename
FeaturesT>
79
class
Model
80
:
public
virtual
GetLinkFromModel::Model
<PolicyT, FeaturesT>
81
{
82
public
:
using
AlignedBoxType
=
83
typename
FromPolicy<PolicyT>::template
Use<AlignedBox>;
84
94
public
:
AlignedBoxType
GetAxisAlignedBoundingBox
(
95
const
FrameID
&_referenceFrame = FrameID::World())
const
;
96
};
97
};
98
99
// see Shape.hh for GetShapeBoundingBox
100
}
101
}
102
103
#include <gz/physics/detail/GetBoundingBox.hh>
104
105
#endif