Helper class to store link data. More...
#include <ModelData.hh>
Public Member Functions | |
LinkData () | |
Constructor. More... | |
~LinkData () | |
Destructor. More... | |
void | AddCollision (rendering::VisualPtr _collisionVis) |
Add a collision to the link. More... | |
void | AddVisual (rendering::VisualPtr _visual) |
Add a visual to the link. More... | |
LinkData * | Clone (const std::string &_newName) |
Clone the link data. More... | |
std::string | GetName () const |
Get the name of the link. More... | |
math::Pose | GetPose () const |
Get the pose of the link. More... | |
math::Vector3 | GetScale () const |
Get the scale of the link. More... | |
void | Load (sdf::ElementPtr _sdf) |
Load the link with data from SDF. More... | |
void | SetName (const std::string &_name) |
Set the name of the link. More... | |
void | SetPose (const math::Pose &_pose) |
Set the pose of the link. More... | |
void | SetScale (const math::Vector3 &_scale) |
Set the scale of the link. More... | |
void | UpdateConfig () |
Update the inspector widget if necessary. More... | |
Public Attributes | |
std::map< rendering::VisualPtr, msgs::Collision > | collisions |
Collisions of the link. More... | |
std::vector< msgs::Collision * > | collisionUpdateMsgs |
Msgs for updating collision visuals. More... | |
LinkInspector * | inspector |
Inspector for configuring link properties. More... | |
sdf::ElementPtr | linkSDF |
SDF representing the link data. More... | |
rendering::VisualPtr | linkVisual |
Visual representing this link. More... | |
math::Vector3 | scale |
Scale of link. More... | |
std::map< rendering::VisualPtr, msgs::Visual > | visuals |
Visuals of the link. More... | |
std::vector< msgs::Visual * > | visualUpdateMsgs |
Msgs for updating visuals. More... | |
Helper class to store link data.
gazebo::gui::LinkData::LinkData | ( | ) |
Constructor.
gazebo::gui::LinkData::~LinkData | ( | ) |
Destructor.
void gazebo::gui::LinkData::AddCollision | ( | rendering::VisualPtr | _collisionVis | ) |
Add a collision to the link.
[in] | _collisionVis | Visual representing the collision. |
void gazebo::gui::LinkData::AddVisual | ( | rendering::VisualPtr | _visual | ) |
Add a visual to the link.
[in] | _visual | Visual to be added. |
LinkData* gazebo::gui::LinkData::Clone | ( | const std::string & | _newName | ) |
Clone the link data.
[in] | _newName | Name to give to the cloned link. |
std::string gazebo::gui::LinkData::GetName | ( | ) | const |
Get the name of the link.
math::Pose gazebo::gui::LinkData::GetPose | ( | ) | const |
Get the pose of the link.
math::Vector3 gazebo::gui::LinkData::GetScale | ( | ) | const |
Get the scale of the link.
void gazebo::gui::LinkData::Load | ( | sdf::ElementPtr | _sdf | ) |
Load the link with data from SDF.
[in] | _sdf | Link SDF element. |
void gazebo::gui::LinkData::SetName | ( | const std::string & | _name | ) |
Set the name of the link.
[in] | _name | Name of link. |
void gazebo::gui::LinkData::SetPose | ( | const math::Pose & | _pose | ) |
Set the pose of the link.
[in] | _pose | Pose of link. |
void gazebo::gui::LinkData::SetScale | ( | const math::Vector3 & | _scale | ) |
Set the scale of the link.
[in] | _scale | Scale of link. |
void gazebo::gui::LinkData::UpdateConfig | ( | ) |
Update the inspector widget if necessary.
std::map<rendering::VisualPtr, msgs::Collision> gazebo::gui::LinkData::collisions |
Collisions of the link.
std::vector<msgs::Collision *> gazebo::gui::LinkData::collisionUpdateMsgs |
Msgs for updating collision visuals.
LinkInspector* gazebo::gui::LinkData::inspector |
Inspector for configuring link properties.
sdf::ElementPtr gazebo::gui::LinkData::linkSDF |
SDF representing the link data.
rendering::VisualPtr gazebo::gui::LinkData::linkVisual |
Visual representing this link.
math::Vector3 gazebo::gui::LinkData::scale |
Scale of link.
std::map<rendering::VisualPtr, msgs::Visual> gazebo::gui::LinkData::visuals |
Visuals of the link.
std::vector<msgs::Visual *> gazebo::gui::LinkData::visualUpdateMsgs |
Msgs for updating visuals.