Go to the documentation of this file.
18 #ifndef _GAZEBO_APPLYWRENCHVISUAL_HH_
19 #define _GAZEBO_APPLYWRENCHVISUAL_HH_
60 public:
virtual void Fini();
65 public:
void SetCoM(
const ignition::math::Vector3d &_comVector);
70 public:
void SetForcePos(
const ignition::math::Vector3d &_forcePosVector);
76 public:
void SetForce(
const ignition::math::Vector3d &_forceVector,
77 const bool _rotatedByMouse);
83 public:
void SetTorque(
const ignition::math::Vector3d &_torqueVector,
84 const bool _rotatedByMouse);
void Load()
Load the visual with default parameters.
void SetForcePos(const ignition::math::Vector3d &_forcePosVector)
Set the force position vector and update the position of the force visual.
virtual ~ApplyWrenchVisual()
Destructor.
void SetMode(Mode _mode)
Set the mode to force, torque or none, update colors and visibility accordingly.
void UpdateForceVisual()
Update the force visual according to the force and force position vectors.
Forward declarations for the common classes.
Definition: Animation.hh:27
void SetCoM(const ignition::math::Vector3d &_comVector)
Set the CoM vector and update the position of the torque visual.
rendering::VisualPtr GetForceVisual() const
Returns the force visual.
rendering::SelectionObjPtr GetRotTool() const
Returns the rotation tool.
std::shared_ptr< SelectionObj > SelectionObjPtr
Definition: RenderTypes.hh:190
rendering
Definition: RenderEngine.hh:31
rendering::VisualPtr GetTorqueVisual() const
Returns the torque visual.
A renderable object.
Definition: Visual.hh:61
ApplyWrenchVisual(const std::string &_name, VisualPtr _parentVis)
Constructor.
void SetForce(const ignition::math::Vector3d &_forceVector, const bool _rotatedByMouse)
Update force vector, force text and mode.
virtual void Fini()
Helper for the destructor.
Mode
Definition: ApplyWrenchVisual.hh:39
void UpdateTorqueVisual()
Update the torque visual according to the torque and CoM vectors.
std::shared_ptr< Visual > VisualPtr
Definition: RenderTypes.hh:114
void SetTorque(const ignition::math::Vector3d &_torqueVector, const bool _rotatedByMouse)
Update torque vector, torque text and mode.
Visualization for the apply wrench GUI.
Definition: ApplyWrenchVisual.hh:35
#define GAZEBO_VISIBLE
Definition: system.hh:59
void Resize()
Resize all children according to target link's size.