##

BoxShape.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_BOXSHAPE_HH_
#define GAZEBO_PHYSICS_BOXSHAPE_HH_
#include <ignition/math/Vector3.hh>
#include "gazebo/physics/Shape.hh"
#include "gazebo/util/system.hh"
namespace gazebo
{
namespace physics
{
class GZ_PHYSICS_VISIBLE BoxShape : public Shape
{
public: explicit BoxShape(CollisionPtr _parent);
public: virtual ~BoxShape();
public: virtual void Init();
public: virtual void SetSize(const ignition::math::Vector3d &_size);
// Documentation inherited
public: virtual void SetScale(const ignition::math::Vector3d &_scale);
public: ignition::math::Vector3d Size() const;
public: void FillMsg(msgs::Geometry &_msg);
public: virtual void ProcessMsg(const msgs::Geometry &_msg);
public: virtual double ComputeVolume() const;
};
}
}
#endif
gazebo::physics::BoxShape::ProcessMsg
virtual void ProcessMsg(const msgs::Geometry &_msg)
Process a geometry message.
gazebo
Forward declarations for the common classes.
Definition: Animation.hh:26
system.hh
gazebo::physics::BoxShape::SetScale
virtual void SetScale(const ignition::math::Vector3d &_scale)
Set the scale of the shape.
gazebo::physics::BoxShape::BoxShape
BoxShape(CollisionPtr _parent)
Constructor.
gazebo::physics::BoxShape
Box geometry primitive.
Definition: BoxShape.hh:34
Shape.hh
gazebo::physics::BoxShape::~BoxShape
virtual ~BoxShape()
Destructor.
gazebo::physics::BoxShape::Init
virtual void Init()
Initialize the box.
gazebo::msgs::Init
GAZEBO_VISIBLE void Init(google::protobuf::Message &_message, const std::string &_id="")
Initialize a message.
gazebo::physics::BoxShape::FillMsg
void FillMsg(msgs::Geometry &_msg)
Fill in the values for a geomertry message.
gazebo::physics::BoxShape::ComputeVolume
virtual double ComputeVolume() const
Documentation inherited.
gazebo::physics::BoxShape::Size
ignition::math::Vector3d Size() const
Get the size of the box.
gazebo::physics::CollisionPtr
boost::shared_ptr< Collision > CollisionPtr
Definition: PhysicsTypes.hh:113
gazebo::physics::BoxShape::SetSize
virtual void SetSize(const ignition::math::Vector3d &_size)
Set the size of the box.
gazebo::physics::Shape
Base class for all shapes.
Definition: Shape.hh:39