gz/rendering/base/BaseJointVisual.hh
Go to the documentation of this file.
Quaternion< T > Inverse() const
void Axis(const Vector3< T > &_axis, T _a)
Vector3 Normalize()
Vector3 Cross(const Vector3< T > &_v) const
T Dot(const Vector3< T > &_v) const
Vector3 Perpendicular() const
static const Vector3 Zero
static const Vector3 UnitY
static const Vector3 UnitZ
static const Vector3 One
static const Vector3 UnitX
Represents a arrow composite visual.
Definition: gz/rendering/ArrowVisual.hh:33
Base implementation of a joint visual.
Definition: gz/rendering/base/BaseJointVisual.hh:43
virtual ignition::math::Vector3d ParentAxis() const override
Get parent axis vector.
Definition: gz/rendering/base/BaseJointVisual.hh:501
virtual void SetType(const JointVisualType _type) override
Set type for joint visual.
Definition: gz/rendering/base/BaseJointVisual.hh:486
virtual void PreRender() override
Prepare this object and any of its children for rendering. This should be called for each object in a...
Definition: gz/rendering/base/BaseJointVisual.hh:186
virtual void Init() override
Definition: gz/rendering/base/BaseJointVisual.hh:232
virtual void SetParentAxis(const ignition::math::Vector3d &_axis, const std::string &_parentName, bool _useParentFrame) override
Create a parent axis for hinge2 and universal joint types and attach it to the joint visual.
Definition: gz/rendering/base/BaseJointVisual.hh:303
void CreateParentAxis()
Helper function to create parent axis visual.
Definition: gz/rendering/base/BaseJointVisual.hh:325
void ScaleToChild()
Scale the joint visual according to the joint's child.
Definition: gz/rendering/base/BaseJointVisual.hh:463
virtual ~BaseJointVisual()
Destructor.
Definition: gz/rendering/base/BaseJointVisual.hh:180
virtual bool UpdateAxis(const ignition::math::Vector3d &_axis, bool _useParentFrame) override
Update an axis' arrow visual.
Definition: gz/rendering/base/BaseJointVisual.hh:354
void CreateAxis()
Helper function to create axis visual.
Definition: gz/rendering/base/BaseJointVisual.hh:283
void UpdateAxisImpl(ArrowVisualPtr _arrowVisual, const ignition::math::Vector3d &_axis, bool _useParentFrame)
Implementation for updating an axis' arrow visual.
Definition: gz/rendering/base/BaseJointVisual.hh:386
virtual void SetVisible(bool _visible) override
Specify if this visual is visible.
Definition: gz/rendering/base/BaseJointVisual.hh:529
virtual void Destroy() override
Destroy any resources associated with this object. Invoking any other functions after destroying an o...
Definition: gz/rendering/base/BaseJointVisual.hh:243
virtual JointVisualPtr ParentAxisVisual() const override
Get the JointVisual which is attached to the parent.
Definition: gz/rendering/base/BaseJointVisual.hh:515
virtual bool UpdateParentAxis(const ignition::math::Vector3d &_axis, bool _useParentFrame) override
Update the parent axis' arrow visual if it exists.
Definition: gz/rendering/base/BaseJointVisual.hh:368
virtual JointVisualType Type() const override
Get joint visual type.
Definition: gz/rendering/base/BaseJointVisual.hh:508
virtual ignition::math::Vector3d Axis() const override
Get axis vector.
Definition: gz/rendering/base/BaseJointVisual.hh:494
virtual void SetAxis(const ignition::math::Vector3d &_axis, bool _useParentFrame) override
Create an axis and attach it to the joint visual.
Definition: gz/rendering/base/BaseJointVisual.hh:272
BaseJointVisual()
Constructor.
Definition: gz/rendering/base/BaseJointVisual.hh:174
virtual ArrowVisualPtr ArrowVisual() const override
Get the arrow visual which represents the axis attached to the child.
Definition: gz/rendering/base/BaseJointVisual.hh:522
Represents a joint visual.
Definition: gz/rendering/JointVisual.hh:71
Manages a single scene-graph. This class updates scene-wide properties and holds the root scene node....
Definition: gz/rendering/Scene.hh:50
virtual NodePtr NodeByName(const std::string &_name) const =0
Get node with the given name. If no node exists with the given name, NULL will be returned.
virtual AxisVisualPtr CreateAxisVisual()=0
Create new axis visual. A unique ID and name will automatically be assigned to the visual.
virtual ArrowVisualPtr CreateArrowVisual()=0
Create new arrow visual. A unique ID and name will automatically be assigned to the visual.
virtual JointVisualPtr CreateJointVisual()=0
Create new joint visual. A unique ID and name will automatically be assigned to the Joint visual.
virtual void SetVisible(bool _visible)=0
Specify if this visual is visible.
#define ignlog
#define IGN_PI
T max(T... args)
Vector3< double > Vector3d
bool equal(const T &_a, const T &_b, const T &_epsilon=T(1e-6))
JointVisualType
Enum for JointVisual types.
Definition: gz/rendering/JointVisual.hh:37
@ JVT_UNIVERSAL
Universal joint type.
Definition: gz/rendering/JointVisual.hh:51
@ JVT_REVOLUTE
Revolute joint type.
Definition: gz/rendering/JointVisual.hh:42
@ JVT_GEARBOX
Gearbox joint type.
Definition: gz/rendering/JointVisual.hh:60
@ JVT_REVOLUTE2
Revolute2 joint type.
Definition: gz/rendering/JointVisual.hh:45