Go to the documentation of this file.
17 #ifndef GAZEBO_PHYSICS_CYLINDERSHAPE_HH_
18 #define GAZEBO_PHYSICS_CYLINDERSHAPE_HH_
52 public:
void SetRadius(
double _radius);
56 public:
void SetLength(
double _length);
60 public:
double GetRadius()
const;
64 public:
double GetLength()
const;
69 public:
virtual void SetSize(
double _radius,
double _length);
73 public:
virtual void SetScale(
const ignition::math::Vector3d &_scale);
77 public:
void FillMsg(msgs::Geometry &_msg);
81 public:
virtual void ProcessMsg(
const msgs::Geometry &_msg);
84 public:
virtual double ComputeVolume()
const;
virtual void SetSize(double _radius, double _length)
Set the size of the cylinder.
void SetLength(double _length)
Set length.
Forward declarations for the common classes.
Definition: Animation.hh:26
virtual void ProcessMsg(const msgs::Geometry &_msg)
Update values based on a message.
Cylinder collision.
Definition: CylinderShape.hh:38
CylinderShape(CollisionPtr _parent)
Constructor.
double GetLength() const
Get length.
virtual void SetScale(const ignition::math::Vector3d &_scale)
Set scale of cylinder.
void Init()
Initialize the cylinder.
GAZEBO_VISIBLE void Init(google::protobuf::Message &_message, const std::string &_id="")
Initialize a message.
virtual double ComputeVolume() const
Documentation inherited.
double GetRadius() const
Get radius.
virtual ~CylinderShape()
Destructor.
boost::shared_ptr< Collision > CollisionPtr
Definition: PhysicsTypes.hh:113
void FillMsg(msgs::Geometry &_msg)
Fill in the values for a geomertry message.
void SetRadius(double _radius)
Set radius.
Base class for all shapes.
Definition: Shape.hh:45