-
-
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
simplify the GridMinimum interface #608
simplify the GridMinimum interface #608
Conversation
@@ -75,13 +73,8 @@ | |||
public: | |||
/** \brief Empty constructor. */ | |||
GridMinimum () : |
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.
Given that the class has a single configuration parameter wouldn't it make sense to be able to set it via constructor?
@taketwo That's fine. I now allow setting resolution via constructor or |
div_b_ (Eigen::Vector4i::Zero ()), | ||
divb_mul_ (Eigen::Vector4i::Zero ()), | ||
min_points_per_grid_ (0) | ||
GridMinimum (const float &resolution) |
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.
It's recommended to pass primitive types by value (see e.g. this)
@taketwo Fixed. |
*/ | ||
inline void | ||
setLeafSize (const Eigen::Vector4f &leaf_size) | ||
setResolution (const float &resolution) |
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 also.
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.
Grrr. Thanks :)
@taketwo Once again... |
simplify the GridMinimum interface
per related discussion in #603