##

CylinderShape.hh
Go to the documentation of this file.
/*
* Copyright (C) 2012 Open Source Robotics Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
#ifndef GAZEBO_PHYSICS_CYLINDERSHAPE_HH_
#define GAZEBO_PHYSICS_CYLINDERSHAPE_HH_
#include "gazebo/physics/Shape.hh"
#include "gazebo/util/system.hh"
namespace gazebo
{
namespace physics
{
class GZ_PHYSICS_VISIBLE CylinderShape : public Shape
{
public: explicit CylinderShape(CollisionPtr _parent);
public: virtual ~CylinderShape();
public: void Init();
public: void SetRadius(double _radius);
public: void SetLength(double _length);
public: double GetRadius() const;
public: double GetLength() const;
public: virtual void SetSize(double _radius, double _length);
public: virtual void SetScale(const ignition::math::Vector3d &_scale);
public: void FillMsg(msgs::Geometry &_msg);
public: virtual void ProcessMsg(const msgs::Geometry &_msg);
public: virtual double ComputeVolume() const;
};
}
}
#endif
gazebo::physics::CylinderShape::SetSize
virtual void SetSize(double _radius, double _length)
Set the size of the cylinder.
gazebo::physics::CylinderShape::SetLength
void SetLength(double _length)
Set length.
gazebo
Forward declarations for the common classes.
Definition: Animation.hh:26
gazebo::physics::CylinderShape::ProcessMsg
virtual void ProcessMsg(const msgs::Geometry &_msg)
Update values based on a message.
gazebo::physics::CylinderShape
Cylinder collision.
Definition: CylinderShape.hh:32
system.hh
gazebo::physics::CylinderShape::CylinderShape
CylinderShape(CollisionPtr _parent)
Constructor.
gazebo::physics::CylinderShape::GetLength
double GetLength() const
Get length.
gazebo::physics::CylinderShape::SetScale
virtual void SetScale(const ignition::math::Vector3d &_scale)
Set scale of cylinder.
gazebo::physics::CylinderShape::Init
void Init()
Initialize the cylinder.
Shape.hh
gazebo::msgs::Init
GAZEBO_VISIBLE void Init(google::protobuf::Message &_message, const std::string &_id="")
Initialize a message.
gazebo::physics::CylinderShape::ComputeVolume
virtual double ComputeVolume() const
Documentation inherited.
gazebo::physics::CylinderShape::GetRadius
double GetRadius() const
Get radius.
gazebo::physics::CylinderShape::~CylinderShape
virtual ~CylinderShape()
Destructor.
gazebo::physics::CollisionPtr
boost::shared_ptr< Collision > CollisionPtr
Definition: PhysicsTypes.hh:113
gazebo::physics::CylinderShape::FillMsg
void FillMsg(msgs::Geometry &_msg)
Fill in the values for a geomertry message.
gazebo::physics::CylinderShape::SetRadius
void SetRadius(double _radius)
Set radius.
gazebo::physics::Shape
Base class for all shapes.
Definition: Shape.hh:39