Public Member Functions | Private Attributes | List of all members
controller_manager::ControllerLoader< T > Class Template Reference

Pluginlib-Based Controller Loader. More...

#include <controller_loader.h>

Inheritance diagram for controller_manager::ControllerLoader< T >:
Inheritance graph
[legend]

Public Member Functions

 ControllerLoader (const std::string &package, const std::string &base_class)
 
controller_interface::ControllerBaseSharedPtr createInstance (const std::string &lookup_name) override
 
std::vector< std::string > getDeclaredClasses () override
 
void reload () override
 
- Public Member Functions inherited from controller_manager::ControllerLoaderInterface
 ControllerLoaderInterface (const std::string &name)
 
const std::string & getName ()
 
virtual ~ControllerLoaderInterface ()=default
 

Private Attributes

std::string base_class_
 
std::unique_ptr< pluginlib::ClassLoader< T > > controller_loader_
 
std::string package_
 

Detailed Description

template<class T>
class controller_manager::ControllerLoader< T >

Pluginlib-Based Controller Loader.

This default controller loader uses pluginlib to load and then instantiate controller libraries.

Template Parameters
TThe base class of the controller types to be loaded

Definition at line 48 of file controller_loader.h.

Constructor & Destructor Documentation

◆ ControllerLoader()

template<class T >
controller_manager::ControllerLoader< T >::ControllerLoader ( const std::string &  package,
const std::string &  base_class 
)
inline

Definition at line 51 of file controller_loader.h.

Member Function Documentation

◆ createInstance()

template<class T >
controller_interface::ControllerBaseSharedPtr controller_manager::ControllerLoader< T >::createInstance ( const std::string &  lookup_name)
inlineoverridevirtual

Implements controller_manager::ControllerLoaderInterface.

Definition at line 59 of file controller_loader.h.

◆ getDeclaredClasses()

template<class T >
std::vector<std::string> controller_manager::ControllerLoader< T >::getDeclaredClasses ( )
inlineoverridevirtual

Implements controller_manager::ControllerLoaderInterface.

Definition at line 64 of file controller_loader.h.

◆ reload()

template<class T >
void controller_manager::ControllerLoader< T >::reload ( )
inlineoverridevirtual

Implements controller_manager::ControllerLoaderInterface.

Definition at line 69 of file controller_loader.h.

Member Data Documentation

◆ base_class_

template<class T >
std::string controller_manager::ControllerLoader< T >::base_class_
private

Definition at line 76 of file controller_loader.h.

◆ controller_loader_

template<class T >
std::unique_ptr<pluginlib::ClassLoader<T> > controller_manager::ControllerLoader< T >::controller_loader_
private

Definition at line 77 of file controller_loader.h.

◆ package_

template<class T >
std::string controller_manager::ControllerLoader< T >::package_
private

Definition at line 75 of file controller_loader.h.


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


controller_manager
Author(s): Wim Meeussen, Mathias Lüdtke
autogenerated on Mon Feb 28 2022 23:30:17