Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Publish odom when point cloud is subscribed
  • Loading branch information
ANiemiec committed Jun 21, 2018
commit f4a561e188d90aa928fdae208d0bad92e6719f32
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