Public Member Functions | Protected Member Functions | Protected Attributes
srs_interaction_primitives::BoundingBox Class Reference

#include <bounding_box.h>

Inheritance diagram for srs_interaction_primitives::BoundingBox:
Inheritance graph
[legend]

List of all members.

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_

Detailed Description

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.

Author:
Tomas Lokaj http://ros.org/wiki/srs_env_model#Bounding_Box

Definition at line 51 of file bounding_box.h.


Constructor & Destructor Documentation

srs_interaction_primitives::BoundingBox::BoundingBox ( InteractiveMarkerServerPtr  server,
std::string  frame_id,
std::string  name 
)

Constructor.

Parameters:
serveris Interactive marker server
frame_idis fixed frame
nameis name of this bounding box

Constructor.

Definition at line 65 of file bounding_box.h.


Member Function Documentation

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.

Reimplemented in srs_interaction_primitives::Object.

Definition at line 221 of file bounding_box.cpp.

Create menu.

Reimplemented from srs_interaction_primitives::Primitive.

Reimplemented in srs_interaction_primitives::Object.

Definition at line 193 of file bounding_box.cpp.

Gets name of object attached to this bounding box

Returns:
attached object's name

Definition at line 89 of file bounding_box.h.

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.

Sets name of object attached to this bounding box

Parameters:
nameis name of attached object

Definition at line 98 of file bounding_box.h.

Definition at line 350 of file bounding_box.cpp.


Member Data Documentation

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.


The documentation for this class was generated from the following files:


srs_interaction_primitives
Author(s): Tomas Lokaj, Michal Spanel (spanel@fit.vutbr.cz)
autogenerated on Mon Oct 6 2014 07:55:11