fix ir image step

This commit is contained in:
Joe Dong
2023-05-24 18:07:03 +08:00
parent 2ee3b1ba64
commit 4b87d9807a
+1 -1
View File
@@ -311,7 +311,7 @@ void OBCameraNode::setupDefaultImageFormat() {
format_str_[INFRA0] = "Y16";
image_format_[INFRA0] = CV_16UC1;
encoding_[INFRA0] = sensor_msgs::image_encodings::MONO16;
unit_step_size_[INFRA0] = sizeof(uint8_t);
unit_step_size_[INFRA0] = sizeof(uint16_t);
image_format_[COLOR] = CV_8UC3;
encoding_[COLOR] = sensor_msgs::image_encodings::RGB8;