Dealing with the Kinect status
The Kinect sensor needs an external power supply to get the camera, IR sensor, and motor to work properly. Even after following all the standard practices and measures, your system might not detect any of the components of Kinect if there is any problem with your device. Other scenarios that may occur, and that are indeterministic in nature, could be the power suddenly going off while your application is running, , some error occurring in the device, or the device getting unplugged. All the earlier cases can cause your application to crash or throw an unknown exception.
It is of paramount importance to track the device status while your sensor is used by the application. The KinectSensor
object has a property named Status
, which indicates the current state of the devices. The property type is of the KinectStatus
enumeration.
The following table has listed the different status values with their descriptions:
Status |
Description |
---|---|
|
This indicates that... |