Skip to content
This repository was archived by the owner on Jul 26, 2024. It is now read-only.

Commit 8861446

Browse files
authored
Merge pull request #229 from christian-rauch/fix_intrinsic_frame_id
set intrinsic frame id when using custom calibration
2 parents d6f68e8 + 54ef947 commit 8861446

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/k4a_ros_device.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -982,6 +982,8 @@ void K4AROSDevice::framePublisherThread()
982982
if (ci_mngr_rgb_->isCalibrated())
983983
{
984984
rgb_raw_camera_info = depth_rect_camera_info = ci_mngr_rgb_->getCameraInfo();
985+
rgb_raw_camera_info.header.frame_id = depth_rect_camera_info.header.frame_id = \
986+
calibration_data_.tf_prefix_ + calibration_data_.rgb_camera_frame_;
985987
}
986988
else
987989
{
@@ -992,6 +994,8 @@ void K4AROSDevice::framePublisherThread()
992994
if (ci_mngr_ir_->isCalibrated())
993995
{
994996
depth_raw_camera_info = rgb_rect_camera_info = ir_raw_camera_info = ci_mngr_ir_->getCameraInfo();
997+
depth_raw_camera_info.header.frame_id = rgb_rect_camera_info.header.frame_id = ir_raw_camera_info.header.frame_id = \
998+
calibration_data_.tf_prefix_ + calibration_data_.depth_camera_frame_;
995999
}
9961000
else
9971001
{

0 commit comments

Comments
 (0)