#include <object.h>
This class represents detected object and it's bounding box.
Object with Bounding Box is designed to be the direct output of the detectors. It shows object's mesh together with it's Bounding Box. It can also show pre-grasp positions and can be translated, rotated or scaled.
srs_interaction_primitives::Object::Object | ( | 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 object |
void srs_interaction_primitives::Object::addPreGraspPosition | ( | int | pos_id, |
geometry_msgs::Pose | pose | ||
) |
Sets specified pre-grasp position.
pos_num | is specified position number (1-6) |
pose | is pre-grasp position and orientation |
Definition at line 491 of file object.cpp.
Adds grasping positions.
Definition at line 324 of file object.cpp.
void srs_interaction_primitives::Object::create | ( | ) | [private, virtual] |
Create Object.
Reimplemented from srs_interaction_primitives::BoundingBox.
Definition at line 597 of file object.cpp.
void srs_interaction_primitives::Object::createBoundingBoxControl | ( | ) | [private] |
Reimplemented from srs_interaction_primitives::BoundingBox.
void srs_interaction_primitives::Object::createMenu | ( | ) | [private, virtual] |
Create menu.
Reimplemented from srs_interaction_primitives::BoundingBox.
Definition at line 259 of file object.cpp.
void srs_interaction_primitives::Object::createMesh | ( | ) | [private] |
Definition at line 566 of file object.cpp.
std::string srs_interaction_primitives::Object::getResource | ( | ) | [inline] |
bool srs_interaction_primitives::Object::getUseMaterial | ( | ) | [inline] |
void srs_interaction_primitives::Object::insert | ( | ) | [virtual] |
Creates and inserts object into Interactive Marker Server
Reimplemented from srs_interaction_primitives::BoundingBox.
Definition at line 627 of file object.cpp.
void srs_interaction_primitives::Object::menuCallback | ( | const visualization_msgs::InteractiveMarkerFeedbackConstPtr & | feedback | ) |
Menu callback
Reimplemented from srs_interaction_primitives::BoundingBox.
Definition at line 107 of file object.cpp.
void srs_interaction_primitives::Object::objectCallback | ( | const visualization_msgs::InteractiveMarkerFeedbackConstPtr & | feedback | ) |
Callback
Definition at line 86 of file object.cpp.
void srs_interaction_primitives::Object::removePreGraspPosition | ( | int | pos_id | ) |
Removes specified pre-grasp position.
pos_num | is specified position number (1-6) |
Definition at line 536 of file object.cpp.
Removes grasping positions.
Definition at line 480 of file object.cpp.
void srs_interaction_primitives::Object::setAllowObjectInteraction | ( | bool | allow | ) | [virtual] |
Allows or denies interaction with Object.
allow | is true or false |
Definition at line 63 of file object.cpp.
void srs_interaction_primitives::Object::setAllowPregrasp | ( | bool | allow_pregrasp | ) | [inline] |
void srs_interaction_primitives::Object::setBoundingBoxLWH | ( | geometry_msgs::Point | bounding_box_lwh | ) | [inline] |
void srs_interaction_primitives::Object::setPoseLWH | ( | geometry_msgs::Pose | pose, |
geometry_msgs::Point | bounding_box_lwh | ||
) |
Sets position orientation of the object and dimension of the bounding box.
pose | is object's position and orientation |
bounding_box_lwh | is length, width and height of the bounding box |
Definition at line 587 of file object.cpp.
void srs_interaction_primitives::Object::setResource | ( | std::string | resource | ) | [inline] |
void srs_interaction_primitives::Object::setShape | ( | arm_navigation_msgs::Shape | shape | ) | [inline] |
void srs_interaction_primitives::Object::setUseMaterial | ( | bool | use_material | ) | [inline] |
Updates visible controls.
Reimplemented from srs_interaction_primitives::Primitive.
Definition at line 526 of file object.cpp.
visualization_msgs::Marker srs_interaction_primitives::Object::mesh_ [private] |
visualization_msgs::InteractiveMarkerControl srs_interaction_primitives::Object::pregrasp1Control_ [private] |
visualization_msgs::InteractiveMarkerControl srs_interaction_primitives::Object::pregrasp2Control_ [private] |
visualization_msgs::InteractiveMarkerControl srs_interaction_primitives::Object::pregrasp3Control_ [private] |
visualization_msgs::InteractiveMarkerControl srs_interaction_primitives::Object::pregrasp4Control_ [private] |
visualization_msgs::InteractiveMarkerControl srs_interaction_primitives::Object::pregrasp5Control_ [private] |
visualization_msgs::InteractiveMarkerControl srs_interaction_primitives::Object::pregrasp6Control_ [private] |
std::string srs_interaction_primitives::Object::resource_ [private] |