Tesseract 0.28.4
Loading...
Searching...
No Matches
tesseract::visualization::VisualizationLoader Class Reference

This is used to dynamically load tesseract visualizer. More...

#include <visualization_loader.h>

Inheritance diagram for tesseract::visualization::VisualizationLoader:

Public Member Functions

 VisualizationLoader ()
 This will attempt to load the tesseract_ignition visualizer provided by snap package.
std::shared_ptr< Visualization > get (std::string plugin_name="", const YAML::Node &config=YAML::Node()) const
 Get this loader's visualization object for a plugin.

Detailed Description

This is used to dynamically load tesseract visualizer.

Member Function Documentation

◆ get()

std::shared_ptr< Visualization > tesseract::visualization::VisualizationLoader::get ( std::string plugin_name = "",
const YAML::Node & config = YAML::Node() ) const

Get this loader's visualization object for a plugin.

The object is created by the first call and returned by later ones, so each loader owns one instance per plugin. Use another loader for an independent instance. The object keeps its plugin library loaded, so it may outlive this loader.

Parameters
plugin_nameThe plugin name, if empty it tries to load default plugin
configThe plugin's configuration, used by the call that creates the object
Returns
Returns nullptr if failed