Signals | Public Member Functions | List of all members
gazebo::gui::CollisionConfig Class Reference

A tab for configuring collision properties of a link. More...

#include <CollisionConfig.hh>

Inheritance diagram for gazebo::gui::CollisionConfig:
Inheritance graph
[legend]

Signals

void CollisionAdded (const std::string &_name)
 Qt signal emitted when a collision is added. More...
 
void CollisionRemoved (const std::string &_name)
 Qt signal emitted when a collision is removed. More...
 

Public Member Functions

 CollisionConfig ()
 Constructor. More...
 
 ~CollisionConfig ()
 Destructor. More...
 
void AddCollision (const std::string &_name, const msgs::Collision *_collisionMsg=NULL)
 Add a collision widget to the tab. More...
 
unsigned int GetCollisionCount () const
 Get the number of collisions. More...
 
msgs::Collision * GetData (const std::string &_name) const
 Get the msg containing all collision data. More...
 
void Reset ()
 Reset the collision tab. More...
 
void SetGeometry (const std::string &_name, const math::Vector3 &_size, const std::string &_uri="")
 Set the geometry data of a collision. More...
 
void UpdateCollision (const std::string &_name, ConstCollisionPtr _collisionMsg)
 Update a collision widget from a collision msg. More...
 

Detailed Description

A tab for configuring collision properties of a link.

Constructor & Destructor Documentation

gazebo::gui::CollisionConfig::CollisionConfig ( )

Constructor.

gazebo::gui::CollisionConfig::~CollisionConfig ( )

Destructor.

Member Function Documentation

void gazebo::gui::CollisionConfig::AddCollision ( const std::string &  _name,
const msgs::Collision *  _collisionMsg = NULL 
)

Add a collision widget to the tab.

Parameters
[in]_nameName of collision added.
[in]_collisionMsgMsg containing information of the collision to be added.
void gazebo::gui::CollisionConfig::CollisionAdded ( const std::string &  _name)
signal

Qt signal emitted when a collision is added.

Parameters
[in]_nameName of collision added.
void gazebo::gui::CollisionConfig::CollisionRemoved ( const std::string &  _name)
signal

Qt signal emitted when a collision is removed.

Parameters
[in]_nameName of collision removed.
unsigned int gazebo::gui::CollisionConfig::GetCollisionCount ( ) const

Get the number of collisions.

Returns
Number of collisions.
msgs::Collision* gazebo::gui::CollisionConfig::GetData ( const std::string &  _name) const

Get the msg containing all collision data.

Parameters
[in]_nameName of collision.
Returns
Collision msg.
void gazebo::gui::CollisionConfig::Reset ( )

Reset the collision tab.

void gazebo::gui::CollisionConfig::SetGeometry ( const std::string &  _name,
const math::Vector3 _size,
const std::string &  _uri = "" 
)

Set the geometry data of a collision.

Parameters
[in]_nameName of collision.
[in]_sizeSize to set the geometry to.
[in]_uriURI of the geometry.
void gazebo::gui::CollisionConfig::UpdateCollision ( const std::string &  _name,
ConstCollisionPtr  _collisionMsg 
)

Update a collision widget from a collision msg.

Parameters
[in]_nameName of collision to be updated.
[in]_collisionMsgMsg used to update the collision widget values.

The documentation for this class was generated from the following file: