mirror of
https://github.com/orbbec/OrbbecSDK_ROS2.git
synced 2026-09-13 03:30:18 +08:00
fix: add requested_mode_value and hw_mode_index to setDisparityRangeModeCallback
This commit is contained in:
@@ -358,6 +358,8 @@ void OBCameraNode::setDisparityRangeModeCallback(const std::shared_ptr<SetInt32:
|
||||
}
|
||||
|
||||
auto range = device_->getIntPropertyRange(OB_PROP_DISP_SEARCH_RANGE_MODE_INT);
|
||||
int requested_mode_value = request->data;
|
||||
int hw_mode_index = requested_mode_value;
|
||||
if (hw_mode_index < range.min || hw_mode_index > range.max) {
|
||||
response->success = false;
|
||||
response->message =
|
||||
|
||||
Reference in New Issue
Block a user