Loading...
Searching...
No Matches
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
23#include <gz/math/Pose3.hh>
24#include <gz/utils/ImplPtr.hh>
25
26#include "sdf/Types.hh"
27
28#include "sdf/config.hh"
29#include "sdf/system_util.hh"
30
31namespace sdf
32{
33inline namespace SDF_VERSION_NAMESPACE
34{
35// Forward declarations.
36class InterfaceModel;
37struct PoseRelativeToGraph;
38template <typename T>
39class ScopedGraph;
40
43{
48 gz::math::Pose3d &_pose) const;
49
53 public: sdf::Errors ResolveNestedFramePose(gz::math::Pose3d &_pose,
54 const std::string &_frameName,
55 const std::string &_relativeTo = "world") const;
56
61 private: InterfaceModelPoseGraph(const std::string &_name,
63
64 friend class InterfaceModel;
66 GZ_UTILS_IMPL_PTR(dataPtr)
67};
68}
69}
70
71#endif
Class used in reposture callbacks of custom parsers to resolve poses.
Definition InterfaceModelPoseGraph.hh:43
sdf::Errors ResolveNestedFramePose(gz::math::Pose3d &_pose, const std::string &_frameName, const std::string &_relativeTo="world") const
Resolve the pose a frame within the model's scope.
sdf::Errors ResolveNestedModelFramePoseInWorldFrame(gz::math::Pose3d &_pose) const
Resolve pose relative to world.
Interface element representing a Model.
Definition InterfaceModel.hh:59
Definition Collision.hh:44
std::vector< Error > Errors
A vector of Error.
Definition Types.hh:80
namespace for Simulation Description Format parser
Definition Actor.hh:35
#define SDFORMAT_VISIBLE
Use to represent "symbol visible" if supported.
Definition system_util.hh:25