17#ifndef _ODEBOXSHAPE_HH_
18#define _ODEBOXSHAPE_HH_
47 public:
virtual void SetSize(
const ignition::math::Vector3d &_size)
49 BoxShape::SetSize(_size);
52 oParent = boost::dynamic_pointer_cast<ODECollision>(
53 this->collisionParent);
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
Box geometry primitive.
Definition BoxShape.hh:35
virtual void SetSize(const ignition::math::Vector3d &_size)
Set the size of the box.
ODE Box shape.
Definition ODEBoxShape.hh:37
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
Forward declarations for the common classes.
Definition Animation.hh:27