class CommControllerSingleton

Overview

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

#include <nrp_communication_controller.h>

class CommControllerSingleton {
public:
    // construction

    CommControllerSingleton(const CommControllerSingleton& other);
    CommControllerSingleton(CommControllerSingleton&& other);

    // methods

    CommControllerSingleton& operator = (const CommControllerSingleton& other);
    CommControllerSingleton&& operator = (CommControllerSingleton&& other);
    NRPGazeboCommunicationController& engineCommController();
    static CommControllerSingleton& getInstance();
    static CommControllerSingleton& resetInstance(NRPGazeboCommunicationController* engineController);
};

Detailed Documentation

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

Construction

CommControllerSingleton(const CommControllerSingleton& other)

Delete for singleton.

CommControllerSingleton(CommControllerSingleton&& other)

Delete for singleton.

Methods

CommControllerSingleton& operator = (const CommControllerSingleton& other)

Delete for singleton.

CommControllerSingleton&& operator = (CommControllerSingleton&& other)

Delete for singleton.

static CommControllerSingleton& getInstance()

Get singleton instance.

Returns:

Gets instance of CommControllerSingleton

static CommControllerSingleton& resetInstance(NRPGazeboCommunicationController* engineController)

Reset.