mirror of
https://github.com/orbbec/OrbbecSDK_ROS2.git
synced 2026-10-12 23:39:50 +08:00
fixed set ir mirror
This commit is contained in:
@@ -462,7 +462,6 @@ void OBCameraNode::getExposureCallback(const std::shared_ptr<GetInt32::Request>&
|
|||||||
auto stream = stream_index.first;
|
auto stream = stream_index.first;
|
||||||
try {
|
try {
|
||||||
switch (stream) {
|
switch (stream) {
|
||||||
case OB_STREAM_IR_LEFT:
|
|
||||||
case OB_STREAM_IR_RIGHT:
|
case OB_STREAM_IR_RIGHT:
|
||||||
case OB_STREAM_IR:
|
case OB_STREAM_IR:
|
||||||
response->data = device_->getIntProperty(OB_PROP_IR_EXPOSURE_INT);
|
response->data = device_->getIntProperty(OB_PROP_IR_EXPOSURE_INT);
|
||||||
@@ -545,8 +544,9 @@ void OBCameraNode::setMirrorCallback(const std::shared_ptr<SetBool::Request>& re
|
|||||||
auto stream = stream_index.first;
|
auto stream = stream_index.first;
|
||||||
try {
|
try {
|
||||||
switch (stream) {
|
switch (stream) {
|
||||||
case OB_STREAM_IR_LEFT:
|
|
||||||
case OB_STREAM_IR_RIGHT:
|
case OB_STREAM_IR_RIGHT:
|
||||||
|
device_->setBoolProperty(OB_PROP_IR_RIGHT_MIRROR_BOOL, request->data);
|
||||||
|
case OB_STREAM_IR_LEFT:
|
||||||
case OB_STREAM_IR:
|
case OB_STREAM_IR:
|
||||||
device_->setBoolProperty(OB_PROP_IR_MIRROR_BOOL, request->data);
|
device_->setBoolProperty(OB_PROP_IR_MIRROR_BOOL, request->data);
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user