opensurgsim
Public Member Functions | Public Attributes | List of all members
SurgSim::Devices::ReplayPoseScaffold::DeviceData Struct Reference

Public Member Functions

 DeviceData (ReplayPoseDevice *device)
 Constructor. More...
 
Math::RigidTransform3d getPose ()
 Retrieve the pose for the given time stamp "m_timestamp". More...
 

Public Attributes

ReplayPoseDevice *const deviceObject
 Device object managed by this scaffold.
 
Framework::Timer m_timer
 Timer to keep track of the time stamp and keep the replay in sync with the recording.
 
double m_timestamp
 Time stamp for the device (which time stamp are we reproducing?)
 
std::vector< std::pair< double, Math::RigidTransform3d > > m_motion
 Series of poses through time loaded from the input file.
 
size_t m_index
 Index of the latest pose used.
 
bool m_fileLoaded
 Valid file loaded successfully.
 

Constructor & Destructor Documentation

§ DeviceData()

SurgSim::Devices::ReplayPoseScaffold::DeviceData::DeviceData ( ReplayPoseDevice device)
inlineexplicit

Constructor.

Parameters
deviceDevice to be managed by this scaffold

Member Function Documentation

§ getPose()

Math::RigidTransform3d SurgSim::Devices::ReplayPoseScaffold::DeviceData::getPose ( )
inline

Retrieve the pose for the given time stamp "m_timestamp".

Returns
The requested pose, Identity if none could be loaded

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