15 #ifndef VISION_MSGS_BUILD_BBOX_H_ 16 #define VISION_MSGS_BUILD_BBOX_H_ 18 #include "vision_msgs/BoundingBox2D.h" 19 #include "vision_msgs/BoundingBox3D.h" 35 bbox.center.x = left + width/2.0;
36 bbox.center.y = top + height/2.0;
57 bbox.center.position.x = min_x + size_x/2.0;
58 bbox.center.position.y = min_y + size_y/2.0;
59 bbox.center.position.z = min_z + size_z/2.0;
60 bbox.center.orientation.w = 1;
static BoundingBox3D createAABB3D(uint32_t min_x, uint32_t min_y, uint32_t min_z, uint32_t size_x, uint32_t size_y, uint32_t size_z)
static BoundingBox2D createAABB2D(uint32_t left, uint32_t top, uint32_t width, uint32_t height)