Skip to content

Commit

Permalink
Fix CameraInfo publisher (microsoft#52)
Browse files Browse the repository at this point in the history
* Fix bug in PR microsoft#40

CameraInfo for raw depth stream was not correctly published.

* Fix typo
  • Loading branch information
shuntaraw authored and Stuart Alldritt committed Aug 16, 2019
1 parent 99fa52c commit 41afc95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/k4a_ros_device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,7 @@ void K4AROSDevice::framePublisherThread()
capture_time = timestampToROS(capture.get_depth_image().get_device_timestamp());
printTimestampDebugMessage("Depth image", capture_time);

if (depth_raw_publisher_.getNumSubscribers() > 0)
if (depth_raw_publisher_.getNumSubscribers() > 0 || depth_raw_camerainfo_publisher_.getNumSubscribers() > 0)
{
result = getDepthFrame(capture, depth_raw_frame);

Expand Down

0 comments on commit 41afc95

Please sign in to comment.