17 #ifndef GAZEBO_PHYSICS_SIMBODY_SIMBODYBOXSHAPE_HH_
18 #define GAZEBO_PHYSICS_SIMBODY_SIMBODYBOXSHAPE_HH_
42 public:
void SetSize(
const ignition::math::Vector3d &_size)
44 if (_size.X() < 0 || _size.Y() < 0 || _size.Z() < 0)
46 gzerr <<
"Box shape does not support negative size\n";
49 ignition::math::Vector3d size = _size;
50 if (ignition::math::equal(size.X(), 0.0))
55 gzwarn <<
"Setting box shape's x to zero \n";
58 if (ignition::math::equal(size.Y(), 0.0))
60 gzwarn <<
"Setting box shape's y to zero \n";
63 if (ignition::math::equal(size.Z(), 0.0))
65 gzwarn <<
"Setting box shape's z to zero \n";
73 this->collisionParent);
void SetSize(const ignition::math::Vector3d &_size)
Set the size of the box.
Definition: SimbodyBoxShape.hh:42
#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
virtual void SetSize(const math::Vector3 &_size) GAZEBO_DEPRECATED(8.0)
Set the size of the box.
boost::shared_ptr< SimbodyCollision > SimbodyCollisionPtr
Definition: SimbodyTypes.hh:44
Box geometry primitive.
Definition: BoxShape.hh:34
SimbodyBoxShape(CollisionPtr _parent)
Constructor.
Definition: SimbodyBoxShape.hh:36
boost::shared_ptr< Collision > CollisionPtr
Definition: PhysicsTypes.hh:113
virtual ~SimbodyBoxShape()
Destructor.
Definition: SimbodyBoxShape.hh:39