Joint visualization.
More...
#include <JointMaker.hh>
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.
|
gazebo::gui::JointMaker::JointMaker |
( |
| ) |
|
virtual gazebo::gui::JointMaker::~JointMaker |
( |
| ) |
|
|
virtual |
void gazebo::gui::JointMaker::AddJoint |
( |
const std::string & |
_type | ) |
|
Add a joint.
- Parameters
-
[in] | _type | Type of joint to be added in string. |
void gazebo::gui::JointMaker::AddJoint |
( |
JointType |
_type | ) |
|
Add a joint.
- Parameters
-
[in] | _type | Type of joint to be added |
void gazebo::gui::JointMaker::CreateHotSpot |
( |
JointData * |
_joint | ) |
|
Helper method to create hotspot visual for mouse interaction.
- Parameters
-
[in] | _joint | Joint data used for creating the hotspot |
Create a joint with parent and child.
- Parameters
-
[in] | _parent | Parent of the joint. |
[in] | _child | Child 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.
Get the axis count for joint type.
- Parameters
-
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.
Get state.
- Returns
- State of JointType if joint creation is in process, otherwise JOINT_NONE
Get the joint type in string.
- Parameters
-
- 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] | _jointName | Name of joint to be removed. |
void gazebo::gui::JointMaker::RemoveJointsByPart |
( |
const std::string & |
_partName | ) |
|
Remove all joints connected to part.
- Parameters
-
[in] | _partName | Name of joint to be removed. |
void gazebo::gui::JointMaker::Reset |
( |
| ) |
|
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: