Skip to content

Commit

Permalink
Merge pull request #216 from ArkadiuszNiemiec/fix_odom_publisher
Browse files Browse the repository at this point in the history
Publish odom when point cloud is subscribed
  • Loading branch information
Myzhar committed Jun 25, 2018
2 parents 786377d + f4a561e commit 3fe7f74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zed_wrapper_nodelet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,7 @@ namespace zed_wrapper {
}

// Publish the odometry if someone has subscribed to
if (odom_SubNumber > 0) {
if (odom_SubNumber > 0 || cloud_SubNumber > 0) {
zed.getPosition(pose);
// Transform ZED pose in TF2 Transformation
tf2::Transform camera_transform;
Expand Down

0 comments on commit 3fe7f74

Please sign in to comment.