##

PlaneShape.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_PLANESHAPE_HH_
#define GAZEBO_PHYSICS_PLANESHAPE_HH_
#include <ignition/math/Vector2.hh>
#include "gazebo/physics/Shape.hh"
#include "gazebo/util/system.hh"
namespace gazebo
{
namespace physics
{
class GZ_PHYSICS_VISIBLE PlaneShape : public Shape
{
public: explicit PlaneShape(CollisionPtr _parent);
public: virtual ~PlaneShape();
public: virtual void Init();
public: virtual void CreatePlane();
public: virtual void SetAltitude(const ignition::math::Vector3d &_pos);
public: void SetNormal(const ignition::math::Vector3d &_norm);
public: ignition::math::Vector3d Normal() const;
public: void SetSize(const ignition::math::Vector2d &_size);
public: ignition::math::Vector2d Size() const;
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::PlaneShape::ProcessMsg
virtual void ProcessMsg(const msgs::Geometry &_msg)
Process a geometry message and use the data to update this object.
gazebo::physics::PlaneShape::Normal
ignition::math::Vector3d Normal() const
Get the plane normal.
gazebo
Forward declarations for the common classes.
Definition: Animation.hh:26
gazebo::physics::PlaneShape::SetScale
virtual void SetScale(const ignition::math::Vector3d &_scale)
Set the scale of the plane.
gazebo::physics::PlaneShape::SetSize
void SetSize(const ignition::math::Vector2d &_size)
Set the size.
system.hh
gazebo::physics::PlaneShape
Collision for an infinite plane.
Definition: PlaneShape.hh:37
gazebo::physics::PlaneShape::FillMsg
void FillMsg(msgs::Geometry &_msg)
Fill a geometry message with data from this object.
Shape.hh
gazebo::physics::PlaneShape::Init
virtual void Init()
Initialize the plane.
gazebo::physics::PlaneShape::~PlaneShape
virtual ~PlaneShape()
Destructor.
gazebo::physics::PlaneShape::SetAltitude
virtual void SetAltitude(const ignition::math::Vector3d &_pos)
Set the altitude of the plane.
gazebo::msgs::Init
GAZEBO_VISIBLE void Init(google::protobuf::Message &_message, const std::string &_id="")
Initialize a message.
gazebo::physics::PlaneShape::ComputeVolume
virtual double ComputeVolume() const
Documentation inherited.
gazebo::physics::PlaneShape::CreatePlane
virtual void CreatePlane()
Create the plane.
gazebo::physics::CollisionPtr
boost::shared_ptr< Collision > CollisionPtr
Definition: PhysicsTypes.hh:113
gazebo::physics::PlaneShape::SetNormal
void SetNormal(const ignition::math::Vector3d &_norm)
Set the normal.
gazebo::physics::PlaneShape::PlaneShape
PlaneShape(CollisionPtr _parent)
Constructor.
gazebo::physics::PlaneShape::Size
ignition::math::Vector2d Size() const
Get the size.
gazebo::physics::Shape
Base class for all shapes.
Definition: Shape.hh:39