17 #ifndef _GAZEBO_DARTBOXSHAPE_HH_
18 #define _GAZEBO_DARTBOXSHAPE_HH_
49 if (_size.
x < 0 || _size.
y < 0 || _size.
z < 0)
51 gzerr <<
"Box shape does not support negative size\n";
60 gzwarn <<
"Setting box shape's x to zero is not supported in DART, "
67 gzwarn <<
"Setting box shape's y to zero is not supported in DART, "
74 gzwarn <<
"Setting box shape's z to zero is not supported in DART "
84 if (dartCollisionParent->GetDARTCollisionShape() ==
NULL)
86 dart::dynamics::BodyNode *dtBodyNode =
88 dart::dynamics::BoxShape *dtBoxShape =
90 dtBodyNode->addCollisionShape(dtBoxShape);
91 dartCollisionParent->SetDARTCollisionShape(dtBoxShape);
95 dart::dynamics::BoxShape *dtBoxShape =
96 dynamic_cast<dart::dynamics::BoxShape*
>(
97 dartCollisionParent->GetDARTCollisionShape());