Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace '.points[' with just '[' #4219

Merged
merged 5 commits into from
Jun 29, 2020

Conversation

kunaltyagi
Copy link
Member

No description provided.

@kunaltyagi kunaltyagi added the needs: code review Specify why not closed/merged yet label Jun 23, 2020
@kunaltyagi kunaltyagi added the priority: gsoc Reason for prioritization label Jun 23, 2020
Comment on lines +117 to +119
cloud_out[i].x = static_cast<float>(p[0]);
cloud_out[i].y = static_cast<float>(p[1]);
cloud_out[i].z = static_cast<float>(p[2]);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for-range

Comment on lines +18 to +20
cloud[i].x = 1024 * rand () / (RAND_MAX + 1.0f);
cloud[i].y = 1024 * rand () / (RAND_MAX + 1.0f);
cloud[i].z = 1024 * rand () / (RAND_MAX + 1.0f);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for-range

}

pcl::io::savePCDFileASCII ("test_pcd.pcd", cloud);
std::cerr << "Saved " << cloud.points.size () << " data points to test_pcd.pcd." << std::endl;

for (std::size_t i = 0; i < cloud.points.size (); ++i)
std::cerr << " " << cloud.points[i].x << " " << cloud.points[i].y << " " << cloud.points[i].z << std::endl;
std::cerr << " " << cloud[i].x << " " << cloud[i].y << " " << cloud[i].z << std::endl;

return (0);
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

new line

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No. clang-format remember

@@ -102,7 +102,7 @@ main (int, char** argv)
std::cout<<" with size "<<rift_output.points.size()<<std::endl;

// Display and retrieve the rift descriptor vector for the first point
pcl::Histogram<32> first_descriptor = rift_output.points[0];
pcl::Histogram<32> first_descriptor = rift_output[0];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need to create a copy.

@SergioRAgostinho SergioRAgostinho added needs: author reply Specify why not closed/merged yet and removed needs: code review Specify why not closed/merged yet labels Jun 29, 2020
@kunaltyagi
Copy link
Member Author

I'd recommend a separate PR for these 4 points.

@SergioRAgostinho SergioRAgostinho removed the needs: author reply Specify why not closed/merged yet label Jun 29, 2020
@SergioRAgostinho SergioRAgostinho merged commit 0dde8ff into PointCloudLibrary:master Jun 29, 2020
@kunaltyagi kunaltyagi deleted the sed-points3 branch June 29, 2020 15:21
kunaltyagi added a commit to kunaltyagi/pcl that referenced this pull request Jul 3, 2020
kunaltyagi added a commit to kunaltyagi/pcl that referenced this pull request Jul 3, 2020
kunaltyagi added a commit to kunaltyagi/pcl that referenced this pull request Jul 3, 2020
SergioRAgostinho added a commit that referenced this pull request Jul 3, 2020
koide3 pushed a commit to koide3/pcl that referenced this pull request Jul 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: gsoc Reason for prioritization
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants