mirror of
https://github.com/orbbec/OrbbecSDK_ROS2.git
synced 2026-10-04 12:07:46 +08:00
Fixed maybe crash
This commit is contained in:
@@ -1338,7 +1338,7 @@ void OBCameraNode::onNewFrameCallback(const std::shared_ptr<ob::Frame> &frame,
|
||||
camera_info.header.frame_id = frame_id;
|
||||
camera_info.width = width;
|
||||
camera_info.height = height;
|
||||
if (frame->type() == OB_FRAME_IR_RIGHT) {
|
||||
if (frame->type() == OB_FRAME_IR_RIGHT && enable_stream_[INFRA1]) {
|
||||
auto left_video_profile = stream_profile_[INFRA1]->as<ob::VideoStreamProfile>();
|
||||
auto ex = video_stream_profile->getExtrinsicTo(left_video_profile);
|
||||
float fx = camera_info.k.at(0);
|
||||
|
||||
Reference in New Issue
Block a user