#include <Kinect.h>
Classes | |
| struct | Point4 |
Public Types | |
| enum | SkeletonTrackingState { kNotTracked, kPositionOnly, kTracked } |
| enum | SkeletonQuality { kClippedRight = 1, kClippedLeft = 2, kClippedTop = 4, kClippedBottom = 8 } |
Public Member Functions | |
| int | GetNumberOfPlayers () |
| Point4 | GetFloorClipPlane () |
| Point4 | GetGravityNormal () |
| Skeleton | GetSkeleton (int skeletonIndex=1) |
| Point4 | GetPosition (int skeletonIndex=1) |
| uint32_t | GetQuality (int skeletonIndex=1) |
| SkeletonTrackingState | GetTrackingState (int skeletonIndex=1) |
Public Member Functions inherited from SensorBase | |
| SensorBase () | |
| virtual | ~SensorBase () |
Public Member Functions inherited from ErrorBase | |
| virtual Error & | GetError () |
| Retrieve the current error. Get the current error information associated with this sensor. | |
| virtual const Error & | GetError () const |
| virtual void | SetErrnoError (const char *contextMessage, const char *filename, const char *function, uint32_t lineNumber) const |
| Set error information associated with a C library call that set an error to the "errno" global variable. More... | |
| virtual void | SetImaqError (int success, const char *contextMessage, const char *filename, const char *function, uint32_t lineNumber) const |
| Set the current error information associated from the nivision Imaq API. More... | |
| virtual void | SetError (Error::Code code, const char *contextMessage, const char *filename, const char *function, uint32_t lineNumber) const |
| Set the current error information associated with this sensor. More... | |
| virtual void | SetWPIError (const char *errorMessage, const char *contextMessage, const char *filename, const char *function, uint32_t lineNumber) const |
| Set the current error information associated with this sensor. More... | |
| virtual void | CloneError (ErrorBase *rhs) const |
| virtual void | ClearError () const |
| Clear the current error information associated with this sensor. | |
| virtual bool | StatusIsFatal () const |
| Check if the current error code represents a fatal error. More... | |
Static Public Member Functions | |
| static Kinect * | GetInstance () |
Static Public Member Functions inherited from SensorBase | |
| static void | DeleteSingletons () |
| static uint32_t | GetDefaultAnalogModule () |
| static uint32_t | GetDefaultDigitalModule () |
| static uint32_t | GetDefaultSolenoidModule () |
| static bool | CheckAnalogModule (uint8_t moduleNumber) |
| static bool | CheckDigitalModule (uint8_t moduleNumber) |
| static bool | CheckPWMModule (uint8_t moduleNumber) |
| static bool | CheckRelayModule (uint8_t moduleNumber) |
| static bool | CheckSolenoidModule (uint8_t moduleNumber) |
| static bool | CheckDigitalChannel (uint32_t channel) |
| static bool | CheckRelayChannel (uint32_t channel) |
| static bool | CheckPWMChannel (uint32_t channel) |
| static bool | CheckAnalogChannel (uint32_t channel) |
| static bool | CheckSolenoidChannel (uint32_t channel) |
Static Public Member Functions inherited from ErrorBase | |
| static void | SetGlobalError (Error::Code code, const char *contextMessage, const char *filename, const char *function, uint32_t lineNumber) |
| static void | SetGlobalWPIError (const char *errorMessage, const char *contextMessage, const char *filename, const char *function, uint32_t lineNumber) |
| static Error & | GetGlobalError () |
Additional Inherited Members | |
Static Public Attributes inherited from SensorBase | |
| static const uint32_t | kSystemClockTicksPerMicrosecond = 40 |
| static const uint32_t | kDigitalChannels = 14 |
| static const uint32_t | kAnalogChannels = 8 |
| static const uint32_t | kAnalogModules = 2 |
| static const uint32_t | kDigitalModules = 2 |
| static const uint32_t | kSolenoidChannels = 8 |
| static const uint32_t | kSolenoidModules = 2 |
| static const uint32_t | kPwmChannels = 10 |
| static const uint32_t | kRelayChannels = 8 |
| static const uint32_t | kChassisSlots = 8 |
Protected Member Functions inherited from SensorBase | |
| void | AddToSingletonList () |
Protected Member Functions inherited from ErrorBase | |
| ErrorBase () | |
| Initialize the instance status to 0 for now. | |
Protected Attributes inherited from ErrorBase | |
| Error | m_error |
Static Protected Attributes inherited from ErrorBase | |
| static SEM_ID | _globalErrorMutex = semMCreate(SEM_Q_PRIORITY | SEM_DELETE_SAFE | SEM_INVERSION_SAFE) |
| static Error | _globalError |
Handles raw data input from the FRC Kinect Server when used with a Kinect device connected to the Driver Station. Each time a value is requested the most recent value is returned. See Getting Started with Microsoft Kinect for FRC and the Kinect for Windows SDK API reference for more information
| Kinect::Point4 Kinect::GetFloorClipPlane | ( | ) |
Get the floor clip plane as defined in the Kinect SDK
| Kinect::Point4 Kinect::GetGravityNormal | ( | ) |
Get the gravity normal from the kinect as defined in the Kinect SDK
|
static |
| int Kinect::GetNumberOfPlayers | ( | ) |
Get the number of tracked players on the Kinect
| Kinect::Point4 Kinect::GetPosition | ( | int | skeletonIndex = 1 | ) |
Get the current position of the skeleton
| skeletonIndex | the skeleton to read from |
| uint32_t Kinect::GetQuality | ( | int | skeletonIndex = 1 | ) |
Get the quality of the skeleton. Quality masks are defined in the SkeletonQuality enum
| skeletonIndex | the skeleton to read from |
| Skeleton Kinect::GetSkeleton | ( | int | skeletonIndex = 1 | ) |
Get the skeleton data Returns the detected skeleton data from the kinect as defined in the Kinect SDK
| skeletonIndex | Which of (potentially 2) skeletons to return. This is ignored in this implementation and only a single skeleton is supported for the FRC release default gesture interpretation. |
| Kinect::SkeletonTrackingState Kinect::GetTrackingState | ( | int | skeletonIndex = 1 | ) |
Get the TrackingState of the skeleton. Tracking states are defined in the SkeletonTrackingState enum
| skeletonIndex | the skeleton to read from |
1.8.5