mirror of
https://github.com/orbbec/OrbbecSDK_ROS2.git
synced 2026-10-07 21:37:46 +08:00
update OrbbecSDK version to 2.7.2
This commit is contained in:
@@ -1482,9 +1482,10 @@ void OBCameraNode::getUserCalibParamsCallback(
|
||||
void OBCameraNode::setAEModeCallback(const std::shared_ptr<SetString::Request>& request,
|
||||
std::shared_ptr<SetString::Response>& response) {
|
||||
try {
|
||||
if (device_->isPropertySupported(OB_PROP_COLOR_AE_MODE_INT, OB_PERMISSION_WRITE) &&
|
||||
if (device_->isPropertySupported(OB_PROP_DEVICE_AE_REFERENCE_INT, OB_PERMISSION_WRITE) &&
|
||||
(request->data == "depthbased" || request->data == "colorbased")) {
|
||||
device_->setIntProperty(OB_PROP_COLOR_AE_MODE_INT, request->data == "depthbased" ? 0 : 1);
|
||||
device_->setIntProperty(OB_PROP_DEVICE_AE_REFERENCE_INT,
|
||||
request->data == "depthbased" ? 0 : 1);
|
||||
response->success = true;
|
||||
response->message = "set AE mode success";
|
||||
} else {
|
||||
@@ -1499,8 +1500,8 @@ void OBCameraNode::setAEModeCallback(const std::shared_ptr<SetString::Request>&
|
||||
void OBCameraNode::setSportsModeCallback(const std::shared_ptr<SetBool::Request>& request,
|
||||
std::shared_ptr<SetBool::Response>& response) {
|
||||
try {
|
||||
if (device_->isPropertySupported(OB_PROP_COLOR_FAST_AE_BOOL, OB_PERMISSION_WRITE)) {
|
||||
device_->setIntProperty(OB_PROP_COLOR_FAST_AE_BOOL, request->data ? 1 : 0);
|
||||
if (device_->isPropertySupported(OB_PROP_DEVICE_AE_STRATEGY_INT, OB_PERMISSION_WRITE)) {
|
||||
device_->setIntProperty(OB_PROP_DEVICE_AE_STRATEGY_INT, request->data ? 1 : 0);
|
||||
response->success = true;
|
||||
response->message = "set sports mode success";
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user