NRP Core  1.4.1
CommControllerSingleton Class Reference

Singleton class which stores a pointer to the NRPGazeboCommunicationController being used to manage the simulation. More...

#include <nrp_communication_controller.h>

Public Member Functions

 CommControllerSingleton (const CommControllerSingleton &other)=delete
 Delete for singleton. More...
 
CommControllerSingletonoperator= (const CommControllerSingleton &other)=delete
 Delete for singleton. More...
 
 CommControllerSingleton (CommControllerSingleton &&other)=delete
 Delete for singleton. More...
 
CommControllerSingleton && operator= (CommControllerSingleton &&other)=delete
 Delete for singleton. More...
 
NRPGazeboCommunicationControllerengineCommController ()
 

Static Public Member Functions

static CommControllerSingletongetInstance ()
 Get singleton instance. More...
 
static CommControllerSingletonresetInstance (NRPGazeboCommunicationController *engineController)
 Reset. More...
 

Detailed Description

Singleton class which stores a pointer to the NRPGazeboCommunicationController being used to manage the simulation.

so other gazebo plugins can invoke it to register datapacks

Constructor & Destructor Documentation

◆ CommControllerSingleton() [1/2]

CommControllerSingleton::CommControllerSingleton ( const CommControllerSingleton other)
delete

Delete for singleton.

◆ CommControllerSingleton() [2/2]

CommControllerSingleton::CommControllerSingleton ( CommControllerSingleton &&  other)
delete

Delete for singleton.

Member Function Documentation

◆ engineCommController()

NRPGazeboCommunicationController& CommControllerSingleton::engineCommController ( )
inline

◆ getInstance()

CommControllerSingleton & CommControllerSingleton::getInstance ( )
static

Get singleton instance.

Returns
Gets instance of CommControllerSingleton

◆ operator=() [1/2]

CommControllerSingleton&& CommControllerSingleton::operator= ( CommControllerSingleton &&  other)
delete

Delete for singleton.

◆ operator=() [2/2]

CommControllerSingleton& CommControllerSingleton::operator= ( const CommControllerSingleton other)
delete

Delete for singleton.

◆ resetInstance()

CommControllerSingleton & CommControllerSingleton::resetInstance ( NRPGazeboCommunicationController engineController)
static

Reset.


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