17 #ifndef _ODECYLINDERSHAPE_HH_
18 #define _ODECYLINDERSHAPE_HH_
40 public:
void SetSize(
double _radius,
double _length)
45 boost::dynamic_pointer_cast<
ODECollision>(this->collisionParent);
47 if (oParent->GetCollisionId() ==
NULL)
48 oParent->
SetCollision(dCreateCylinder(0, _radius, _length),
true);
50 dGeomCylinderSetParams(oParent->GetCollisionId(), _radius, _length);
ODECylinderShape(CollisionPtr _parent)
Constructor.
Definition: ODECylinderShape.hh:33
Base class for all ODE collisions.
Definition: ODECollision.hh:39
virtual ~ODECylinderShape()
Destructor.
Definition: ODECylinderShape.hh:37
Cylinder collision.
Definition: CylinderShape.hh:37
virtual void SetSize(double _radius, double _length)
Set the size of the cylinder.
ODE cylinder shape.
Definition: ODECylinderShape.hh:29
void SetSize(double _radius, double _length)
Set the size of the cylinder.
Definition: ODECylinderShape.hh:40
boost::shared_ptr< Collision > CollisionPtr
Definition: PhysicsTypes.hh:94
void SetCollision(dGeomID _collisionId, bool _placeable)
Set the encapsulated collsion object.
#define NULL
Definition: CommonTypes.hh:30
boost::shared_ptr< ODECollision > ODECollisionPtr
Definition: ODETypes.hh:36
#define GAZEBO_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system.hh:48