#include <primitive.h>
Public Member Functions | |
void | changeColor (std_msgs::ColorRGBA color) |
Change primitive's color. | |
virtual void | defaultCallback (const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback) |
Default callback for objects. | |
virtual void | erase () |
Erase primitive from Interactive Marker Server. | |
std_msgs::ColorRGBA | getColor () |
Gets primitive's color. | |
visualization_msgs::InteractiveMarkerControl * | getControl (std::string name) |
Returns control. | |
std::string | getDescription () |
std::string | getFrameID () |
Gets primitive's fixed frame. | |
std::string | getName () |
Gets primitive's name. | |
geometry_msgs::Pose | getPose () |
Gets primitive's position and orientation. | |
int | getPoseType () |
Gets the way to set the pose. | |
int | getPrimitiveType () |
Gets type of this primitive. | |
geometry_msgs::Vector3 | getScale () |
Gets primitive's scale. | |
std::string | getUpdateTopic (int update_type) |
Gets update topic. | |
virtual void | insert () |
Insert primitive into Interactive Marker Server. | |
Primitive (InteractiveMarkerServerPtr server, std::string frame_id, std::string name, int type) | |
Constructor. | |
Primitive () | |
Constructor. | |
void | setColor (std_msgs::ColorRGBA color) |
Sets color of the primitive. | |
void | setDescription (std::string description) |
Sets description to object. | |
void | setFrameID (std::string frame_id) |
Sets fixed frame to object. | |
void | setPose (geometry_msgs::Pose pose) |
Sets position and orientation to object. | |
void | setPoseType (int type) |
Sets the way to set the pose. | |
void | setPrimitiveType (int type) |
Sets type of this primitive. | |
void | setScale (geometry_msgs::Vector3 scale) |
Sets scale to object. | |
void | updateControls () |
Updates visible controls. | |
virtual | ~Primitive () |
Destructor. | |
Protected Member Functions | |
void | addDescriptionControl () |
Adds description controls. | |
void | addMeasureControl () |
Adds measure controls. | |
void | addMovementControls () |
Adds movement controls. | |
void | addRotationControls () |
Adds rotation controls. | |
void | addScaleControls () |
Adds scale controls. | |
void | clearObject () |
Resets object. | |
virtual void | create () |
Create Object. | |
virtual void | createMenu () |
Create menu. | |
void | removeControl (std::string name) |
void | removeDescriptionControl () |
void | removeMeasureControl () |
Removes measure control. | |
void | removeMovementControls () |
Removes movement controls. | |
void | removeRotationControls () |
Removes rotation controls. | |
void | removeScaleControls () |
Removes scale controls. | |
void | scaleFeedback (const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback) |
Scale controls feedback. | |
virtual void | updateScaleControls () |
Updates scale controls. | |
Protected Attributes | |
std_msgs::ColorRGBA | color_ |
std_msgs::ColorRGBA | color_green_a01_ |
visualization_msgs::InteractiveMarkerControl | control_ |
std::string | description_ |
visualization_msgs::InteractiveMarkerControl | descriptionControl_ |
tf::StampedTransform | feedbackToDefaultTransform |
std::string | frame_id_ |
geometry_msgs::Vector3 | max_size_ |
visualization_msgs::InteractiveMarkerControl | measureControl_ |
bool | menu_created_ |
interactive_markers::MenuHandler | menu_handler_ |
geometry_msgs::Vector3 | min_size_ |
visualization_msgs::InteractiveMarkerControl | moveXControl_ |
visualization_msgs::InteractiveMarkerControl | moveYControl_ |
visualization_msgs::InteractiveMarkerControl | moveZControl_ |
std::string | name_ |
visualization_msgs::InteractiveMarker | object_ |
geometry_msgs::Pose | pose_ |
geometry_msgs::Pose | pose_change |
int | pose_type_ |
int | primitive_type_ |
visualization_msgs::InteractiveMarkerControl | rotateXControl_ |
visualization_msgs::InteractiveMarkerControl | rotateYControl |
visualization_msgs::InteractiveMarkerControl | rotateZControl_ |
geometry_msgs::Vector3 | scale_ |
geometry_msgs::Vector3 | scale_prev_ |
int | scale_saved_ |
visualization_msgs::InteractiveMarkerControl | scaleControl_ |
InteractiveMarkerServerPtr | server_ |
bool | show_description_control_ |
bool | show_measure_control_ |
bool | show_movement_control_ |
bool | show_rotation_control_ |
bool | show_scale_control_ |
bool | show_trajectory_control_ |
tf::TransformListener * | tfListener |
visualization_msgs::InteractiveMarkerControl | trajectoryControl_ |
tf::Transformer | transformer |
UpdatePublisher * | updatePublisher_ |
This class is parent class for BUT GUI primitives
Definition at line 86 of file primitive.h.
srs_interaction_primitives::Primitive::Primitive | ( | InteractiveMarkerServerPtr | server, |
std::string | frame_id, | ||
std::string | name, | ||
int | type | ||
) |
Constructor.
server | is Interactive marker server |
frame_id | is fixed frame |
name | is name of this primitive |
srs_interaction_primitives::Primitive::Primitive | ( | ) | [inline] |
Constructor.
Definition at line 100 of file primitive.h.
virtual srs_interaction_primitives::Primitive::~Primitive | ( | ) | [inline, virtual] |
Destructor.
Definition at line 107 of file primitive.h.
void srs_interaction_primitives::Primitive::addDescriptionControl | ( | ) | [protected] |
Adds description controls.
Definition at line 532 of file primitive.cpp.
void srs_interaction_primitives::Primitive::addMeasureControl | ( | ) | [protected] |
Adds measure controls.
Definition at line 433 of file primitive.cpp.
void srs_interaction_primitives::Primitive::addMovementControls | ( | ) | [protected] |
Adds movement controls.
marker | is Interactive marker |
Definition at line 336 of file primitive.cpp.
void srs_interaction_primitives::Primitive::addRotationControls | ( | ) | [protected] |
Adds rotation controls.
Definition at line 369 of file primitive.cpp.
void srs_interaction_primitives::Primitive::addScaleControls | ( | ) | [protected] |
Adds scale controls.
Definition at line 573 of file primitive.cpp.
void srs_interaction_primitives::Primitive::changeColor | ( | std_msgs::ColorRGBA | color | ) |
Change primitive's color.
color | is primitives's color |
Definition at line 704 of file primitive.cpp.
void srs_interaction_primitives::Primitive::clearObject | ( | ) | [protected] |
Resets object.
Definition at line 697 of file primitive.cpp.
virtual void srs_interaction_primitives::Primitive::create | ( | ) | [inline, protected, virtual] |
Create Object.
Reimplemented in srs_interaction_primitives::Object, srs_interaction_primitives::Billboard, srs_interaction_primitives::BoundingBox, srs_interaction_primitives::PlanePolygon, srs_interaction_primitives::UnknownObject, and srs_interaction_primitives::Plane.
Definition at line 325 of file primitive.h.
virtual void srs_interaction_primitives::Primitive::createMenu | ( | ) | [inline, protected, virtual] |
Create menu.
Reimplemented in srs_interaction_primitives::Object, srs_interaction_primitives::Billboard, srs_interaction_primitives::BoundingBox, srs_interaction_primitives::UnknownObject, and srs_interaction_primitives::Plane.
Definition at line 332 of file primitive.h.
void srs_interaction_primitives::Primitive::defaultCallback | ( | const visualization_msgs::InteractiveMarkerFeedbackConstPtr & | feedback | ) | [virtual] |
Default callback for objects.
Definition at line 60 of file primitive.cpp.
void srs_interaction_primitives::Primitive::erase | ( | ) | [virtual] |
Erase primitive from Interactive Marker Server.
Definition at line 328 of file primitive.cpp.
std_msgs::ColorRGBA srs_interaction_primitives::Primitive::getColor | ( | ) | [inline] |
InteractiveMarkerControl * srs_interaction_primitives::Primitive::getControl | ( | std::string | name | ) |
std::string srs_interaction_primitives::Primitive::getDescription | ( | void | ) | [inline] |
Gets primitive's description
Definition at line 282 of file primitive.h.
std::string srs_interaction_primitives::Primitive::getFrameID | ( | ) | [inline] |
Gets primitive's fixed frame.
Definition at line 300 of file primitive.h.
std::string srs_interaction_primitives::Primitive::getName | ( | void | ) | [inline] |
Gets primitive's position and orientation.
Definition at line 234 of file primitive.h.
int srs_interaction_primitives::Primitive::getPoseType | ( | ) | [inline] |
int srs_interaction_primitives::Primitive::getPrimitiveType | ( | ) | [inline] |
geometry_msgs::Vector3 srs_interaction_primitives::Primitive::getScale | ( | ) | [inline] |
std::string srs_interaction_primitives::Primitive::getUpdateTopic | ( | int | update_type | ) | [inline] |
Gets update topic.
update_type | is update's type |
Definition at line 174 of file primitive.h.
void srs_interaction_primitives::Primitive::insert | ( | ) | [virtual] |
Insert primitive into Interactive Marker Server.
Reimplemented in srs_interaction_primitives::Object, srs_interaction_primitives::Billboard, srs_interaction_primitives::BoundingBox, srs_interaction_primitives::UnknownObject, and srs_interaction_primitives::Plane.
Definition at line 323 of file primitive.cpp.
void srs_interaction_primitives::Primitive::removeControl | ( | std::string | name | ) | [protected] |
Removes control with specified name
name | is control's name |
Definition at line 418 of file primitive.cpp.
void srs_interaction_primitives::Primitive::removeDescriptionControl | ( | ) | [protected] |
Removes description control
Definition at line 526 of file primitive.cpp.
void srs_interaction_primitives::Primitive::removeMeasureControl | ( | ) | [protected] |
Removes measure control.
Definition at line 520 of file primitive.cpp.
void srs_interaction_primitives::Primitive::removeMovementControls | ( | ) | [protected] |
Removes movement controls.
Definition at line 402 of file primitive.cpp.
void srs_interaction_primitives::Primitive::removeRotationControls | ( | ) | [protected] |
Removes rotation controls.
Definition at line 410 of file primitive.cpp.
void srs_interaction_primitives::Primitive::removeScaleControls | ( | ) | [protected] |
Removes scale controls.
Definition at line 562 of file primitive.cpp.
void srs_interaction_primitives::Primitive::scaleFeedback | ( | const visualization_msgs::InteractiveMarkerFeedbackConstPtr & | feedback | ) | [protected] |
Scale controls feedback.
Definition at line 160 of file primitive.cpp.
void srs_interaction_primitives::Primitive::setColor | ( | std_msgs::ColorRGBA | color | ) | [inline] |
Sets color of the primitive.
color | is primitive's color |
Definition at line 192 of file primitive.h.
void srs_interaction_primitives::Primitive::setDescription | ( | std::string | description | ) | [inline] |
Sets description to object.
description | is primitive's description |
Definition at line 273 of file primitive.h.
void srs_interaction_primitives::Primitive::setFrameID | ( | std::string | frame_id | ) | [inline] |
Sets fixed frame to object.
frame_id | is primitive's fixed frame |
Definition at line 291 of file primitive.h.
void srs_interaction_primitives::Primitive::setPose | ( | geometry_msgs::Pose | pose | ) | [inline] |
Sets position and orientation to object.
pose | is primitive's position and orientation |
Definition at line 210 of file primitive.h.
void srs_interaction_primitives::Primitive::setPoseType | ( | int | type | ) | [inline] |
Sets the way to set the pose.
type | of the pose |
Definition at line 133 of file primitive.h.
void srs_interaction_primitives::Primitive::setPrimitiveType | ( | int | type | ) | [inline] |
Sets type of this primitive.
type | is primitive's type |
Definition at line 154 of file primitive.h.
void srs_interaction_primitives::Primitive::setScale | ( | geometry_msgs::Vector3 | scale | ) | [inline] |
Sets scale to object.
scale | is primitive's scale |
Definition at line 243 of file primitive.h.
Updates visible controls.
Reimplemented in srs_interaction_primitives::Object, and srs_interaction_primitives::Billboard.
Definition at line 669 of file primitive.cpp.
void srs_interaction_primitives::Primitive::updateScaleControls | ( | ) | [protected, virtual] |
Updates scale controls.
Definition at line 637 of file primitive.cpp.
std_msgs::ColorRGBA srs_interaction_primitives::Primitive::color_ [protected] |
Definition at line 431 of file primitive.h.
std_msgs::ColorRGBA srs_interaction_primitives::Primitive::color_green_a01_ [protected] |
Definition at line 431 of file primitive.h.
visualization_msgs::InteractiveMarkerControl srs_interaction_primitives::Primitive::control_ [protected] |
Definition at line 411 of file primitive.h.
std::string srs_interaction_primitives::Primitive::description_ [protected] |
Definition at line 427 of file primitive.h.
visualization_msgs::InteractiveMarkerControl srs_interaction_primitives::Primitive::descriptionControl_ [protected] |
Definition at line 411 of file primitive.h.
Definition at line 424 of file primitive.h.
std::string srs_interaction_primitives::Primitive::frame_id_ [protected] |
Definition at line 427 of file primitive.h.
geometry_msgs::Vector3 srs_interaction_primitives::Primitive::max_size_ [protected] |
Definition at line 408 of file primitive.h.
visualization_msgs::InteractiveMarkerControl srs_interaction_primitives::Primitive::measureControl_ [protected] |
Definition at line 411 of file primitive.h.
Definition at line 439 of file primitive.h.
Definition at line 415 of file primitive.h.
geometry_msgs::Vector3 srs_interaction_primitives::Primitive::min_size_ [protected] |
Definition at line 408 of file primitive.h.
visualization_msgs::InteractiveMarkerControl srs_interaction_primitives::Primitive::moveXControl_ [protected] |
Definition at line 413 of file primitive.h.
visualization_msgs::InteractiveMarkerControl srs_interaction_primitives::Primitive::moveYControl_ [protected] |
Definition at line 413 of file primitive.h.
visualization_msgs::InteractiveMarkerControl srs_interaction_primitives::Primitive::moveZControl_ [protected] |
Definition at line 413 of file primitive.h.
std::string srs_interaction_primitives::Primitive::name_ [protected] |
Definition at line 427 of file primitive.h.
visualization_msgs::InteractiveMarker srs_interaction_primitives::Primitive::object_ [protected] |
Definition at line 410 of file primitive.h.
Definition at line 429 of file primitive.h.
Definition at line 433 of file primitive.h.
int srs_interaction_primitives::Primitive::pose_type_ [protected] |
Definition at line 432 of file primitive.h.
int srs_interaction_primitives::Primitive::primitive_type_ [protected] |
Definition at line 409 of file primitive.h.
visualization_msgs::InteractiveMarkerControl srs_interaction_primitives::Primitive::rotateXControl_ [protected] |
Definition at line 413 of file primitive.h.
visualization_msgs::InteractiveMarkerControl srs_interaction_primitives::Primitive::rotateYControl [protected] |
Definition at line 413 of file primitive.h.
visualization_msgs::InteractiveMarkerControl srs_interaction_primitives::Primitive::rotateZControl_ [protected] |
Definition at line 413 of file primitive.h.
geometry_msgs::Vector3 srs_interaction_primitives::Primitive::scale_ [protected] |
Definition at line 430 of file primitive.h.
geometry_msgs::Vector3 srs_interaction_primitives::Primitive::scale_prev_ [protected] |
Definition at line 441 of file primitive.h.
int srs_interaction_primitives::Primitive::scale_saved_ [protected] |
Definition at line 442 of file primitive.h.
visualization_msgs::InteractiveMarkerControl srs_interaction_primitives::Primitive::scaleControl_ [protected] |
Definition at line 411 of file primitive.h.
Definition at line 428 of file primitive.h.
Definition at line 437 of file primitive.h.
Definition at line 437 of file primitive.h.
Definition at line 437 of file primitive.h.
Definition at line 437 of file primitive.h.
Definition at line 437 of file primitive.h.
Definition at line 437 of file primitive.h.
Definition at line 418 of file primitive.h.
visualization_msgs::InteractiveMarkerControl srs_interaction_primitives::Primitive::trajectoryControl_ [protected] |
Definition at line 411 of file primitive.h.
Definition at line 421 of file primitive.h.
Definition at line 435 of file primitive.h.