Skip to content

Commit

Permalink
add setters
Browse files Browse the repository at this point in the history
  • Loading branch information
koide3 committed Jun 26, 2024
1 parent a461a98 commit dbcfbc1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/gtsam_points/ann/flat_container.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ struct FlatContainer {
public:
/// @brief FlatContainer setting.
struct Setting {
void set_min_dist_in_cell(double dist) { this->min_sq_dist_in_cell = dist * dist; }
void set_max_num_points_in_cell(size_t num_points) { this->max_num_points_in_cell = num_points; }

double min_sq_dist_in_cell = 0.1 * 0.1; ///< Minimum squared distance between points in a cell.
size_t max_num_points_in_cell = 20; ///< Maximum number of points in a cell.
};
Expand Down
3 changes: 3 additions & 0 deletions include/gtsam_points/ann/incremental_covariance_container.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ struct IncrementalCovarianceContainer {
public:
/// @brief FlatContainer setting.
struct Setting {
void set_min_dist_in_cell(double dist) { this->min_sq_dist_in_cell = dist * dist; }
void set_max_num_points_in_cell(size_t num_points) { this->max_num_points_in_cell = num_points; }

double min_sq_dist_in_cell = 0.1 * 0.1; ///< Minimum squared distance between points in a cell.
size_t max_num_points_in_cell = 20; ///< Maximum number of points in a cell.
};
Expand Down

0 comments on commit dbcfbc1

Please sign in to comment.