Public Member Functions | Private Attributes
SamplingVisualizer Class Reference

SamplingVisualizer visualizes individual steps of importance sampling. This can be used to illustrate the different sampling methods. More...

#include <sampling_visualizer.h>

List of all members.

Public Member Functions

void addCylinders (const std::vector< CylindricalShell > &shells, void *viewer_void, std::string handle_index="", double r=0.0, double g=1.0, double b=1.0)
pcl::ModelCoefficients createCylinder (Eigen::Vector3d pt_on_axis, Eigen::Vector3d axis_direction, double radius, double extent)
void createViewer (PointCloud::ConstPtr cloud, std::vector< CylindricalShell > shells, Eigen::MatrixXd samples, double target_radius)
boost::shared_ptr
< pcl::visualization::PCLVisualizer > 
getViewer ()

Private Attributes

boost::shared_ptr
< pcl::visualization::PCLVisualizer > 
viewer

Detailed Description

SamplingVisualizer visualizes individual steps of importance sampling. This can be used to illustrate the different sampling methods.

Author:
Andreas ten Pas

Definition at line 46 of file sampling_visualizer.h.


Member Function Documentation

void SamplingVisualizer::addCylinders ( const std::vector< CylindricalShell > &  shells,
void *  viewer_void,
std::string  handle_index = "",
double  r = 0.0,
double  g = 1.0,
double  b = 1.0 
)

Add a set of cylindrical shells to a given pcl-viewer. The color for all shells is defined by the three optional parameters.

Parameters:
shellsthe set of cylindrical shells to be added
viewer_voidthe pcl-viewer

Definition at line 18 of file sampling_visualizer.cpp.

pcl::ModelCoefficients SamplingVisualizer::createCylinder ( Eigen::Vector3d  pt_on_axis,
Eigen::Vector3d  axis_direction,
double  radius,
double  extent 
)

Create a visual cylinder from a point on its axis, its axis, its radius, and its extent.

Parameters:
pt_on_axisa point on the cylinder's axis
axis_directionthe vector that represents the cylinder's axis
radiusthe radius of the cylinder
extentthe extent of the cylinder

Definition at line 3 of file sampling_visualizer.cpp.

void SamplingVisualizer::createViewer ( PointCloud::ConstPtr  cloud,
std::vector< CylindricalShell shells,
Eigen::MatrixXd  samples,
double  target_radius 
)

Create a pcl-viewer that shows a point cloud, a set of cylindrical shells, and a set of samples.

Parameters:
cloudthe cloud to be shown
shellsthe set of cylindrical shells to be shown
samplesthe set of samples to be shown
target_radiusthe target radius

Definition at line 38 of file sampling_visualizer.cpp.

boost::shared_ptr<pcl::visualization::PCLVisualizer> SamplingVisualizer::getViewer ( ) [inline]

Returns the pcl-viewer.

Definition at line 84 of file sampling_visualizer.h.


Member Data Documentation

boost::shared_ptr<pcl::visualization::PCLVisualizer> SamplingVisualizer::viewer [private]

Definition at line 88 of file sampling_visualizer.h.


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


handle_detector
Author(s):
autogenerated on Thu Jun 6 2019 17:36:23