17#ifndef _ODESPHERESHAPE_HH_
18#define _ODESPHERESHAPE_HH_
47 SphereShape::SetRadius(_radius);
50 boost::dynamic_pointer_cast<ODECollision>(this->collisionParent);
53 if (oParent->GetCollisionId() ==
nullptr)
54 oParent->SetCollision(dCreateSphere(0, _radius),
true);
56 dGeomSphereSetRadius(oParent->GetCollisionId(), _radius);
default namespace for gazebo
A ODE sphere shape.
Definition: ODESphereShape.hh:35
ODESphereShape(ODECollisionPtr _parent)
Constructor.
Definition: ODESphereShape.hh:38
virtual ~ODESphereShape()
Destructor.
Definition: ODESphereShape.hh:42
virtual void SetRadius(double _radius)
Set the size.
Definition: ODESphereShape.hh:45
CollisionPtr collisionParent
This shape's collision parent.
Definition: Shape.hh:79
Sphere collision shape.
Definition: SphereShape.hh:40
virtual void SetRadius(double _radius)
Set the size.
boost::shared_ptr< ODECollision > ODECollisionPtr
Definition: ODETypes.hh:39
Forward declarations for the common classes.
Definition: Animation.hh:27