17 #ifndef _GAZEBO_DARTBOXSHAPE_HH_
18 #define _GAZEBO_DARTBOXSHAPE_HH_
50 if (_size.
x < 0 || _size.
y < 0 || _size.
z < 0)
52 gzerr <<
"Box shape does not support negative size\n";
61 gzwarn <<
"Setting box shape's x to zero is not supported in DART, "
68 gzwarn <<
"Setting box shape's y to zero is not supported in DART, "
75 gzwarn <<
"Setting box shape's z to zero is not supported in DART "
83 boost::dynamic_pointer_cast<
DARTCollision>(this->collisionParent);
85 if (dartCollisionParent->GetDARTCollisionShape() ==
NULL)
87 dart::dynamics::BodyNode *dtBodyNode =
89 dart::dynamics::BoxShape *dtBoxShape =
91 dtBodyNode->addCollisionShape(dtBoxShape);
92 dartCollisionParent->SetDARTCollisionShape(dtBoxShape);
96 dart::dynamics::BoxShape *dtBoxShape =
97 dynamic_cast<dart::dynamics::BoxShape*
>(
98 dartCollisionParent->GetDARTCollisionShape());