Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
sadanand1120 committed Dec 3, 2024
1 parent 3ff5139 commit 46e38a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/cuda_depth_to_lidar.cc
Original file line number Diff line number Diff line change
Expand Up @@ -360,13 +360,13 @@ class DepthToLidar : public K4AWrapper {
}

if (depth_image == nullptr) return;
PublishScan(stamp_time);
if (FLAGS_depth) {
PublishDepthImage(depth_image, stamp_time);
}
if (FLAGS_points) {
DepthToPointCloud(color_image, depth_image);
PublishPointCloud(stamp_time);
PublishScan(stamp_time);
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/depth_to_lidar.cc
Original file line number Diff line number Diff line change
Expand Up @@ -370,14 +370,14 @@ class DepthToLidar : public K4AWrapper {
}

if (depth_image == nullptr) return;
PublishScan(stamp_time);
if (FLAGS_depth) {
// TODO consider publishing camera info also with same timestamp
PublishDepthImage(depth_image, stamp_time);
}
if (FLAGS_points) {
DepthToPointCloud(color_image, depth_image);
PublishPointCloud(stamp_time);
PublishScan(stamp_time);
}
}

Expand Down

0 comments on commit 46e38a0

Please sign in to comment.