Public Member Functions | Private Attributes
surface_perception::SurfaceViz Class Reference

A visualization for a surface. More...

#include <visualization.h>

List of all members.

Public Member Functions

void Hide ()
 Deletes the markers that were most recently published with Show().
void set_surface_objects (const std::vector< SurfaceObjects > &surfaces)
 Sets the SurfaceObjects to use.
void Show ()
 Publishes the markers to the marker topic.
 SurfaceViz (const ros::Publisher &marker_pub)
 Construct the visualization with the given publisher.

Private Attributes

ros::Publisher marker_pub_
std::vector
< visualization_msgs::Marker > 
markers_
std::vector< SurfaceObjectssurfaces_

Detailed Description

A visualization for a surface.

Publishes markers to a topic of type visualization_msgs/Marker. The markers show the bounding boxes around the surface and the objects. The point clouds are not visualized.

Example:

   SurfaceViz viz(marker_pub);
   viz.Hide();
   viz.set_surface_objects(surfaces);
   viz.Show();

Definition at line 27 of file visualization.h.


Constructor & Destructor Documentation

surface_perception::SurfaceViz::SurfaceViz ( const ros::Publisher marker_pub) [explicit]

Construct the visualization with the given publisher.

Definition at line 16 of file visualization.cpp.


Member Function Documentation

Deletes the markers that were most recently published with Show().

Definition at line 33 of file visualization.cpp.

void surface_perception::SurfaceViz::set_surface_objects ( const std::vector< SurfaceObjects > &  surfaces)

Sets the SurfaceObjects to use.

Definition at line 19 of file visualization.cpp.

Publishes the markers to the marker topic.

Definition at line 24 of file visualization.cpp.


Member Data Documentation

Definition at line 42 of file visualization.h.

std::vector<visualization_msgs::Marker> surface_perception::SurfaceViz::markers_ [private]

Definition at line 44 of file visualization.h.

Definition at line 43 of file visualization.h.


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


surface_perception
Author(s): Yu-Tang Peng
autogenerated on Thu Jun 6 2019 17:36:21