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

fix(probabilistic_occupancy_grid_map): fix noExplicitConstructor #7811

Merged
merged 1 commit into from
Jul 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -171,7 +171,7 @@ struct dempsterShaferOccupancy
}

// initialize with probability
dempsterShaferOccupancy(double occupied_probability)
explicit dempsterShaferOccupancy(double occupied_probability)
{
// confine to [0, 1]
double p = std::max(0.0, std::min(1.0, occupied_probability));
Original file line number Diff line number Diff line change
@@ -75,7 +75,7 @@ void OccupancyGridMapProjectiveBlindSpot::updateWithPointCloud(
// Create angle bins and sort points by range
struct BinInfo3D
{
BinInfo3D(
explicit BinInfo3D(
const double _range = 0.0, const double _wx = 0.0, const double _wy = 0.0,
const double _wz = 0.0, const double _projection_length = 0.0,
const double _projected_wx = 0.0, const double _projected_wy = 0.0)