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

TODO: <Modify index type for pointCloud> #4198

Draft
wants to merge 14 commits into
base: master
Choose a base branch
from

Conversation

haritha-j
Copy link
Contributor

No description provided.

@haritha-j haritha-j added module: common priority: gsoc Reason for prioritization labels Jun 16, 2020
@kunaltyagi kunaltyagi added changelog: ABI break Meta-information for changelog generation changelog: API break Meta-information for changelog generation and removed changelog: ABI break Meta-information for changelog generation labels Jun 16, 2020
@kunaltyagi kunaltyagi added this to the pcl-1.12.0 milestone Jun 16, 2020
@kunaltyagi kunaltyagi added the needs: code review Specify why not closed/merged yet label Jun 16, 2020
test/features/test_ii_normals.cpp Outdated Show resolved Hide resolved
io/include/pcl/io/impl/pcd_io.hpp Outdated Show resolved Hide resolved
common/src/gaussian.cpp Outdated Show resolved Hide resolved
common/include/pcl/types.h Outdated Show resolved Hide resolved
@@ -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
Copy link
Member

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

Copy link
Contributor Author

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.

@kunaltyagi kunaltyagi changed the title [common] Modify index type for pointCloud TODO: Modify index type for pointCloud Jun 22, 2020
@kunaltyagi kunaltyagi changed the title TODO: Modify index type for pointCloud TODO: <Modify index type for pointCloud> Jun 22, 2020
Copy link
Member

@SergioRAgostinho SergioRAgostinho left a comment

Choose a reason for hiding this comment

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

Partial (11/47)

common/include/pcl/impl/pcl_base.hpp Outdated Show resolved Hide resolved
common/include/pcl/common/impl/spring.hpp Outdated Show resolved Hide resolved
common/include/pcl/common/impl/spring.hpp Outdated Show resolved Hide resolved
common/include/pcl/common/impl/spring.hpp Outdated Show resolved Hide resolved
common/include/pcl/common/impl/spring.hpp Outdated Show resolved Hide resolved
common/include/pcl/point_cloud.h Outdated Show resolved Hide resolved
common/include/pcl/point_cloud.h Show resolved Hide resolved
common/include/pcl/point_cloud.h Outdated Show resolved Hide resolved
@kunaltyagi kunaltyagi marked this pull request as draft June 22, 2020 20:17
@SergioRAgostinho SergioRAgostinho added needs: more work Specify why not closed/merged yet and removed needs: code review Specify why not closed/merged yet labels Jun 29, 2020
@haritha-j
Copy link
Contributor Author

haritha-j commented Jul 7, 2020

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.

@kunaltyagi
Copy link
Member

Should I rebase this with the master?

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

apps/in_hand_scanner/src/icp.cpp Outdated Show resolved Hide resolved
apps/in_hand_scanner/src/integration.cpp Outdated Show resolved Hide resolved
apps/src/ni_agast.cpp Outdated Show resolved Hide resolved
apps/src/ni_brisk.cpp Outdated Show resolved Hide resolved
common/include/pcl/common/impl/spring.hpp Outdated Show resolved Hide resolved
test/io/test_grabbers.cpp Outdated Show resolved Hide resolved
tracking/include/pcl/tracking/impl/pyramidal_klt.hpp Outdated Show resolved Hide resolved
tracking/include/pcl/tracking/impl/pyramidal_klt.hpp Outdated Show resolved Hide resolved
tracking/include/pcl/tracking/impl/pyramidal_klt.hpp Outdated Show resolved Hide resolved
tools/gp3_surface.cpp Outdated Show resolved Hide resolved
apps/src/ni_agast.cpp Outdated Show resolved Hide resolved
Comment on lines +248 to +249
image_viewer_.markPoint(int(pt.x),
int(pt.y),
Copy link
Member

Choose a reason for hiding this comment

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

here

common/include/pcl/point_cloud.h Outdated Show resolved Hide resolved
Copy link
Member

@kunaltyagi kunaltyagi left a 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());
Copy link
Member

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());
Copy link
Member

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());
Copy link
Member

Choose a reason for hiding this comment

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

Loads of places

@@ -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 ())
Copy link
Member

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> &centroid,
Eigen::Matrix<Scalar, Eigen::Dynamic, Eigen::Dynamic> &cloud_out)
{
std::size_t npts = cloud_in.size ();
auto npts = cloud_in.size ();
Copy link
Member

Choose a reason for hiding this comment

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

const

Copy link
Member

@kunaltyagi kunaltyagi left a 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++)
Copy link
Member

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;
Copy link
Member

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 ();
Copy link
Member

Choose a reason for hiding this comment

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

candidate for auto?

@stale
Copy link

stale bot commented Aug 16, 2020

Marking this as stale due to 30 days of inactivity. Commenting or adding a new commit to the pull request will revert this.

@stale stale bot added the status: stale label Aug 16, 2020
@larshg
Copy link
Contributor

larshg commented Nov 2, 2020

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?

@stale stale bot removed the status: stale label Nov 2, 2020
@haritha-j
Copy link
Contributor Author

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.

@larshg
Copy link
Contributor

larshg commented Nov 4, 2020

Great to hear 👍

@stale
Copy link

stale bot commented Dec 19, 2020

Marking this as stale due to 30 days of inactivity. Commenting or adding a new commit to the pull request will revert this.

@stale stale bot added the status: stale label Dec 19, 2020
@kunaltyagi kunaltyagi modified the milestones: pcl-1.12.0, pcl-1.12.1 Jun 30, 2021
@mvieth mvieth modified the milestones: pcl-1.12.1, pcl-1.13.0 Nov 19, 2021
@mvieth mvieth modified the milestones: pcl-1.13.0, pcl-1.14.0 Oct 19, 2022
@larshg larshg removed this from the pcl-1.14.0 milestone Jan 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog: API break Meta-information for changelog generation module: common needs: more work Specify why not closed/merged yet priority: gsoc Reason for prioritization
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants