18 #ifndef _SIMBODY_CYLINDERSHAPE_HH_
19 #define _SIMBODY_CYLINDERSHAPE_HH_
44 public:
void SetSize(
double _radius,
double _length)
48 gzerr <<
"Cylinder shape does not support negative radius\n";
53 gzerr <<
"Cylinder shape does not support negative length\n";
61 gzwarn <<
"Setting cylinder shape's radius to zero \n";
66 gzwarn <<
"Setting cylinder shape's length to zero \n";
73 this->collisionParent);
#define GZ_PHYSICS_VISIBLE
Definition: system.hh:318
Forward declarations for the common classes.
Definition: Animation.hh:33
Cylinder collision.
Definition: CylinderShape.hh:43
virtual void SetSize(double _radius, double _length)
Set the size of the cylinder.
void SetSize(double _radius, double _length)
Set the size of the cylinder.
Definition: SimbodyCylinderShape.hh:44
#define gzwarn
Output a warning message.
Definition: Console.hh:46
virtual ~SimbodyCylinderShape()
Destructor.
Definition: SimbodyCylinderShape.hh:41
#define gzerr
Output an error message.
Definition: Console.hh:49
bool equal(const T &_a, const T &_b, const T &_epsilon=1e-6)
check if two values are equal, within a tolerance
Definition: Helpers.hh:171
Simbody collisions.
Definition: SimbodyCollision.hh:41
boost::shared_ptr< Collision > CollisionPtr
Definition: PhysicsTypes.hh:96
boost::shared_ptr< SimbodyCollision > SimbodyCollisionPtr
Definition: SimbodyTypes.hh:41
SimbodyCylinderShape(CollisionPtr _parent)
Constructor.
Definition: SimbodyCylinderShape.hh:37
Cylinder collision.
Definition: SimbodyCylinderShape.hh:34