xvsdk  3.2.0
Public Types | Public Member Functions | List of all members
xv::GestureStreamEX Class Referenceabstract

A class to handle extern gusture data. Only support on Android now. More...

#include <xv-sdk.h>

Public Types

using Data = GestureData const &
 

Public Member Functions

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::PoseGetGesturePose (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.
 

Detailed Description

A class to handle extern gusture data. Only support on Android now.

Member Function Documentation

virtual GestureData xv::GestureStreamEX::getGesture ( xv::Pose  pose,
double  timestamp 
)
pure virtual

Manually get the gesture informatio at specific timestamp.

Parameters
[in]posexv::Pose value, the pose when you call this method, use getPoseAt to get.
[in]timestampdouble 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]posexv::Pose value, the pose when you call this method, use getPoseAt to get.
[in]timestampdouble 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
[in]jvmvoid* value
Returns
Result of start method, true:succeed, false:failed.

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