Create and manage 3D visuals of a model with parts and joints.
More...
#include <ModelCreator.hh>
Create and manage 3D visuals of a model with parts and joints.
Enumerator |
---|
PART_NONE |
none
|
PART_BOX |
Box.
|
PART_SPHERE |
Sphere.
|
PART_CYLINDER |
Cylinder.
|
PART_CUSTOM |
Custom.
|
gazebo::gui::ModelCreator::ModelCreator |
( |
| ) |
|
virtual gazebo::gui::ModelCreator::~ModelCreator |
( |
| ) |
|
|
virtual |
Add a box to the model.
- Parameters
-
[in] | _size | Size of the box. |
[in] | _pose | Pose of the box. |
- Returns
- Name of the box that has been added.
Add a custom part to the model.
- Parameters
-
[in] | _name | Name of the custom part. |
[in] | _scale | Scale of the custom part. |
[in] | _pose | Pose of the custom part. |
- Returns
- Name of the custom that has been added.
std::string gazebo::gui::ModelCreator::AddCylinder |
( |
double |
_radius = 0.5 , |
|
|
double |
_length = 1.0 , |
|
|
const math::Pose & |
_pose = math::Pose::Zero |
|
) |
| |
Add a cylinder to the model.
- Parameters
-
[in] | _radius | Radius of the cylinder. |
[in] | _length | Length of the cylinder. |
[in] | _pose | Pose of the cylinder. |
- Returns
- Name of the cylinder that has been added.
void gazebo::gui::ModelCreator::AddJoint |
( |
const std::string & |
_type | ) |
|
Add a joint to the model.
- Parameters
-
[in] | _type | Type of joint to add. |
void gazebo::gui::ModelCreator::AddPart |
( |
PartType |
_type | ) |
|
Add a part to the model.
- Parameters
-
[in] | _type | Type of part to be added |
Add a sphere to the model.
- Parameters
-
[in] | _radius | Radius of the sphere. |
[in] | _pose | Pose of the sphere. |
- Returns
- Name of the sphere that has been added.
void gazebo::gui::ModelCreator::FinishModel |
( |
| ) |
|
Finish the model and create the entity on the gzserver.
void gazebo::gui::ModelCreator::GenerateSDF |
( |
| ) |
|
Generate the SDF from model part and joint visuals.
JointMaker* gazebo::gui::ModelCreator::GetJointMaker |
( |
| ) |
const |
Get joint maker.
- Returns
- Joint maker
std::string gazebo::gui::ModelCreator::GetModelName |
( |
| ) |
const |
Get the name of the model.
- Returns
- Name of model.
void gazebo::gui::ModelCreator::PartAdded |
( |
| ) |
|
|
signal |
Qt signal when the a part has been added.
void gazebo::gui::ModelCreator::RemovePart |
( |
const std::string & |
_partName | ) |
|
Remove a part from the model.
- Parameters
-
[in] | _partName | Name of the part to remove |
void gazebo::gui::ModelCreator::Reset |
( |
| ) |
|
Reset the model creator and the SDF.
void gazebo::gui::ModelCreator::SaveToSDF |
( |
const std::string & |
_savePath | ) |
|
Save model to SDF format.
- Parameters
-
[in] | _savePath | Path to save the SDF to. |
void gazebo::gui::ModelCreator::SetAutoDisable |
( |
bool |
_auto | ) |
|
Set the model to allow auto disable at rest.
- Parameters
-
[in] | _auto | True to allow the model to auto disable. |
void gazebo::gui::ModelCreator::SetModelName |
( |
const std::string & |
_modelName | ) |
|
Set the name of the model.
- Parameters
-
[in] | _modelName | Name of the model to set to. |
void gazebo::gui::ModelCreator::SetStatic |
( |
bool |
_static | ) |
|
Set the model to be static.
- Parameters
-
[in] | _static | True to make the model static. |
void gazebo::gui::ModelCreator::Stop |
( |
| ) |
|
Stop the process of adding a part or joint to the model.
The documentation for this class was generated from the following file: