#include <shape_visualization.h>
Public Member Functions | |
void | applyModifications (const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback) |
Feedback callback for Apply map modifications menu entry. | |
void | displayAllCentroids (const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback) |
Feedback callback for All Centroids Controls menu entry. | |
void | displayAllContours (const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback) |
Feedback callback for All Contours Controls menu entry. | |
void | displayAllNormals (const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback) |
Feedback callback for All Normals Controls menu entry. | |
void | moreOptions () |
creats a text for applying controls on all of the markers | |
void | optionMenu () |
Create menu entries for the text. | |
void | resetAll (const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback) |
Feedback callback for Reset all Controls menu entry. | |
void | setShapePosition (const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback) |
Callback for feedback subscriber for getting the transformation of moved markers. | |
void | shapeArrayCallback (const cob_3d_mapping_msgs::ShapeArrayPtr &sa) |
Callback for shape array messages. | |
ShapeVisualization () | |
~ShapeVisualization () | |
Protected Attributes | |
Eigen::Affine3f | affineInit |
std::vector< unsigned int > | contour_ids_ |
int | ctr_for_shape_indexes |
std::vector< unsigned int > | deleted_markers_indices_ |
ros::Subscriber | feedback_sub_ |
std::string | frame_id_ |
boost::shared_ptr < interactive_markers::InteractiveMarkerServer > | im_server_ |
std::vector< unsigned int > | interacted_shapes_ |
std::vector< unsigned int > | marker_ids_ |
ros::Publisher | marker_pub_ |
interactive_markers::MenuHandler | menu_handler_for_text_ |
cob_3d_mapping_msgs::ShapeArray | modified_shapes_ |
std::vector< unsigned int > | moved_shapes_indices_ |
ros::NodeHandle | nh_ |
Eigen::Vector3f | oldCentroid |
Eigen::Quaternionf | quatInit |
cob_3d_mapping_msgs::ShapeArray | sha |
ros::Subscriber | shape_array_sub_ |
bool | show_contours_ |
Eigen::Matrix4f | transInit |
Eigen::Matrix4f | transInitInv |
std::vector< boost::shared_ptr < ShapeMarker > > | v_sm_ |
Definition at line 91 of file shape_visualization.h.
Definition at line 79 of file shape_visualization.cpp.
ShapeVisualization::~ShapeVisualization | ( | ) | [inline] |
void
Definition at line 97 of file shape_visualization.h.
void ShapeVisualization::applyModifications | ( | const visualization_msgs::InteractiveMarkerFeedbackConstPtr & | feedback | ) |
Feedback callback for Apply map modifications menu entry.
[in] | feedback | feedback from rviz when the Apply map modifications menu entry of the text is changed |
Definition at line 271 of file shape_visualization.cpp.
void ShapeVisualization::displayAllCentroids | ( | const visualization_msgs::InteractiveMarkerFeedbackConstPtr & | feedback | ) |
Feedback callback for All Centroids Controls menu entry.
feedback | feedback from rviz when the All Centroids menu entry of the text is changed |
Definition at line 487 of file shape_visualization.cpp.
void ShapeVisualization::displayAllContours | ( | const visualization_msgs::InteractiveMarkerFeedbackConstPtr & | feedback | ) |
Feedback callback for All Contours Controls menu entry.
feedback | feedback from rviz when the All Contours menu entry of the text is changed |
Definition at line 518 of file shape_visualization.cpp.
void ShapeVisualization::displayAllNormals | ( | const visualization_msgs::InteractiveMarkerFeedbackConstPtr & | feedback | ) |
Feedback callback for All Normals Controls menu entry.
feedback | feedback from rviz when the All Normals menu entry of the text is changed |
Definition at line 458 of file shape_visualization.cpp.
void ShapeVisualization::moreOptions | ( | ) |
creats a text for applying controls on all of the markers
Definition at line 406 of file shape_visualization.cpp.
void ShapeVisualization::optionMenu | ( | ) |
Create menu entries for the text.
Definition at line 547 of file shape_visualization.cpp.
void ShapeVisualization::resetAll | ( | const visualization_msgs::InteractiveMarkerFeedbackConstPtr & | feedback | ) |
Feedback callback for Reset all Controls menu entry.
[in] | feedback | feedback from rviz when the Reset all Controls menu entry of the text is changed |
Definition at line 346 of file shape_visualization.cpp.
void ShapeVisualization::setShapePosition | ( | const visualization_msgs::InteractiveMarkerFeedbackConstPtr & | feedback | ) |
Callback for feedback subscriber for getting the transformation of moved markers.
[in] | feedback | subscribed from geometry_map/map/feedback |
Definition at line 96 of file shape_visualization.cpp.
void ShapeVisualization::shapeArrayCallback | ( | const cob_3d_mapping_msgs::ShapeArrayPtr & | sa | ) |
Callback for shape array messages.
sa | received shape array message |
Definition at line 577 of file shape_visualization.cpp.
Eigen::Affine3f ShapeVisualization::affineInit [protected] |
Definition at line 176 of file shape_visualization.h.
std::vector<unsigned int> ShapeVisualization::contour_ids_ [protected] |
Definition at line 168 of file shape_visualization.h.
int ShapeVisualization::ctr_for_shape_indexes [protected] |
Definition at line 161 of file shape_visualization.h.
std::vector<unsigned int> ShapeVisualization::deleted_markers_indices_ [protected] |
Definition at line 164 of file shape_visualization.h.
ros::Subscriber ShapeVisualization::feedback_sub_ [protected] |
Definition at line 155 of file shape_visualization.h.
std::string ShapeVisualization::frame_id_ [protected] |
Definition at line 166 of file shape_visualization.h.
boost::shared_ptr<interactive_markers::InteractiveMarkerServer> ShapeVisualization::im_server_ [protected] |
Definition at line 183 of file shape_visualization.h.
std::vector<unsigned int> ShapeVisualization::interacted_shapes_ [protected] |
Definition at line 163 of file shape_visualization.h.
std::vector<unsigned int> ShapeVisualization::marker_ids_ [protected] |
Definition at line 167 of file shape_visualization.h.
ros::Publisher ShapeVisualization::marker_pub_ [protected] |
Definition at line 156 of file shape_visualization.h.
Definition at line 159 of file shape_visualization.h.
cob_3d_mapping_msgs::ShapeArray ShapeVisualization::modified_shapes_ [protected] |
Definition at line 165 of file shape_visualization.h.
std::vector<unsigned int> ShapeVisualization::moved_shapes_indices_ [protected] |
Definition at line 162 of file shape_visualization.h.
ros::NodeHandle ShapeVisualization::nh_ [protected] |
Definition at line 152 of file shape_visualization.h.
Eigen::Vector3f ShapeVisualization::oldCentroid [protected] |
Definition at line 174 of file shape_visualization.h.
Eigen::Quaternionf ShapeVisualization::quatInit [protected] |
Definition at line 173 of file shape_visualization.h.
cob_3d_mapping_msgs::ShapeArray ShapeVisualization::sha [protected] |
Definition at line 158 of file shape_visualization.h.
ros::Subscriber ShapeVisualization::shape_array_sub_ [protected] |
Definition at line 154 of file shape_visualization.h.
bool ShapeVisualization::show_contours_ [protected] |
Definition at line 169 of file shape_visualization.h.
Eigen::Matrix4f ShapeVisualization::transInit [protected] |
Definition at line 175 of file shape_visualization.h.
Eigen::Matrix4f ShapeVisualization::transInitInv [protected] |
Definition at line 177 of file shape_visualization.h.
std::vector<boost::shared_ptr<ShapeMarker> > ShapeVisualization::v_sm_ [protected] |
Definition at line 157 of file shape_visualization.h.