A visualization for a surface. More...
#include <visualization.h>
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< SurfaceObjects > | surfaces_ |
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.
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.
void surface_perception::SurfaceViz::Hide | ( | ) |
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.
void surface_perception::SurfaceViz::Show | ( | ) |
Publishes the markers to the marker topic.
Definition at line 24 of file visualization.cpp.
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.
std::vector<SurfaceObjects> surface_perception::SurfaceViz::surfaces_ [private] |
Definition at line 43 of file visualization.h.