Skip to content

Commit

Permalink
set row_step at the end
Browse files Browse the repository at this point in the history
  • Loading branch information
gitai-dev01 authored and knorth55 committed Dec 4, 2024
1 parent 1aaa3b0 commit a748c60
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -249,10 +249,10 @@ namespace jsk_pcl_ros
output.data.resize (msg->data.size ());
output.width = msg->width;
output.height = msg->height;
output.row_step = msg->point_step * msg->width;
}
#endif
output.header = msg->header;
output.row_step = output.point_step * output.width;
output.is_dense = !keep_organized;
pub_.publish(output);
diagnostic_updater_->update();
Expand Down Expand Up @@ -317,10 +317,10 @@ namespace jsk_pcl_ros
output.data.resize (msg->data.size ());
output.width = msg->width;
output.height = msg->height;
output.row_step = output.point_step * output.width;
}
#endif
output.header = msg->header;
output.row_step = output.point_step * output.width;
output.is_dense = !keep_organized;
pub_.publish(output);
diagnostic_updater_->update();
Expand Down

0 comments on commit a748c60

Please sign in to comment.