Go to the documentation of this file.
17 #ifndef GAZEBO_GUI_MODELMAKER_HH_
18 #define GAZEBO_GUI_MODELMAKER_HH_
32 class ModelMakerPrivate;
55 public:
virtual void Stop();
60 public:
bool InitFromModel(
const std::string &_modelName);
65 public:
bool InitFromFile(
const std::string &_filename);
71 public:
bool InitSimpleShape(SimpleShapes _shape);
74 public:
virtual ignition::math::Vector3d EntityPosition()
const;
77 protected:
virtual void SetEntityPosition(
78 const ignition::math::Vector3d &_pos);
85 private:
void CreateModelFromSDF(sdf::ElementPtr _modelElem);
88 private:
virtual void CreateTheEntity();
92 private: std::unique_ptr<ModelMakerPrivate> dataPtr;
Sphere.
Definition: ModelMaker.hh:43
To make an entity, base class.
Definition: EntityMaker.hh:39
bool InitFromFile(const std::string &_filename)
Initialize the model maker from a file.
Forward declarations for the common classes.
Definition: Animation.hh:26
Used to insert new models into the scene.
Definition: ModelMaker.hh:35
Cylinder.
Definition: ModelMaker.hh:45
SimpleShapes
Unique identifiers for each simple shape supported.
Definition: ModelMaker.hh:39
virtual ignition::math::Vector3d EntityPosition() const
Returns the entity world position.
bool InitFromModel(const std::string &_modelName)
Initialize the model maker with an existing model.
bool InitSimpleShape(SimpleShapes _shape)
Initialize the model maker to make one of the supported simple shapes.
GAZEBO_VISIBLE void Init(google::protobuf::Message &_message, const std::string &_id="")
Initialize a message.
gui
Definition: KeyEventHandler.hh:29
Box.
Definition: ModelMaker.hh:41
virtual void Stop()
Stop the maker.
virtual void SetEntityPosition(const ignition::math::Vector3d &_pos)
Sets the entity world position.