-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
TODO: <Modify index type for pointCloud> #4198
base: master
Are you sure you want to change the base?
Conversation
features/include/pcl/features/impl/organized_edge_detection.hpp
Outdated
Show resolved
Hide resolved
features/include/pcl/features/impl/moment_of_inertia_estimation.hpp
Outdated
Show resolved
Hide resolved
common/include/pcl/point_cloud.h
Outdated
@@ -227,6 +227,7 @@ namespace pcl | |||
{} | |||
|
|||
//TODO: check if copy/move contructors/assignment operators are needed | |||
//TODO: remove casting of the return value of size() to index_t |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know if this would be picked up by doxygen
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll add it as a doxygen command.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Partial (11/47)
features/include/pcl/features/impl/moment_of_inertia_estimation.hpp
Outdated
Show resolved
Hide resolved
Should I rebase this with the master? I'm guessing there'll be some conflicts to address. Also, looks like I've missed a few warnings still. |
Please wait a bit. Sorry about the delay on my side. I have 2 big PRs in line, they just became a bit too big to handle quickly for me |
image_viewer_.markPoint(int(pt.x), | ||
int(pt.y), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
33/150
signatures->resize(fpfhs->points.size()); | ||
signatures->width = static_cast<int>(fpfhs->points.size()); | ||
signatures->resize(fpfhs->size()); | ||
signatures->width = static_cast<int>(fpfhs->size()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needless cast
signatures->resize(shots->points.size()); | ||
signatures->width = static_cast<int>(shots->points.size()); | ||
signatures->resize(shots->size()); | ||
signatures->width = static_cast<int>(shots->size()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same
signatures->resize(shots->points.size()); | ||
signatures->width = static_cast<int>(shots->points.size()); | ||
signatures->resize(shots->size()); | ||
signatures->width = static_cast<int>(shots->size()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Loads of places
apps/in_hand_scanner/src/icp.cpp
Outdated
@@ -243,7 +243,7 @@ pcl::ihs::ICP::findTransformation (const MeshConstPtr& mesh_model, | |||
// Check the distance threshold | |||
if (squared_distance [0] < squared_distance_threshold) | |||
{ | |||
if ((std::size_t) index [0] >= cloud_model_selected->size ()) | |||
if (static_cast<index_t>(index [0]) >= cloud_model_selected->size ()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of cast here, L206 should be changed
@@ -749,11 +749,11 @@ demeanPointCloud (const pcl::PointCloud<PointT> &cloud_in, | |||
const Eigen::Matrix<Scalar, 4, 1> ¢roid, | |||
Eigen::Matrix<Scalar, Eigen::Dynamic, Eigen::Dynamic> &cloud_out) | |||
{ | |||
std::size_t npts = cloud_in.size (); | |||
auto npts = cloud_in.size (); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
67/150
@@ -228,7 +228,7 @@ pcl::UniqueShapeContext<PointInT, PointOutT, PointRFT>::computeFeature (PointClo | |||
|
|||
output.is_dense = true; | |||
|
|||
for (std::size_t point_index = 0; point_index < indices_->size (); ++point_index) | |||
for (index_t point_index = 0; point_index < static_cast<index_t>(indices_->size ()); point_index++) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use ++counter
for uniformity in the for loops
accu [6] += cloud[i].x; | ||
accu [7] += cloud[i].y; | ||
accu [8] += cloud[i].z; | ||
accu [0] += pt.x * pt.x; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some Eigen here?
@@ -67,7 +67,7 @@ pcl::NormalRefinement<NormalT>::applyFilter (PointCloud &output) | |||
|
|||
// Check that correspondences are OK | |||
const unsigned int size = k_indices_.size (); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
candidate for auto?
Marking this as stale due to 30 days of inactivity. Commenting or adding a new commit to the pull request will revert this. |
Should we try to revive this one, @kunaltyagi and @haritha-j. Are you gonna do more work @haritha-j or should one of us take over? |
Sure, I can resume, a bit bogged down this week but will start by addressing the open comments next week. |
Great to hear 👍 |
Marking this as stale due to 30 days of inactivity. Commenting or adding a new commit to the pull request will revert this. |
No description provided.