Public Types | Signals | Public Member Functions | Static Public Member Functions | List of all members
gazebo::gui::JointMaker Class Reference

Joint visualization. More...

#include <JointMaker.hh>

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

Public Types

enum  JointType {
  JOINT_NONE, JOINT_FIXED, JOINT_SLIDER, JOINT_HINGE,
  JOINT_HINGE2, JOINT_SCREW, JOINT_UNIVERSAL, JOINT_BALL
}
 

Signals

void JointAdded ()
 Qt signal when the joint creation process has ended. More...
 

Public Member Functions

 JointMaker ()
 Constructor. More...
 
virtual ~JointMaker ()
 Destructor. More...
 
void AddJoint (const std::string &_type)
 Add a joint. More...
 
void AddJoint (JointType _type)
 Add a joint. More...
 
void CreateHotSpot (JointData *_joint)
 Helper method to create hotspot visual for mouse interaction. More...
 
JointDataCreateJoint (rendering::VisualPtr _parent, rendering::VisualPtr _child)
 Create a joint with parent and child. More...
 
void DisableEventHandlers ()
 Disable the mouse and key event handlers for the joint maker. More...
 
void EnableEventHandlers ()
 Enable the mouse and key event handlers for the joint maker. More...
 
void GenerateSDF ()
 Generate SDF for all joints. More...
 
unsigned int GetJointCount ()
 Get the number of joints added. More...
 
sdf::ElementPtr GetSDF () const
 Generate SDF for all joints. More...
 
JointMaker::JointType GetState () const
 Get state. More...
 
void RemoveJoint (const std::string &_jointName)
 Remove joint by name. More...
 
void RemoveJointsByPart (const std::string &_partName)
 Remove all joints connected to part. More...
 
void Reset ()
 Reset the joint maker;. More...
 
void Stop ()
 Stop the process of adding joint to the model. More...
 
void Update ()
 Update callback on PreRender. More...
 

Static Public Member Functions

static int GetJointAxisCount (JointMaker::JointType _type)
 Get the axis count for joint type. More...
 
static std::string GetTypeAsString (JointMaker::JointType _type)
 Get the joint type in string. More...
 

Detailed Description

Joint visualization.

Member Enumeration Documentation

Enumerator
JOINT_NONE 

none

JOINT_FIXED 

Fixed joint.

JOINT_SLIDER 

Slider joint.

JOINT_HINGE 

Hinge joint.

JOINT_HINGE2 

Hinge2 joint.

JOINT_SCREW 

Screw joint.

JOINT_UNIVERSAL 

Universal joint.

JOINT_BALL 

Revolute joint.

Constructor & Destructor Documentation

gazebo::gui::JointMaker::JointMaker ( )

Constructor.

virtual gazebo::gui::JointMaker::~JointMaker ( )
virtual

Destructor.

Member Function Documentation

void gazebo::gui::JointMaker::AddJoint ( const std::string &  _type)

Add a joint.

Parameters
[in]_typeType of joint to be added in string.
void gazebo::gui::JointMaker::AddJoint ( JointType  _type)

Add a joint.

Parameters
[in]_typeType of joint to be added
void gazebo::gui::JointMaker::CreateHotSpot ( JointData _joint)

Helper method to create hotspot visual for mouse interaction.

Parameters
[in]_jointJoint data used for creating the hotspot
JointData* gazebo::gui::JointMaker::CreateJoint ( rendering::VisualPtr  _parent,
rendering::VisualPtr  _child 
)

Create a joint with parent and child.

Parameters
[in]_parentParent of the joint.
[in]_childChild of the joint.
Returns
joint data.
void gazebo::gui::JointMaker::DisableEventHandlers ( )

Disable the mouse and key event handlers for the joint maker.

void gazebo::gui::JointMaker::EnableEventHandlers ( )

Enable the mouse and key event handlers for the joint maker.

void gazebo::gui::JointMaker::GenerateSDF ( )

Generate SDF for all joints.

static int gazebo::gui::JointMaker::GetJointAxisCount ( JointMaker::JointType  _type)
static

Get the axis count for joint type.

Parameters
[in]_typeType of joint.
unsigned int gazebo::gui::JointMaker::GetJointCount ( )

Get the number of joints added.

return Number of joints.

sdf::ElementPtr gazebo::gui::JointMaker::GetSDF ( ) const

Generate SDF for all joints.

JointMaker::JointType gazebo::gui::JointMaker::GetState ( ) const

Get state.

Returns
State of JointType if joint creation is in process, otherwise JOINT_NONE
static std::string gazebo::gui::JointMaker::GetTypeAsString ( JointMaker::JointType  _type)
static

Get the joint type in string.

Parameters
[in]_typeType of joint.
Returns
Joint type in string.
void gazebo::gui::JointMaker::JointAdded ( )
signal

Qt signal when the joint creation process has ended.

void gazebo::gui::JointMaker::RemoveJoint ( const std::string &  _jointName)

Remove joint by name.

Parameters
[in]_jointNameName of joint to be removed.
void gazebo::gui::JointMaker::RemoveJointsByPart ( const std::string &  _partName)

Remove all joints connected to part.

Parameters
[in]_partNameName of joint to be removed.
void gazebo::gui::JointMaker::Reset ( )

Reset the joint maker;.

void gazebo::gui::JointMaker::Stop ( )

Stop the process of adding joint to the model.

void gazebo::gui::JointMaker::Update ( )

Update callback on PreRender.


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