MYNT EYE SDK  2.0.0-rc
http://www.myntai.com/camera
mynteye::Device类 参考abstract

The Device class to communicate with MYNT® EYE device. 更多...

Public 类型

using stream_callback_t = device::StreamCallback
 The device::StreamData callback. 更多...
 
using motion_callback_t = device::MotionCallback
 The device::MotionData callback. 更多...
 

Public 成员函数

Model GetModel () const
 Get the model.
 
bool Supports (const Stream &stream) const
 Supports the stream or not.
 
bool Supports (const Capabilities &capability) const
 Supports the capability or not.
 
bool Supports (const Option &option) const
 Supports the option or not.
 
bool Supports (const AddOns &addon) const
 Supports the addon or not.
 
const std::vector< StreamRequest > & GetStreamRequests (const Capabilities &capability) const
 Get all stream requests of the capability.
 
void ConfigStreamRequest (const Capabilities &capability, const StreamRequest &request)
 Config the stream request to the capability.
 
std::shared_ptr< DeviceInfo > GetInfo () const
 Get the device info.
 
std::string GetInfo (const Info &info) const
 Get the device info of a field.
 
Intrinsics GetIntrinsics (const Stream &stream) const
 Get the intrinsics of stream.
 
Extrinsics GetExtrinsics (const Stream &from, const Stream &to) const
 Get the extrinsics from one stream to another.
 
MotionIntrinsics GetMotionIntrinsics () const
 Get the intrinsics of motion.
 
Extrinsics GetMotionExtrinsics (const Stream &from) const
 Get the extrinsics from one stream to motion.
 
void SetIntrinsics (const Stream &stream, const Intrinsics &in)
 Set the intrinsics of stream.
 
void SetExtrinsics (const Stream &from, const Stream &to, const Extrinsics &ex)
 Set the extrinsics from one stream to another.
 
void SetMotionIntrinsics (const MotionIntrinsics &in)
 Set the intrinsics of motion.
 
void SetMotionExtrinsics (const Stream &from, const Extrinsics &ex)
 Set the extrinsics from one stream to motion.
 
void LogOptionInfos () const
 Log all option infos.
 
OptionInfo GetOptionInfo (const Option &option) const
 Get the option info.
 
std::int32_t GetOptionValue (const Option &option) const
 Get the option value.
 
void SetOptionValue (const Option &option, std::int32_t value)
 Set the option value.
 
bool RunOptionAction (const Option &option) const
 Run the option action.
 
void SetStreamCallback (const Stream &stream, stream_callback_t callback, bool async=false)
 Set the callback of stream.
 
void SetMotionCallback (motion_callback_t callback, bool async=false)
 Set the callback of motion.
 
bool HasStreamCallback (const Stream &stream) const
 Has the callback of stream.
 
bool HasMotionCallback () const
 Has the callback of motion.
 
virtual void Start (const Source &source)
 Start capturing the source.
 
virtual void Stop (const Source &source)
 Stop capturing the source.
 
void WaitForStreams ()
 Wait the streams are ready.
 
std::vector< device::StreamDataGetStreamDatas (const Stream &stream)
 Get the datas of stream. 更多...
 
device::StreamData GetLatestStreamData (const Stream &stream)
 Get the latest data of stream.
 
void EnableMotionDatas (std::size_t max_size=std::numeric_limits< std::size_t >::max())
 Enable cache motion datas.
 
std::vector< device::MotionDataGetMotionDatas ()
 Get the motion datas.
 

静态 Public 成员函数

static std::shared_ptr< DeviceCreate (const std::string &name, std::shared_ptr< uvc::device > device)
 Create the Device instance. 更多...
 

详细描述

The Device class to communicate with MYNT® EYE device.

成员类型定义说明

◆ motion_callback_t

using mynteye::Device::motion_callback_t = device::MotionCallback

The device::MotionData callback.

◆ stream_callback_t

using mynteye::Device::stream_callback_t = device::StreamCallback

The device::StreamData callback.

成员函数说明

◆ Create()

static std::shared_ptr<Device> mynteye::Device::Create ( const std::string &  name,
std::shared_ptr< uvc::device >  device 
)
static

Create the Device instance.

参数
namethe device name.
devicethe device from uvc.
返回
the Device instance.

◆ GetStreamDatas()

std::vector<device::StreamData> mynteye::Device::GetStreamDatas ( const Stream stream)

Get the datas of stream.

注解
default cache 4 datas at most.