#include <bounding_box.h>
Public Member Functions | |
void | bboxCallback (const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback) |
BoundingBox (InteractiveMarkerServerPtr server, std::string frame_id, std::string name) | |
BoundingBox () | |
std::string | getAttachedObjectName () |
void | insert () |
void | menuCallback (const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback) |
void | setAttachedObjectName (std::string name) |
Protected Member Functions | |
void | create () |
Create Object. | |
void | createBoundingBoxControl (float trans_x, float trans_y, float trans_z) |
void | createBoundingBoxControl () |
void | createMenu () |
Create menu. | |
void | showBoundingBoxControl (bool show) |
Protected Attributes | |
std::string | attached_object_name_ |
visualization_msgs::Marker | bounding_box_ |
visualization_msgs::Marker | wire_ |
This class represents Bounding Box primitive
Bounding Box ilustrates the smallest dimensions of the object. Bounding Box can visualize object's dimensions. Bounding Box can be translated or rotated.
Definition at line 51 of file bounding_box.h.
srs_interaction_primitives::BoundingBox::BoundingBox | ( | InteractiveMarkerServerPtr | server, |
std::string | frame_id, | ||
std::string | name | ||
) |
Constructor.
server | is Interactive marker server |
frame_id | is fixed frame |
name | is name of this bounding box |
srs_interaction_primitives::BoundingBox::BoundingBox | ( | ) | [inline] |
Constructor.
Definition at line 65 of file bounding_box.h.
void srs_interaction_primitives::BoundingBox::bboxCallback | ( | const visualization_msgs::InteractiveMarkerFeedbackConstPtr & | feedback | ) |
Callback for interactive markers
Definition at line 45 of file bounding_box.cpp.
void srs_interaction_primitives::BoundingBox::create | ( | ) | [protected, virtual] |
Create Object.
Reimplemented from srs_interaction_primitives::Primitive.
Reimplemented in srs_interaction_primitives::Object.
Definition at line 359 of file bounding_box.cpp.
void srs_interaction_primitives::BoundingBox::createBoundingBoxControl | ( | float | trans_x, |
float | trans_y, | ||
float | trans_z | ||
) | [protected] |
Definition at line 226 of file bounding_box.cpp.
void srs_interaction_primitives::BoundingBox::createBoundingBoxControl | ( | ) | [protected] |
Reimplemented in srs_interaction_primitives::Object.
Definition at line 221 of file bounding_box.cpp.
void srs_interaction_primitives::BoundingBox::createMenu | ( | ) | [protected, virtual] |
Create menu.
Reimplemented from srs_interaction_primitives::Primitive.
Reimplemented in srs_interaction_primitives::Object.
Definition at line 193 of file bounding_box.cpp.
std::string srs_interaction_primitives::BoundingBox::getAttachedObjectName | ( | ) | [inline] |
Gets name of object attached to this bounding box
Definition at line 89 of file bounding_box.h.
void srs_interaction_primitives::BoundingBox::insert | ( | ) | [virtual] |
Inserts bounding box into Interactive marker server
Reimplemented from srs_interaction_primitives::Primitive.
Reimplemented in srs_interaction_primitives::Object.
Definition at line 374 of file bounding_box.cpp.
void srs_interaction_primitives::BoundingBox::menuCallback | ( | const visualization_msgs::InteractiveMarkerFeedbackConstPtr & | feedback | ) |
Callback for menu
Reimplemented in srs_interaction_primitives::Object.
Definition at line 80 of file bounding_box.cpp.
void srs_interaction_primitives::BoundingBox::setAttachedObjectName | ( | std::string | name | ) | [inline] |
Sets name of object attached to this bounding box
name | is name of attached object |
Definition at line 98 of file bounding_box.h.
void srs_interaction_primitives::BoundingBox::showBoundingBoxControl | ( | bool | show | ) | [protected] |
Definition at line 350 of file bounding_box.cpp.
std::string srs_interaction_primitives::BoundingBox::attached_object_name_ [protected] |
Definition at line 105 of file bounding_box.h.
visualization_msgs::Marker srs_interaction_primitives::BoundingBox::bounding_box_ [protected] |
Definition at line 104 of file bounding_box.h.
visualization_msgs::Marker srs_interaction_primitives::BoundingBox::wire_ [protected] |
Definition at line 104 of file bounding_box.h.