Public Member Functions | Public Attributes
astra_wrapper::AstraDeviceListener Class Reference
Inheritance diagram for astra_wrapper::AstraDeviceListener:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 AstraDeviceListener ()
boost::shared_ptr< std::vector
< AstraDeviceInfo > > 
getConnectedDeviceInfos ()
boost::shared_ptr< std::vector
< std::string > > 
getConnectedDeviceURIs ()
std::size_t getNumOfConnectedDevices ()
virtual void onDeviceConnected (const openni::DeviceInfo *pInfo)
virtual void onDeviceDisconnected (const openni::DeviceInfo *pInfo)
virtual void onDeviceStateChanged (const openni::DeviceInfo *pInfo, openni::DeviceState state)
 ~AstraDeviceListener ()

Public Attributes

boost::mutex device_mutex_
DeviceSet device_set_

Detailed Description

Definition at line 61 of file astra_device_manager.cpp.


Constructor & Destructor Documentation

Definition at line 66 of file astra_device_manager.cpp.

Definition at line 85 of file astra_device_manager.cpp.


Member Function Documentation

Definition at line 151 of file astra_device_manager.cpp.

boost::shared_ptr<std::vector<std::string> > astra_wrapper::AstraDeviceListener::getConnectedDeviceURIs ( ) [inline]

Definition at line 134 of file astra_device_manager.cpp.

Definition at line 168 of file astra_device_manager.cpp.

virtual void astra_wrapper::AstraDeviceListener::onDeviceConnected ( const openni::DeviceInfo ) [inline, virtual]

Callback function for the onDeviceConnected event. This function will be called whenever this event occurs. When this happens, a pointer to the DeviceInfo object for the newly connected device will be supplied. Note that once a device is removed, if it was opened by a Device object, that object can no longer be used to access the device, even if it was reconnected. Once a device was reconnected, Device::open() should be called again in order to use this device.

If you wish to open the new device as it is connected, simply query the provided DeviceInfo object to obtain the URI of the device, and pass this URI to the Device.Open() function.

Implements openni::OpenNI::DeviceConnectedListener.

Definition at line 110 of file astra_device_manager.cpp.

Callback function for the onDeviceDisconnected event. This function will be called whenever this event occurs. When this happens, a pointer to the DeviceInfo object for the newly disconnected device will be supplied. Note that once a device is removed, if it was opened by a Device object, that object can no longer be used to access the device, even if it was reconnected. Once a device was reconnected, Device::open() should be called again in order to use this device.

Implements openni::OpenNI::DeviceDisconnectedListener.

Definition at line 124 of file astra_device_manager.cpp.

Callback function for the onDeviceStateChanged event. This function will be called whenever this event occurs. When this happens, a pointer to a DeviceInfo object for the affected device will be supplied, as well as the new DeviceState value of that device.

Implements openni::OpenNI::DeviceStateChangedListener.

Definition at line 92 of file astra_device_manager.cpp.


Member Data Documentation

Definition at line 175 of file astra_device_manager.cpp.

Definition at line 176 of file astra_device_manager.cpp.


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


astra_camera
Author(s): Tim Liu
autogenerated on Wed Jul 10 2019 03:18:55