35 #ifndef GEOMETRIC_SHAPES_SOLID_PRIMITIVE_DIMS_ 36 #define GEOMETRIC_SHAPES_SOLID_PRIMITIVE_DIMS_ 38 #include <shape_msgs/SolidPrimitive.h> 57 value =
static_cast<int>(shape_msgs::SolidPrimitive::SPHERE_RADIUS) + 1
67 (
static_cast<int>(shape_msgs::SolidPrimitive::BOX_X) >= static_cast<int>(shape_msgs::SolidPrimitive::BOX_Y) &&
68 static_cast<int>(shape_msgs::SolidPrimitive::BOX_X) >= static_cast<int>(shape_msgs::SolidPrimitive::BOX_Z)) ?
69 static_cast<int>(shape_msgs::SolidPrimitive::BOX_X) :
70 (((
static_cast<int>(shape_msgs::SolidPrimitive::BOX_Y) >=
71 static_cast<int>(shape_msgs::SolidPrimitive::BOX_X) &&
72 static_cast<int>(shape_msgs::SolidPrimitive::BOX_Y) >=
73 static_cast<int>(shape_msgs::SolidPrimitive::BOX_Z))) ?
74 static_cast<int>(shape_msgs::SolidPrimitive::BOX_Y) :
75 ((static_cast<int>(shape_msgs::SolidPrimitive::BOX_Z) >=
76 static_cast<int>(shape_msgs::SolidPrimitive::BOX_X) &&
77 static_cast<int>(shape_msgs::SolidPrimitive::BOX_Z) >=
78 static_cast<int>(shape_msgs::SolidPrimitive::BOX_Y)) ?
79 static_cast<int>(shape_msgs::SolidPrimitive::BOX_Z) :
90 value = (
static_cast<int>(shape_msgs::SolidPrimitive::CONE_RADIUS) >=
91 static_cast<int>(shape_msgs::SolidPrimitive::CONE_HEIGHT) ?
92 static_cast<int>(shape_msgs::SolidPrimitive::CONE_RADIUS) :
93 static_cast<int>(shape_msgs::SolidPrimitive::CONE_HEIGHT)) +
103 value = (
static_cast<int>(shape_msgs::SolidPrimitive::CYLINDER_RADIUS) >=
104 static_cast<int>(shape_msgs::SolidPrimitive::CYLINDER_HEIGHT) ?
105 static_cast<int>(shape_msgs::SolidPrimitive::CYLINDER_RADIUS) :
106 static_cast<int>(shape_msgs::SolidPrimitive::CYLINDER_HEIGHT)) +
The number of dimensions of a particular shape.