#include <SurgSim/Devices/ReplayPoseDevice/ReplayPoseScaffold.h>
|
bool | doInitialize () override |
|
bool | doStartUp () override |
|
bool | doUpdate (double dt) override |
| Implementation of actual work function for this thread, this has a default implementation to handle destruction better, as it could be called while the thread is under destruction, if left unimplemented this would trigger a call to a pure virtual function. More...
|
|
bool | initialize () |
| Trigger the initialization of this object, this will be called before all other threads doStartup() are called. More...
|
|
bool | startUp () |
| Trigger the startup of this object, this will be called after all other threads doInit() was called the thread will only enter the run loop triggering upated() if all threads doInit() and doStartup() returned true. More...
|
|
bool | waitForBarrier (bool success) |
|
virtual bool | executeInitialization () |
|
§ ReplayPoseScaffold()
SurgSim::Devices::ReplayPoseScaffold::ReplayPoseScaffold |
( |
| ) |
|
§ ~ReplayPoseScaffold()
SurgSim::Devices::ReplayPoseScaffold::~ReplayPoseScaffold |
( |
| ) |
|
§ buildDeviceInputData()
Builds the data layout for the application input (i.e. device output).
§ doInitialize()
bool SurgSim::Devices::ReplayPoseScaffold::doInitialize |
( |
| ) |
|
|
overrideprotectedvirtual |
§ doStartUp()
bool SurgSim::Devices::ReplayPoseScaffold::doStartUp |
( |
| ) |
|
|
overrideprotectedvirtual |
§ doUpdate()
bool SurgSim::Devices::ReplayPoseScaffold::doUpdate |
( |
double |
dt | ) |
|
|
overrideprotectedvirtual |
Implementation of actual work function for this thread, this has a default implementation to handle destruction better, as it could be called while the thread is under destruction, if left unimplemented this would trigger a call to a pure virtual function.
- Returns
- false when the thread is done, this will stop execution
Reimplemented from SurgSim::Framework::BasicThread.
§ getOrCreateSharedInstance()
std::shared_ptr< ReplayPoseScaffold > SurgSim::Devices::ReplayPoseScaffold::getOrCreateSharedInstance |
( |
| ) |
|
|
static |
Gets or creates the scaffold shared by all RawMultiAxisDevice instances.
The scaffold is managed using a SharedInstance object, so it will be destroyed when all devices are released.
- Returns
- the scaffold object.
§ registerDevice()
bool SurgSim::Devices::ReplayPoseScaffold::registerDevice |
( |
ReplayPoseDevice * |
device | ) |
|
|
private |
Registers the specified device object.
If successful, the device object will become connected to an hardware device.
- Parameters
-
device | The device object to be used, which should have a unique name. |
- Returns
- True if the initialization succeeds, false if it fails.
§ unregisterDevice()
bool SurgSim::Devices::ReplayPoseScaffold::unregisterDevice |
( |
| ) |
|
|
private |
Unregisters the specified device object.
The corresponding controller will become unused, and can be re-registered later.
- Returns
- True on success, false on failure.
§ updateDevice()
Updates the device information for a single device.
- Parameters
-
info | The information to update the device from |
- Returns
- True on success.
§ ReplayPoseDevice
§ m_device
std::unique_ptr<DeviceData> SurgSim::Devices::ReplayPoseScaffold::m_device |
|
private |
The ReplayPose device managed by this scaffold.
§ m_deviceLock
boost::mutex SurgSim::Devices::ReplayPoseScaffold::m_deviceLock |
|
private |
The ReplayPose device locking mechanism.
§ m_logger
Logger used by the scaffold and all devices.
The documentation for this class was generated from the following files: