Merge branch 'develop' into feature/android
* develop: (28 commits) feat(*): add function to querry some hardware info feat: forbid 2100/210A uless update sdk to 2.3.1 and above refactor(synthetic): remove usless logic chore(readme): update readme docs(doxyfile): update version fix: change cmake version to 2.3.2 feat(api) sdk/firmware version check feat(api): version check fix(wrapper): fix camera info repeat bug build(makefile): ensure uninstall before install fix(correspondence): also wait stream matched ready fix(record): shield diable logic temporarily chore(readme): chore(readme): update readme chore(readme): update readme chore(doc): update version fix(samples): delete useless comment fix(ros): fix camera info bug fix(correspondence): improve warning if not start motion tracking fix(correspondence): fix include header fix(ros): record close bug ...
This commit is contained in:
@@ -234,6 +234,10 @@ std::string Device::GetInfo(const Info &info) const {
|
||||
return device_info_->imu_type.to_string();
|
||||
case Info::NOMINAL_BASELINE:
|
||||
return std::to_string(device_info_->nominal_baseline);
|
||||
case Info::AUXILIARY_CHIP_VERSION:
|
||||
return device_info_->auxiliary_chip_version.to_string();
|
||||
case Info::ISP_VERSION:
|
||||
return device_info_->isp_version.to_string();
|
||||
default:
|
||||
LOG(WARNING) << "Unknown device info";
|
||||
return "";
|
||||
@@ -349,6 +353,9 @@ OptionInfo Device::GetOptionInfo(const Option &option) const {
|
||||
|
||||
std::int32_t Device::GetOptionValue(const Option &option) const {
|
||||
if (!Supports(option)) {
|
||||
if (option == Option::FRAME_RATE) {
|
||||
return GetStreamRequest().fps;
|
||||
}
|
||||
LOG(WARNING) << "Unsupported option: " << option;
|
||||
return -1;
|
||||
}
|
||||
@@ -466,6 +473,11 @@ std::vector<device::StreamData> Device::GetStreamDatas(const Stream &stream) {
|
||||
return streams_->GetStreamDatas(stream);
|
||||
}
|
||||
|
||||
void Device::DisableMotionDatas() {
|
||||
CHECK_NOTNULL(motions_);
|
||||
motions_->DisableMotionDatas();
|
||||
}
|
||||
|
||||
void Device::EnableMotionDatas() {
|
||||
EnableMotionDatas(std::numeric_limits<std::size_t>::max());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user