Go to the documentation of this file.
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>(
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());
Forward declarations for the common classes.
Definition: Animation.hh:26
virtual void SetSize(const ignition::math::Vector3d &_size)
Set the size of the box.
Definition: ODEBoxShape.hh:47
boost::shared_ptr< ODECollision > ODECollisionPtr
Definition: ODETypes.hh:39
default namespace for gazebo
Box geometry primitive.
Definition: BoxShape.hh:34
ODE Box shape.
Definition: ODEBoxShape.hh:36
CollisionPtr collisionParent
This shape's collision parent.
Definition: Shape.hh:79
virtual ~ODEBoxShape()
Destructor.
Definition: ODEBoxShape.hh:44
ODE wrapper forward declarations and typedefs.
ODEBoxShape(ODECollisionPtr _parent)
Constructor.
Definition: ODEBoxShape.hh:40
virtual void SetSize(const ignition::math::Vector3d &_size)
Set the size of the box.