TOBI SignalServer  0.1
tobiss::KinectShmReader Class Reference
+ Inheritance diagram for tobiss::KinectShmReader:
+ Collaboration diagram for tobiss::KinectShmReader:

Data Structures

struct  shared_memory_struct

Public Member Functions

 KinectShmReader (ticpp::Iterator< ticpp::Element > hw)
 Constructor.
virtual ~KinectShmReader ()
 Destructor.
virtual SampleBlock< double > getAsyncData ()
 Method to achieve asynchronous data acquisition (method is non-blocking).
virtual void run ()
 Method to start data acquisition.
virtual void stop ()
 Method to stop data acquisition.

Private Member Functions

virtual void setDeviceSettings (ticpp::Iterator< ticpp::Element >const &father)
 Set configuration listed in the <device_settings> section in the XML file.
virtual void setChannelSettings (ticpp::Iterator< ticpp::Element >const &father)
 Set configuration listed in the <channel_settings> section in the XML file.
virtual SampleBlock< double > getSyncData ()
 Method to achieve synchronous data acquisition.

Private Attributes

boost::uint32_t old_frame_id_
boost::posix_time::ptime last_change_
bool connected_
bool event_reset_needed_
std::vector< double > KinectShmReader_data_
SampleBlock< double > data_
 Data object representing the last available samples from the SineGenerator.
SampleBlock< double > empty_block_
boost::interprocess::shared_memory_object * shared_memory_obj_
boost::interprocess::mapped_region * region_
struct
tobiss::KinectShmReader::shared_memory_struct
shared_memory_

Static Private Attributes

static const long TIMEOUT = 100
static const char * SHARED_MEMORY_NAME = "MotionSensingSharedMemory"
static const
HWThreadBuilderTemplateRegistratorWithoutIOService
< KinectShmReader
FACTORY_REGISTRATOR_

Detailed Description

Definition at line 63 of file kinect.h.


The documentation for this class was generated from the following files:
All Data Structures Files Functions Variables