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

simplify the GridMinimum interface #608

Merged
merged 1 commit into from
Apr 4, 2014

Conversation

chambbj
Copy link
Contributor

@chambbj chambbj commented Apr 3, 2014

per related discussion in #603

@@ -75,13 +73,8 @@
public:
/** \brief Empty constructor. */
GridMinimum () :
Copy link
Member

Choose a reason for hiding this comment

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

Given that the class has a single configuration parameter wouldn't it make sense to be able to set it via constructor?

@chambbj
Copy link
Contributor Author

chambbj commented Apr 4, 2014

@taketwo That's fine. I now allow setting resolution via constructor or setResolution. I've expanded on the unit test to cover these scenarios too.

div_b_ (Eigen::Vector4i::Zero ()),
divb_mul_ (Eigen::Vector4i::Zero ()),
min_points_per_grid_ (0)
GridMinimum (const float &resolution)
Copy link
Member

Choose a reason for hiding this comment

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

It's recommended to pass primitive types by value (see e.g. this)

@chambbj
Copy link
Contributor Author

chambbj commented Apr 4, 2014

@taketwo Fixed.

*/
inline void
setLeafSize (const Eigen::Vector4f &leaf_size)
setResolution (const float &resolution)
Copy link
Member

Choose a reason for hiding this comment

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

Here also.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Grrr. Thanks :)

@chambbj
Copy link
Contributor Author

chambbj commented Apr 4, 2014

@taketwo Once again...

taketwo added a commit that referenced this pull request Apr 4, 2014
simplify the GridMinimum interface
@taketwo taketwo merged commit eafc440 into PointCloudLibrary:master Apr 4, 2014
@chambbj chambbj deleted the simplify-grid-minimum branch April 4, 2014 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants