Ignition Rendering

API Reference

6.0.1
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 IGNITION_RENDERING_JOINTVISUAL_HH_
18 #define IGNITION_RENDERING_JOINTVISUAL_HH_
19 
20 #include <string>
21 
22 #include <ignition/math/Vector3.hh>
23 
24 #include "ignition/rendering/config.hh"
28 
29 namespace ignition
30 {
31  namespace rendering
32  {
33  inline namespace IGNITION_RENDERING_VERSION_NAMESPACE {
34  //
36  enum IGNITION_RENDERING_VISIBLE JointVisualType
37  {
39  JVT_NONE = 0,
40 
43 
46 
49 
52 
54  JVT_BALL = 5,
55 
57  JVT_SCREW = 6,
58 
61 
64  };
65 
69  class IGNITION_RENDERING_VISIBLE JointVisual :
70  public virtual Visual
71  {
73  public: virtual ~JointVisual() {}
74 
79  public: virtual void SetAxis(const ignition::math::Vector3d &_axis,
80  bool _useParentFrame = false) = 0;
81 
84  public: virtual ignition::math::Vector3d Axis() const = 0;
85 
92  public: virtual void SetParentAxis(
93  const ignition::math::Vector3d &_axis,
94  const std::string &_parentName,
95  bool _useParentFrame = false) = 0;
96 
99  public: virtual ignition::math::Vector3d ParentAxis() const = 0;
100 
106  public: virtual bool UpdateAxis(const ignition::math::Vector3d &_axis,
107  bool _useParentFrame = false) = 0;
108 
114  public: virtual bool UpdateParentAxis(
115  const ignition::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
Gearbox joint type.
Definition: JointVisual.hh:60
Represents a arrow composite visual.
Definition: ArrowVisual.hh:31
Revolute2 joint type.
Definition: JointVisual.hh:45
Represents a joint visual.
Definition: JointVisual.hh:69
JointVisualType
Enum for JointVisual types.
Definition: JointVisual.hh:36
No type.
Definition: JointVisual.hh:39
STL class.
virtual ~JointVisual()
Destructor.
Definition: JointVisual.hh:73
Fixed joint type.
Definition: JointVisual.hh:63
Universal joint type.
Definition: JointVisual.hh:51
Represents a visual node in a scene graph. A Visual is the only node that can have Geometry and other...
Definition: Visual.hh:33
Prismatic joint type.
Definition: JointVisual.hh:48
Ball joint type.
Definition: JointVisual.hh:54
Screw joint type.
Definition: JointVisual.hh:57
Revolute joint type.
Definition: JointVisual.hh:42