Skip to content
This repository was archived by the owner on Jul 26, 2024. It is now read-only.

Commit b5d4b80

Browse files
committed
removed redundant calls
1 parent 3e04c24 commit b5d4b80

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/k4a_ros_device.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -729,8 +729,6 @@ k4a_result_t K4AROSDevice::fillColorPointCloud(const k4a::image& pointcloud_imag
729729

730730
k4a_result_t K4AROSDevice::fillPointCloud(const k4a::image& pointcloud_image, sensor_msgs::PointCloud2Ptr& point_cloud)
731731
{
732-
point_cloud->height = pointcloud_image.get_height_pixels();
733-
point_cloud->width = pointcloud_image.get_width_pixels();
734732
point_cloud->is_dense = false;
735733
point_cloud->is_bigendian = false;
736734

@@ -745,7 +743,7 @@ k4a_result_t K4AROSDevice::fillPointCloud(const k4a::image& pointcloud_image, se
745743

746744
pcd_modifier.resize(point_count);
747745

748-
// Restore actual dimensions as pcd_modifier.resize(n) sets the cloud size to n x 1
746+
// Set actual dimensions as pcd_modifier.resize(n) sets the cloud size to n x 1
749747
point_cloud->height = pointcloud_image.get_height_pixels();
750748
point_cloud->width = pointcloud_image.get_width_pixels();
751749
point_cloud->row_step = pointcloud_image.get_width_pixels() * point_cloud->point_step;

0 commit comments

Comments
 (0)