Public Member Functions | Protected Attributes
ShapeMarker Class Reference

#include <shape_marker.h>

List of all members.

Public Member Functions

void createInteractiveMarker ()
 Publish interactive markers for a shape message using interactive marker server.
void createMarker (visualization_msgs::InteractiveMarkerControl &im_ctrl)
 Create marker for the shape and add it to the interactive marker control.
void createShapeMenu ()
 Create menu entries for each shape.
void deleteMarker (const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback)
 feedback callback for Delete Marker menu entry
void displayArrows ()
 Display arrows for interactive marker movement.
void displayCentroid ()
 Display the centroid of a shape.
void displayCentroidCB (const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback)
 Feedback callback for Display Centroid menu entry.
void displayContour ()
 Display contour of a shape.
void displayContourCB (const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback)
 Feedback callback for Display Contour menu entry.
void displayID ()
void displayIDCB (const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback)
void displayNormal ()
 Display the normal vector of a shape.
void displayNormalCB (const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback)
 Feedback callback for normal menu entry.
void displayOrigin ()
 Display the origin of a cylinder.
void displayOriginCB (const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback)
 Feedback callback for origin menu entry.
void displaySymAxis ()
 Display the Symmetry axis of a cylinder.
void displaySymAxisCB (const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback)
 Feedback callback for symmetry axis menu entry with cylinders.
void enableMovement (const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback)
 Feedback callback for Enable Movement menu entry.
bool getArrows ()
 returns the global variable arrows_
visualization_msgs::MarkerArray & getContourMarker ()
visualization_msgs::MarkerArray & getDeleteContourMarker ()
bool getDeleted ()
 returns global variable deleted_
unsigned int getID ()
 returns id of the shape msg
visualization_msgs::Marker & getMarker ()
void getShape (cob_3d_mapping_msgs::Shape &shape)
void hideArrows (int flag_untick)
 Remove arrows for interactive marker movement.
void hideCentroid (int flag_untick)
 Remove the centroid of a shape.
void hideContour (int flag_untick)
 Remove contour of a shape.
void hideID (int flag_untick)
void hideNormal (int flag_untick)
 Remove the normal vector of a shape param[in] flag_untick a flag which shows whether Enable Movement is unticked.
void hideOrigin (int flag_untick)
 Remove the origin of a cylinder.
void hideSymAxis (int flag_untick)
 Remove the Symmetry axis of a cylinder param[in] flag_untick a flag which shows whether Enable Movement is unticked.
TPPLPoint msgToPoint2D (const pcl::PointXYZ &point)
 Create menu entries for each shape.
void resetMarker ()
 Resets all controls activated for Interactive marker.
bool setArrows ()
 sets the global variable arrows_ to false
bool setDeleted ()
 sets the global variable deleted_ to false
 ShapeMarker (boost::shared_ptr< interactive_markers::InteractiveMarkerServer > im_server, cob_3d_mapping_msgs::Shape &shape, std::vector< unsigned int > &moved_shapes_indices, std::vector< unsigned int > &interacted_shapes, std::vector< unsigned int > &deleted_markers_indices, bool arrows, bool deleted)
void triangle_refinement (list< TPPLPoly > &i_list, list< TPPLPoly > &o_list)
 subdivides a list of triangles.
 ~ShapeMarker ()

Protected Attributes

bool arrows_
visualization_msgs::MarkerArray contour_marker_
visualization_msgs::MarkerArray delete_contour_marker_
bool deleted_
visualization_msgs::InteractiveMarker deleted_imarker_
std::vector< unsigned int > & deleted_markers_indices_
unsigned int id_
visualization_msgs::InteractiveMarkerControl im_ctrl
boost::shared_ptr
< interactive_markers::InteractiveMarkerServer
im_server_
visualization_msgs::InteractiveMarker imarker_
std::vector< unsigned int > & interacted_shapes_
visualization_msgs::Marker marker
visualization_msgs::InteractiveMarker marker_
interactive_markers::MenuHandler menu_handler_
std::vector< unsigned int > & moved_shapes_indices_
cob_3d_mapping_msgs::Shape shape_
Eigen::Affine3f transformation_
Eigen::Affine3f transformation_inv_

Detailed Description

Definition at line 114 of file shape_marker.h.


Constructor & Destructor Documentation

ShapeMarker::ShapeMarker ( boost::shared_ptr< interactive_markers::InteractiveMarkerServer im_server,
cob_3d_mapping_msgs::Shape &  shape,
std::vector< unsigned int > &  moved_shapes_indices,
std::vector< unsigned int > &  interacted_shapes,
std::vector< unsigned int > &  deleted_markers_indices,
bool  arrows,
bool  deleted 
)

Definition at line 69 of file shape_marker.cpp.

Definition at line 121 of file shape_marker.h.


Member Function Documentation

Publish interactive markers for a shape message using interactive marker server.

Definition at line 642 of file shape_marker.cpp.

void ShapeMarker::createMarker ( visualization_msgs::InteractiveMarkerControl &  im_ctrl)

Create marker for the shape and add it to the interactive marker control.

Parameters:
[in]triangle_listtriangulated list of poly points
[in]im_ctrlinteractive marker control

Definition at line 364 of file shape_marker.cpp.

Create menu entries for each shape.

Definition at line 313 of file shape_marker.cpp.

void ShapeMarker::deleteMarker ( const visualization_msgs::InteractiveMarkerFeedbackConstPtr &  feedback)

feedback callback for Delete Marker menu entry

Parameters:
[in]feedbackfeedback from rviz when the Delete Marker menu entry of a shape is chosen

Definition at line 152 of file shape_marker.cpp.

Display arrows for interactive marker movement.

Definition at line 201 of file shape_marker.cpp.

Display the centroid of a shape.

Definition at line 1021 of file shape_marker.cpp.

void ShapeMarker::displayCentroidCB ( const visualization_msgs::InteractiveMarkerFeedbackConstPtr &  feedback)

Feedback callback for Display Centroid menu entry.

Parameters:
[in]feedbackfeedback from rviz when the Display Centroid menu entry of a shape is changed
feedbackfeedback from rviz when the Display Centroid menu entry of a shape is changed

Definition at line 998 of file shape_marker.cpp.

Display contour of a shape.

Definition at line 1114 of file shape_marker.cpp.

void ShapeMarker::displayContourCB ( const visualization_msgs::InteractiveMarkerFeedbackConstPtr &  feedback)

Feedback callback for Display Contour menu entry.

Parameters:
[in]feedbackfeedback from rviz when the Display Contour menu entry of a shape is changed

Definition at line 1094 of file shape_marker.cpp.

Definition at line 1427 of file shape_marker.cpp.

void ShapeMarker::displayIDCB ( const visualization_msgs::InteractiveMarkerFeedbackConstPtr &  feedback)

Definition at line 1406 of file shape_marker.cpp.

Display the normal vector of a shape.

Definition at line 819 of file shape_marker.cpp.

void ShapeMarker::displayNormalCB ( const visualization_msgs::InteractiveMarkerFeedbackConstPtr &  feedback)

Feedback callback for normal menu entry.

Parameters:
[in]feedbackfeedback from rviz when the normal menu entry of a shape is changed

Definition at line 718 of file shape_marker.cpp.

Display the origin of a cylinder.

Definition at line 1330 of file shape_marker.cpp.

void ShapeMarker::displayOriginCB ( const visualization_msgs::InteractiveMarkerFeedbackConstPtr &  feedback)

Feedback callback for origin menu entry.

Parameters:
[in]feedbackfeedback from rviz when the centroid menu entry of a shape is changed

Definition at line 1307 of file shape_marker.cpp.

Display the Symmetry axis of a cylinder.

Definition at line 1227 of file shape_marker.cpp.

void ShapeMarker::displaySymAxisCB ( const visualization_msgs::InteractiveMarkerFeedbackConstPtr &  feedback)

Feedback callback for symmetry axis menu entry with cylinders.

Parameters:
[in]feedbackfeedback from rviz when the symmetry axis menu entry of a shape is changed

Definition at line 1204 of file shape_marker.cpp.

void ShapeMarker::enableMovement ( const visualization_msgs::InteractiveMarkerFeedbackConstPtr &  feedback)

Feedback callback for Enable Movement menu entry.

Parameters:
[in]feedbackfeedback from rviz when the Enable Movement menu entry of a shape is changed

Definition at line 176 of file shape_marker.cpp.

returns the global variable arrows_

Parameters:
[out]globalvariable arrows_

Definition at line 130 of file shape_marker.cpp.

visualization_msgs::MarkerArray& ShapeMarker::getContourMarker ( ) [inline]

Definition at line 295 of file shape_marker.h.

visualization_msgs::MarkerArray& ShapeMarker::getDeleteContourMarker ( ) [inline]

Definition at line 296 of file shape_marker.h.

returns global variable deleted_

Parameters:
[out]globalvariable deleted_

Definition at line 139 of file shape_marker.cpp.

unsigned int ShapeMarker::getID ( )

returns id of the shape msg

Parameters:
[out]shapemsg id

Definition at line 148 of file shape_marker.cpp.

visualization_msgs::Marker& ShapeMarker::getMarker ( ) [inline]

Definition at line 294 of file shape_marker.h.

void ShapeMarker::getShape ( cob_3d_mapping_msgs::Shape &  shape)

Definition at line 126 of file shape_marker.cpp.

void ShapeMarker::hideArrows ( int  flag_untick)

Remove arrows for interactive marker movement.

Parameters:
[in]flag_unticka flag which shows whether Enable Movement is unticked

delete the arrows

deleting the Transparent Marker

end

Definition at line 257 of file shape_marker.cpp.

void ShapeMarker::hideCentroid ( int  flag_untick)

Remove the centroid of a shape.

Definition at line 1069 of file shape_marker.cpp.

void ShapeMarker::hideContour ( int  flag_untick)

Remove contour of a shape.

Definition at line 1180 of file shape_marker.cpp.

void ShapeMarker::hideID ( int  flag_untick)

Definition at line 1477 of file shape_marker.cpp.

void ShapeMarker::hideNormal ( int  flag_untick)

Remove the normal vector of a shape param[in] flag_untick a flag which shows whether Enable Movement is unticked.

Definition at line 872 of file shape_marker.cpp.

void ShapeMarker::hideOrigin ( int  flag_untick)

Remove the origin of a cylinder.

Definition at line 1381 of file shape_marker.cpp.

void ShapeMarker::hideSymAxis ( int  flag_untick)

Remove the Symmetry axis of a cylinder param[in] flag_untick a flag which shows whether Enable Movement is unticked.

Definition at line 1283 of file shape_marker.cpp.

TPPLPoint ShapeMarker::msgToPoint2D ( const pcl::PointXYZ &  point)

Create menu entries for each shape.

Parameters:
[in]point3D point to be transformed
Returns:
returns transformed 2D TPPLPoint

Definition at line 630 of file shape_marker.cpp.

Resets all controls activated for Interactive marker.

Definition at line 295 of file shape_marker.cpp.

sets the global variable arrows_ to false

Parameters:
[out]globalvariable arrows_

Definition at line 134 of file shape_marker.cpp.

sets the global variable deleted_ to false

Parameters:
[out]globalvariable deleted_

Definition at line 143 of file shape_marker.cpp.

void ShapeMarker::triangle_refinement ( list< TPPLPoly > &  i_list,
list< TPPLPoly > &  o_list 
)

subdivides a list of triangles.

Based on a threshold in x-Direction, triangles are subdivided.

Parameters:
[in]i_listInput triangle list.
[out]o_listOutput triangle list.
Returns:
nothing

Definition at line 84 of file shape_marker.cpp.


Member Data Documentation

bool ShapeMarker::arrows_ [protected]

Definition at line 334 of file shape_marker.h.

visualization_msgs::MarkerArray ShapeMarker::contour_marker_ [protected]

Definition at line 306 of file shape_marker.h.

visualization_msgs::MarkerArray ShapeMarker::delete_contour_marker_ [protected]

Definition at line 307 of file shape_marker.h.

bool ShapeMarker::deleted_ [protected]

Definition at line 335 of file shape_marker.h.

visualization_msgs::InteractiveMarker ShapeMarker::deleted_imarker_ [protected]

Definition at line 304 of file shape_marker.h.

std::vector<unsigned int>& ShapeMarker::deleted_markers_indices_ [protected]

Definition at line 330 of file shape_marker.h.

unsigned int ShapeMarker::id_ [protected]

Definition at line 327 of file shape_marker.h.

visualization_msgs::InteractiveMarkerControl ShapeMarker::im_ctrl [protected]

Definition at line 313 of file shape_marker.h.

Definition at line 315 of file shape_marker.h.

visualization_msgs::InteractiveMarker ShapeMarker::imarker_ [protected]

Definition at line 303 of file shape_marker.h.

std::vector<unsigned int>& ShapeMarker::interacted_shapes_ [protected]

Definition at line 329 of file shape_marker.h.

visualization_msgs::Marker ShapeMarker::marker [protected]

Definition at line 305 of file shape_marker.h.

visualization_msgs::InteractiveMarker ShapeMarker::marker_ [protected]

Definition at line 296 of file shape_marker.h.

Definition at line 319 of file shape_marker.h.

std::vector<unsigned int>& ShapeMarker::moved_shapes_indices_ [protected]

Definition at line 328 of file shape_marker.h.

cob_3d_mapping_msgs::Shape ShapeMarker::shape_ [protected]

Definition at line 316 of file shape_marker.h.

Eigen::Affine3f ShapeMarker::transformation_ [protected]

Definition at line 321 of file shape_marker.h.

Eigen::Affine3f ShapeMarker::transformation_inv_ [protected]

Definition at line 322 of file shape_marker.h.


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


cob_3d_visualization
Author(s): Georg Arbeiter
autogenerated on Wed Aug 26 2015 11:04:11