mirror of
https://github.com/orbbec/OrbbecSDK_ROS2.git
synced 2026-09-14 20:10:19 +08:00
fix: add checks for AE mode compatibility with Gemini 305 PID
This commit is contained in:
@@ -493,6 +493,20 @@ void OBCameraNode::setAeRoiCallback(const std::shared_ptr<SetArrays ::Request>&
|
|||||||
std::shared_ptr<SetArrays::Response>& response,
|
std::shared_ptr<SetArrays::Response>& response,
|
||||||
const stream_index_pair& stream_index) {
|
const stream_index_pair& stream_index) {
|
||||||
auto stream = stream_index.first;
|
auto stream = stream_index.first;
|
||||||
|
if (device_->getDeviceInfo()->getPid() == GEMINI_305_PID &&
|
||||||
|
(stream != OB_STREAM_COLOR && ae_mode_ == "colorbased")) {
|
||||||
|
response->success = false;
|
||||||
|
response->message =
|
||||||
|
"AE MODE is colorbased, other sensors setting is not supported on Gemini305";
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (device_->getDeviceInfo()->getPid() == GEMINI_305_PID &&
|
||||||
|
(stream != OB_STREAM_DEPTH && ae_mode_ == "depthbased")) {
|
||||||
|
response->success = false;
|
||||||
|
response->message =
|
||||||
|
"AE MODE is depthbased, other sensors sensor setting is not supported on Gemini305";
|
||||||
|
return;
|
||||||
|
}
|
||||||
auto config = OBRegionOfInterest();
|
auto config = OBRegionOfInterest();
|
||||||
uint32_t data_size = sizeof(config);
|
uint32_t data_size = sizeof(config);
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user