A class to handle extern gusture data. Only support on Android now.
More...
#include <xv-sdk.h>
|
virtual bool | start (void *jvm)=0 |
| Start extend gesture stream. More...
|
|
virtual int | registerPosCallback (std::function< void(std::shared_ptr< const std::vector< xv::Pose >>)> callback)=0 |
| Callback to get the gesture keypoints pose information based on slam position. More...
|
|
virtual bool | unregisterPosCallback (int callbackId)=0 |
|
virtual GestureData | getGesture (xv::Pose pose, double timestamp)=0 |
| Manually get the gesture informatio at specific timestamp. More...
|
|
virtual std::vector< xv::Pose > | GetGesturePose (xv::Pose pose, double timestamp)=0 |
| Manually get the gesture keypoints pose informatio at specific timestamp. More...
|
|
virtual bool | start ()=0 |
| start streaming.
|
|
virtual bool | stop ()=0 |
| stop streaming.
|
|
virtual int | registerCallback (std::function< void(GestureData const &)>)=0 |
| Register callback to receive data.
|
|
virtual bool | unregisterCallback (int callbackId)=0 |
| Unregister callback.
|
|
A class to handle extern gusture data. Only support on Android now.
Manually get the gesture informatio at specific timestamp.
- Parameters
-
[in] | pose | xv::Pose value, the pose when you call this method, use getPoseAt to get. |
[in] | timestamp | double value, the timestamp value when you call this method. |
- Returns
- GestureData at specific timestamp.
virtual std::vector<xv::Pose> xv::GestureStreamEX::GetGesturePose |
( |
xv::Pose |
pose, |
|
|
double |
timestamp |
|
) |
| |
|
pure virtual |
Manually get the gesture keypoints pose informatio at specific timestamp.
- Parameters
-
[in] | pose | xv::Pose value, the pose when you call this method, use getPoseAt to get. |
[in] | timestamp | double value, the timestamp value when you call this method. |
- Returns
- Gesture keypoints pose at specific timestamp.
virtual int xv::GestureStreamEX::registerPosCallback |
( |
| ) |
|
|
pure virtual |
Callback to get the gesture keypoints pose information based on slam position.
The vector contains gesture keypoints pose based on slam position, size 25 means one hand, vector size 50 means two hands, 3D points with depth value.
- Returns
- Id of the callback (used to unregister the callback).
virtual bool xv::GestureStreamEX::start |
( |
void * |
jvm | ) |
|
|
pure virtual |
Start extend gesture stream.
- Parameters
-
- Returns
- Result of start method, true:succeed, false:failed.
The documentation for this class was generated from the following file: