InterfaceModelPoseGraph.hh
Go to the documentation of this file.
1 /*
2  * Copyright 2021 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 SDF_INTERFACE_MODEL_POSE_GRAPH
19 #define SDF_INTERFACE_MODEL_POSE_GRAPH
20 
21 #include <string>
22 #include <memory>
23 #include <vector>
24 
25 #include <gz/math/Pose3.hh>
26 #include <gz/utils/ImplPtr.hh>
27 
28 #include "sdf/Types.hh"
29 
30 #include "sdf/sdf_config.h"
31 #include "sdf/system_util.hh"
32 
33 namespace sdf
34 {
35 inline namespace SDF_VERSION_NAMESPACE
36 {
37 // Forward declarations.
38 class InterfaceModel;
39 struct PoseRelativeToGraph;
40 template <typename T>
41 class ScopedGraph;
42 
45 {
49  public: sdf::Errors ResolveNestedModelFramePoseInWorldFrame(
50  gz::math::Pose3d &_pose) const;
51 
55  public: sdf::Errors ResolveNestedFramePose(gz::math::Pose3d &_pose,
56  const std::string &_frameName,
57  const std::string &_relativeTo = "world") const;
58 
63  private: InterfaceModelPoseGraph(const std::string &_name,
65 
66  friend class InterfaceModel;
68  GZ_UTILS_IMPL_PTR(dataPtr)
69 };
70 }
71 }
72 
73 #endif
sdf::SDF_VERSION_NAMESPACE::InterfaceModel
Interface element representing a Model.
Definition: InterfaceModel.hh:57
sdf
namespace for Simulation Description Format parser
Definition: Actor.hh:34
Types.hh
sdf_config.h
SDFORMAT_VISIBLE
#define SDFORMAT_VISIBLE
Definition: system_util.hh:25
sdf::SDF_VERSION_NAMESPACE::Errors
std::vector< Error > Errors
A vector of Error.
Definition: Types.hh:80
sdf::SDF_VERSION_NAMESPACE::ScopedGraph
Definition: Collision.hh:39
system_util.hh
sdf::SDF_VERSION_NAMESPACE::InterfaceModelPoseGraph
Class used in reposture callbacks of custom parsers to resolve poses.
Definition: InterfaceModelPoseGraph.hh:44