Public Member Functions | Public Attributes | Private Member Functions | List of all members
SurgSim::Devices::NovintScaffold::StateData Struct Reference

Public Member Functions

 StateData ()
 Initialize the state. More...
 

Public Attributes

bool isApiInitialized
 True if the API has been initialized (and not finalized). More...
 
std::unique_ptr< Callbackcallback
 Wrapper for the haptic loop callback handle. More...
 
std::list< std::unique_ptr< DeviceData > > registeredDevices
 The registered devices. More...
 
std::unordered_map< std::string, std::shared_ptr< Handle > > serialToHandle
 The map from serial number to Handle for all devices that were available when the SDK was initialized. More...
 
std::list< std::shared_ptr< Handle > > unregisteredHandles
 List of devices that have been unregistered and should have their forces, torques, and gravity compensation zeroed in the next update. More...
 
std::map< std::string, std::string > nameToSerial
 The map from name to serial number for all devices. More...
 
boost::mutex mutex
 The mutex that protects the list of registered devices. More...
 
Framework::Clock::time_point initializationTime
 Time of the initialization of the latest handle. More...
 
Framework::Timer timer
 Timer to measure update rate. More...
 
std::shared_ptr< SurgSim::Framework::Loggerlogger
 Logger used by the scaffold and all devices. More...
 

Private Member Functions

 StateData (const StateData &)
 
StateDataoperator= (const StateData &)
 

Constructor & Destructor Documentation

◆ StateData() [1/2]

SurgSim::Devices::NovintScaffold::StateData::StateData ( )
inline

Initialize the state.

◆ StateData() [2/2]

SurgSim::Devices::NovintScaffold::StateData::StateData ( const StateData )
private

Member Function Documentation

◆ operator=()

StateData& SurgSim::Devices::NovintScaffold::StateData::operator= ( const StateData )
private

Member Data Documentation

◆ callback

std::unique_ptr<Callback> SurgSim::Devices::NovintScaffold::StateData::callback

Wrapper for the haptic loop callback handle.

◆ initializationTime

Framework::Clock::time_point SurgSim::Devices::NovintScaffold::StateData::initializationTime

Time of the initialization of the latest handle.

◆ isApiInitialized

bool SurgSim::Devices::NovintScaffold::StateData::isApiInitialized

True if the API has been initialized (and not finalized).

◆ logger

std::shared_ptr<SurgSim::Framework::Logger> SurgSim::Devices::NovintScaffold::StateData::logger

Logger used by the scaffold and all devices.

◆ mutex

boost::mutex SurgSim::Devices::NovintScaffold::StateData::mutex

The mutex that protects the list of registered devices.

◆ nameToSerial

std::map<std::string, std::string> SurgSim::Devices::NovintScaffold::StateData::nameToSerial

The map from name to serial number for all devices.

◆ registeredDevices

std::list<std::unique_ptr<DeviceData> > SurgSim::Devices::NovintScaffold::StateData::registeredDevices

The registered devices.

◆ serialToHandle

std::unordered_map<std::string, std::shared_ptr<Handle> > SurgSim::Devices::NovintScaffold::StateData::serialToHandle

The map from serial number to Handle for all devices that were available when the SDK was initialized.

◆ timer

Framework::Timer SurgSim::Devices::NovintScaffold::StateData::timer

Timer to measure update rate.

◆ unregisteredHandles

std::list<std::shared_ptr<Handle> > SurgSim::Devices::NovintScaffold::StateData::unregisteredHandles

List of devices that have been unregistered and should have their forces, torques, and gravity compensation zeroed in the next update.


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