Gazebo Rendering

API Reference

9.0.0~pre2
JointVisual.hh
Go to the documentation of this file.
1/*
2 * Copyright (C) 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#ifndef GZ_RENDERING_JOINTVISUAL_HH_
18#define GZ_RENDERING_JOINTVISUAL_HH_
19
20#include <string>
21
22#include <gz/math/Vector3.hh>
23
24#include "gz/rendering/config.hh"
28
29namespace gz
30{
31 namespace rendering
32 {
33 inline namespace GZ_RENDERING_VERSION_NAMESPACE {
34 //
36 enum GZ_RENDERING_VISIBLE JointVisualType
37 {
40
43
46
49
52
55
58
61
63 JVT_FIXED = 8
64 };
65
69 class GZ_RENDERING_VISIBLE JointVisual :
70 public virtual Visual
71 {
73 public: virtual ~JointVisual();
74
79 public: virtual void SetAxis(const gz::math::Vector3d &_axis,
80 bool _useParentFrame = false) = 0;
81
84 public: virtual gz::math::Vector3d Axis() const = 0;
85
92 public: virtual void SetParentAxis(
93 const gz::math::Vector3d &_axis,
94 const std::string &_parentName,
95 bool _useParentFrame = false) = 0;
96
99 public: virtual gz::math::Vector3d ParentAxis() const = 0;
100
106 public: virtual bool UpdateAxis(const gz::math::Vector3d &_axis,
107 bool _useParentFrame = false) = 0;
108
114 public: virtual bool UpdateParentAxis(
115 const gz::math::Vector3d &_axis,
116 bool _useParentFrame = false) = 0;
117
120 public: virtual void SetType(const JointVisualType _type) = 0;
121
124 public: virtual JointVisualType Type() const = 0;
125
128 public: virtual JointVisualPtr ParentAxisVisual() const = 0;
129
133 public: virtual ArrowVisualPtr ArrowVisual() const = 0;
134 };
135 }
136 }
137}
138#endif