17#ifndef _ODEBOXSHAPE_HH_
18#define _ODEBOXSHAPE_HH_
47 public:
virtual void SetSize(
const ignition::math::Vector3d &_size)
52 oParent = boost::dynamic_pointer_cast<ODECollision>(
55 if (oParent->GetCollisionId() ==
nullptr)
57 oParent->SetCollision(
58 dCreateBox(0, _size.X(), _size.Y(), _size.Z()),
true);
62 dGeomBoxSetLengths(oParent->GetCollisionId(),
63 _size.X(), _size.Y(), _size.Z());
ODE wrapper forward declarations and typedefs.
default namespace for gazebo
BoxShape(CollisionPtr _parent)
Constructor.
virtual void SetSize(const ignition::math::Vector3d &_size)
Set the size of the box.
ODEBoxShape(ODECollisionPtr _parent)
Constructor.
Definition ODEBoxShape.hh:40
virtual void SetSize(const ignition::math::Vector3d &_size)
Set the size of the box.
Definition ODEBoxShape.hh:47
virtual ~ODEBoxShape()
Destructor.
Definition ODEBoxShape.hh:44
CollisionPtr collisionParent
This shape's collision parent.
Definition Shape.hh:73
boost::shared_ptr< ODECollision > ODECollisionPtr
Definition ODETypes.hh:39
namespace for physics
Definition Actor.hh:41
Forward declarations for the common classes.
Definition Animation.hh:27