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

[sample_consensus] Use better types for indices: int -> index_t, std::vector<int> ->Indices #3835

Merged
merged 2 commits into from
Apr 2, 2020

Conversation

mvieth
Copy link
Member

@mvieth mvieth commented Mar 31, 2020

Sorry for the big commit, I didn't see a way to divide that logically.

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.

LGTM. Maybe a followup PR for std::size_t to index_t where feasible.

@kunaltyagi kunaltyagi added changelog: fix Meta-information for changelog generation module: sample_consensus labels Mar 31, 2020
@kunaltyagi kunaltyagi changed the title Use index_t and Indices definitions in sample_consensus [sample_consensus] Use better types for indices: int -> index_t, std::vector<int> ->Indices Mar 31, 2020
@kunaltyagi kunaltyagi added the needs: code review Specify why not closed/merged yet label Mar 31, 2020
@mvieth
Copy link
Member Author

mvieth commented Mar 31, 2020

I think std::size_t is used nowhere as a type for indices in sample consensus, is it?

@kunaltyagi
Copy link
Member

is it?

I don't know, sorry. Just something that popped in my mind. I'll have better access to PCL code in sometime when I'll be able to grok and tell you but you might be able to do that by the time I provide a yay/nay.

@taketwo
Copy link
Member

taketwo commented Apr 1, 2020

@kunaltyagi Sorry I'm gonna bug you with some changelog-related sidenotes again 😬 Why do you add [module] prefix to the title? We already have a label for that!

@kunaltyagi
Copy link
Member

kunaltyagi commented Apr 1, 2020

Why do you add [module] prefix to the title?

  • [XYZ] is shorter and less ambiguous than alternatives like in XYZ or in module XYZ
  • more readable while reviewing PR/looking at the notification

I don't add it for the changelog...

@taketwo
Copy link
Member

taketwo commented Apr 1, 2020

OK, I see the point. Still, as it stands, the line in changelog will have module prefix twice (once from the PR title, and once generated from labels). I see two options: a) we modify changelog generation script to strip module prefixes from titles; b) we modify title after a PR is merged and is dormant (not generating new notifications in your inbox). I guess the former is better.

I don't add it for the changelog...

Didn't get what you mean with this.

@kunaltyagi
Copy link
Member

Didn't get what you mean with this.

I add the [module] for the notifications (same as issues). Didn't think of the changelog format.

Stripping the first [] sounds more doable to me than using a bot to do it after a PR is merged.

@taketwo
Copy link
Member

taketwo commented Apr 2, 2020

Stripping the first [] sounds more doable to me than using a bot to do it after a PR is merged.

Oh, I did not think about a bot, rather manual title change. But yeah, let's auto-strip on changelog generation. I will add this to my todo.

@SergioRAgostinho SergioRAgostinho merged commit 8d7033e into PointCloudLibrary:master Apr 2, 2020
@SergioRAgostinho SergioRAgostinho removed the needs: code review Specify why not closed/merged yet label Apr 2, 2020
@mvieth mvieth deleted the sac_indices branch June 28, 2020 09:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog: fix Meta-information for changelog generation module: sample_consensus
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants