Go to the documentation of this file.
18 #ifndef _GAZEBO_LINK_CONFIG_HH_
19 #define _GAZEBO_LINK_CONFIG_HH_
23 #include <ignition/math/Pose3.hh>
51 public:
void Update(ConstLinkPtr _linkMsg);
55 public: msgs::Link *GetData()
const;
59 public:
void SetPose(
const ignition::math::Pose3d &_pose);
63 public:
void SetMass(
const double _mass);
67 public:
double Mass()
const;
71 public:
void SetDensity(
const double _density);
75 public:
double Density()
const;
84 public:
void SetInertiaMatrix(
const double _ixx,
const double _iyy,
85 const double _izz,
const double _ixy,
const double _ixz,
90 public:
void SetInertialPose(
const ignition::math::Pose3d &_pose);
100 public slots:
void RestoreOriginalData();
103 Q_SIGNALS:
void Applied();
107 Q_SIGNALS:
void DensityValueChanged(
const double _value);
111 Q_SIGNALS:
void MassValueChanged(
const double _value);
115 private slots:
void OnDensityValueChanged(
const double _value);
119 private slots:
void OnMassValueChanged(
const double _value);
125 private slots:
void OnPoseChanged(
const QString &_name,
126 const ignition::math::Pose3d &_value);
133 private: msgs::Link originalDataMsg;
virtual ~LinkConfig()
Destructor.
void SetInertiaMatrix(const double _ixx, const double _iyy, const double _izz, const double _ixy, const double _ixz, const double _iyz)
Set the inertia matrix of the link.
Forward declarations for the common classes.
Definition: Animation.hh:26
const ConfigWidget * LinkConfigWidget() const
Get the config widget for the link.
double Density() const
Retrieve current density value.
void Update(ConstLinkPtr _linkMsg)
Update the link config widget with a link msg.
void RestoreOriginalData()
Restore the widget's data to how it was when first opened.
void MassValueChanged(const double _value)
Signal emitted when mass changes.
void SetDensity(const double _density)
Set the density of the link.
void SetMass(const double _mass)
Set the mass of the link.
msgs::Link * GetData() const
Get the msg containing all link data.
void Init()
Initialize widget.
void SetPose(const ignition::math::Pose3d &_pose)
Set the pose of the link.
GAZEBO_VISIBLE void Init(google::protobuf::Message &_message, const std::string &_id="")
Initialize a message.
void Applied()
Qt signal emitted to indicate that changes should be applied.
void SetInertialPose(const ignition::math::Pose3d &_pose)
Set the inertial pose of the link.
A tab for configuring properties of a link.
Definition: LinkConfig.hh:39
double Mass() const
Retrieve current mass value.
void DensityValueChanged(const double _value)
Signal emitted when density changes.