##

SphereShape.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_SPHERESHAPE_HH_
#define GAZEBO_PHYSICS_SPHERESHAPE_HH_
#include "gazebo/physics/Shape.hh"
#include "gazebo/physics/PhysicsTypes.hh"
#include "gazebo/util/system.hh"
namespace gazebo
{
namespace physics
{
class GZ_PHYSICS_VISIBLE SphereShape : public Shape
{
public: explicit SphereShape(CollisionPtr _parent);
public: virtual ~SphereShape();
public: virtual void Init();
public: virtual void SetRadius(double _radius);
public: double GetRadius() const;
// Documentation inherited
public: virtual void SetScale(const ignition::math::Vector3d &_scale);
public: virtual void FillMsg(msgs::Geometry &_msg);
public: virtual void ProcessMsg(const msgs::Geometry &_msg);
public: virtual double ComputeVolume() const;
};
}
}
#endif
gazebo::physics::SphereShape::Init
virtual void Init()
Initialize the sphere.
gazebo
Forward declarations for the common classes.
Definition: Animation.hh:26
gazebo::physics::SphereShape::SetRadius
virtual void SetRadius(double _radius)
Set the size.
gazebo::physics::SphereShape::~SphereShape
virtual ~SphereShape()
Destructor.
gazebo::physics::SphereShape
Sphere collision shape.
Definition: SphereShape.hh:33
system.hh
PhysicsTypes.hh
default namespace for gazebo
gazebo::physics::SphereShape::ComputeVolume
virtual double ComputeVolume() const
Documentation inherited.
Shape.hh
gazebo::physics::SphereShape::SphereShape
SphereShape(CollisionPtr _parent)
Constructor.
gazebo::physics::SphereShape::GetRadius
double GetRadius() const
Get the sphere's radius.
gazebo::msgs::Init
GAZEBO_VISIBLE void Init(google::protobuf::Message &_message, const std::string &_id="")
Initialize a message.
gazebo::physics::SphereShape::SetScale
virtual void SetScale(const ignition::math::Vector3d &_scale)
Set the scale of the shape.
gazebo::physics::CollisionPtr
boost::shared_ptr< Collision > CollisionPtr
Definition: PhysicsTypes.hh:113
gazebo::physics::SphereShape::ProcessMsg
virtual void ProcessMsg(const msgs::Geometry &_msg)
Process a geometry message.
gazebo::physics::SphereShape::FillMsg
virtual void FillMsg(msgs::Geometry &_msg)
Fill in the values for a geomertry message.
gazebo::physics::Shape
Base class for all shapes.
Definition: Shape.hh:39