Flat Object Grasping Library (FOG)  0.2.1
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
fog::RVisualizer Class Reference

Visualizes in RViz FOG models. In order to see the models, add in your RViz configuration a PointCloud2 panel with the point cloud topic name and a MarkerArray with the rviz_topic that you initialize the class. More...

#include <fog/rvisualizer.h>

+ Inheritance diagram for fog::RVisualizer:
+ Collaboration diagram for fog::RVisualizer:

Public Member Functions

 RVisualizer (const std::string &the_point_cloud_topic, const std::string &rviz_topic, const unsigned int nr_point_clouds=1)
 The default constructor. More...
 
 ~RVisualizer ()
 
void visualizeFogObject (const Object &object)
 Visualizes a FOG object. More...
 
void visualizeFogSurface (const Surface &surface)
 Visualizes a FOG surface. More...
 
void visualizeFogObjectSurfaceCombination (const ObjectSurfaceCombination &combination)
 Visualizes a FOG object-surface combination. More...
 
void visualizeInitialGraspState (const InitialGraspState &igs, double length=0.01, double width=0.001)
 Visualizes a FOG IGS. More...
 
void visualizeInitialGraspStates (const std::vector< InitialGraspState > &igs)
 
void visualizePointCloud (const pcl::PointCloud< pcl::PointXYZ > &point_cloud, unsigned int index=0)
 Visualizes a point cloud. More...
 

Private Attributes

std::vector< ros::Publisher > point_cloud_publisher
 
std::string point_cloud_topic
 

Detailed Description

Visualizes in RViz FOG models. In order to see the models, add in your RViz configuration a PointCloud2 panel with the point cloud topic name and a MarkerArray with the rviz_topic that you initialize the class.

Constructor & Destructor Documentation

fog::RVisualizer::RVisualizer ( const std::string &  the_point_cloud_topic,
const std::string &  rviz_topic,
const unsigned int  nr_point_clouds = 1 
)

The default constructor.

Parameters
the_point_cloud_topicThe name of the topic that point cloud will be published.
rviz_topicThe name of the topic for everythin else shown in a MarkerArray panel.
fog::RVisualizer::~RVisualizer ( )

Member Function Documentation

void fog::RVisualizer::visualizeFogObject ( const Object object)

Visualizes a FOG object.

Parameters
objectThe FOG object.

+ Here is the call graph for this function:

void fog::RVisualizer::visualizeFogObjectSurfaceCombination ( const ObjectSurfaceCombination combination)

Visualizes a FOG object-surface combination.

Parameters
combinationThe FOG object-surface combination.

+ Here is the call graph for this function:

void fog::RVisualizer::visualizeFogSurface ( const Surface surface)

Visualizes a FOG surface.

Parameters
surfaceThe FOG surface.
void fog::RVisualizer::visualizeInitialGraspState ( const InitialGraspState igs,
double  length = 0.01,
double  width = 0.001 
)

Visualizes a FOG IGS.

Parameters
igsThe FOG IGS.
void fog::RVisualizer::visualizeInitialGraspStates ( const std::vector< InitialGraspState > &  igs)

+ Here is the call graph for this function:

void fog::RVisualizer::visualizePointCloud ( const pcl::PointCloud< pcl::PointXYZ > &  point_cloud,
unsigned int  index = 0 
)

Visualizes a point cloud.

Parameters
point_cloudThe point cloud.

Member Data Documentation

std::vector<ros::Publisher> fog::RVisualizer::point_cloud_publisher
private
std::string fog::RVisualizer::point_cloud_topic
private