18 #ifndef _SIMBODY_BOXSHAPE_HH_
19 #define _SIMBODY_BOXSHAPE_HH_
45 if (_size.
x < 0 || _size.
y < 0 || _size.
z < 0)
47 gzerr <<
"Box shape does not support negative size\n";
56 gzwarn <<
"Setting box shape's x to zero \n";
61 gzwarn <<
"Setting box shape's y to zero \n";
66 gzwarn <<
"Setting box shape's z to zero \n";
74 this->collisionParent);
SimbodyBoxShape(CollisionPtr _parent)
Constructor.
Definition: SimbodyBoxShape.hh:37
The Vector3 class represents the generic vector containing 3 elements.
Definition: Vector3.hh:43
virtual ~SimbodyBoxShape()
Destructor.
Definition: SimbodyBoxShape.hh:40
virtual void SetSize(const math::Vector3 &_size)
Set the size of the box.
double x
X location.
Definition: Vector3.hh:302
#define gzwarn
Output a warning message.
Definition: Console.hh:46
double z
Z location.
Definition: Vector3.hh:308
#define gzerr
Output an error message.
Definition: Console.hh:49
Simbody box collision.
Definition: SimbodyBoxShape.hh:34
bool equal(const T &_a, const T &_b, const T &_epsilon=1e-6)
check if two values are equal, within a tolerance
Definition: Helpers.hh:168
Simbody collisions.
Definition: SimbodyCollision.hh:41
boost::shared_ptr< Collision > CollisionPtr
Definition: PhysicsTypes.hh:94
boost::shared_ptr< SimbodyCollision > SimbodyCollisionPtr
Definition: SimbodyTypes.hh:41
Box geometry primitive.
Definition: BoxShape.hh:37
void SetSize(const math::Vector3 &_size)
Set the size of the box.
Definition: SimbodyBoxShape.hh:43
#define GAZEBO_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system.hh:48
double y
Y location.
Definition: Vector3.hh:305