17 #ifndef GAZEBO_PHYSICS_SIMBODY_SIMBODYBOXSHAPE_HH_
18 #define GAZEBO_PHYSICS_SIMBODY_SIMBODYBOXSHAPE_HH_
43 public:
void SetSize(
const ignition::math::Vector3d &_size)
45 if (_size.X() < 0 || _size.Y() < 0 || _size.Z() < 0)
47 gzerr <<
"Box shape does not support negative size\n";
50 ignition::math::Vector3d size = _size;
51 if (ignition::math::equal(size.X(), 0.0))
56 gzwarn <<
"Setting box shape's x to zero \n";
59 if (ignition::math::equal(size.Y(), 0.0))
61 gzwarn <<
"Setting box shape's y to zero \n";
64 if (ignition::math::equal(size.Z(), 0.0))
66 gzwarn <<
"Setting box shape's z to zero \n";
74 this->collisionParent);
void SetSize(const ignition::math::Vector3d &_size)
Set the size of the box.
Definition: SimbodyBoxShape.hh:43
#define gzwarn
Output a warning message.
Definition: Console.hh:47
#define gzerr
Output an error message.
Definition: Console.hh:50
Simbody box collision.
Definition: SimbodyBoxShape.hh:33
Simbody collisions.
Definition: SimbodyCollision.hh:41
boost::shared_ptr< SimbodyCollision > SimbodyCollisionPtr
Definition: SimbodyTypes.hh:44
Box geometry primitive.
Definition: BoxShape.hh:34
virtual void SetSize(const ignition::math::Vector3d &_size)
Set the size of the box.
SimbodyBoxShape(CollisionPtr _parent)
Constructor.
Definition: SimbodyBoxShape.hh:36
boost::shared_ptr< Collision > CollisionPtr
Definition: PhysicsTypes.hh:113
virtual ~SimbodyBoxShape()
Destructor.
Definition: SimbodyBoxShape.hh:40