Enable imu data
This commit is contained in:
parent
b33fc86a45
commit
259dc968aa
|
@ -87,8 +87,8 @@ int main(int argc, char *argv[]) {
|
||||||
});
|
});
|
||||||
|
|
||||||
// Enable this will cache the motion datas until you get them.
|
// Enable this will cache the motion datas until you get them.
|
||||||
// device->EnableMotionDatas();
|
device->EnableMotionDatas();
|
||||||
device->Start(Source::VIDEO_STREAMING);
|
device->Start(Source::ALL);
|
||||||
cv::namedWindow("frame");
|
cv::namedWindow("frame");
|
||||||
|
|
||||||
std::size_t motion_count = 0;
|
std::size_t motion_count = 0;
|
||||||
|
|
|
@ -96,7 +96,7 @@ Device::~Device() {
|
||||||
|
|
||||||
std::shared_ptr<Device> Device::Create(
|
std::shared_ptr<Device> Device::Create(
|
||||||
const std::string &name, std::shared_ptr<uvc::device> device) {
|
const std::string &name, std::shared_ptr<uvc::device> device) {
|
||||||
if (name == "MYNTEYE" || name == "CX3-UVC") {
|
if (name == "MYNTEYE") {
|
||||||
return std::make_shared<StandardDevice>(device);
|
return std::make_shared<StandardDevice>(device);
|
||||||
} else if (strings::starts_with(name, "MYNT-EYE-")) {
|
} else if (strings::starts_with(name, "MYNT-EYE-")) {
|
||||||
// TODO(JohnZhao): Create different device by name, such as MYNT-EYE-S1000
|
// TODO(JohnZhao): Create different device by name, such as MYNT-EYE-S1000
|
||||||
|
|
Loading…
Reference in New Issue
Block a user