18 #ifndef _GAZEBO_DARTCYLINDERSHAPE_HH_ 
   19 #define _GAZEBO_DARTCYLINDERSHAPE_HH_ 
   42       public: 
void SetSize(
double _radius, 
double _length)
 
   46           gzerr << 
"Cylinder shape does not support negative radius\n";
 
   52           gzerr << 
"Cylinder shape does not support negative length\n";
 
   61           gzwarn << 
"Setting cylinder shape's radius to zero not supported " 
   62                  << 
"in DART, using 1e-4.\n";
 
   68           gzwarn << 
"Setting cylinder shape's length to zero not supported " 
   69                  << 
"in DART, using 1e-4.\n";
 
   78         if (dartCollisionParent->GetDARTCollisionShape() == 
NULL)
 
   80           dart::dynamics::BodyNode *dtBodyNode =
 
   82           dart::dynamics::CylinderShape *dtCylinderShape =
 
   83               new dart::dynamics::CylinderShape(_radius, _length);
 
   84           dtBodyNode->addCollisionShape(dtCylinderShape);
 
   85           dartCollisionParent->SetDARTCollisionShape(dtCylinderShape);
 
   89           dart::dynamics::CylinderShape *dtCylinderShape =
 
   90               dynamic_cast<dart::dynamics::CylinderShape*
>(
 
   91                 dartCollisionParent->GetDARTCollisionShape());
 
   92           dtCylinderShape->setRadius(_radius);
 
   93           dtCylinderShape->setHeight(_length);