Skip to content

Commit e237833

Browse files
committed
pre-commit
1 parent 3b0e9a4 commit e237833

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

hydra_ros/include/hydra_ros/active_window/tsdf_gradient_occupancy_publisher.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ class TsdfGradientOccupancyPublisher : public ReconstructionModule::Sink {
8686
float min_confidence = 0.5f; // min confidence (neighbors/8) for valid cell
8787
bool smoothing = true; // apply box filter to reduce TSDF ripple
8888
bool probabilistic = false; // continuous vs binary occupancy
89-
bool filter_disjoint = false; // remove free space not connected to robot
89+
bool filter_disjoint = false; // remove free space not connected to robot
9090
} const config;
9191

9292
explicit TsdfGradientOccupancyPublisher(const Config& config);

hydra_ros/src/active_window/tsdf_gradient_occupancy_publisher.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -360,8 +360,7 @@ void TsdfGradientOccupancyPublisher::fillOccupancyGrid(
360360
}
361361

362362
void TsdfGradientOccupancyPublisher::filterDisjointFreeSpace(
363-
nav_msgs::msg::OccupancyGrid& msg,
364-
const Eigen::Isometry3d& world_T_body) const {
363+
nav_msgs::msg::OccupancyGrid& msg, const Eigen::Isometry3d& world_T_body) const {
365364
if (msg.data.empty()) {
366365
return;
367366
}
@@ -405,9 +404,8 @@ void TsdfGradientOccupancyPublisher::filterDisjointFreeSpace(
405404
const int c = current_index % width;
406405

407406
// Check 4-connected neighbors (up, down, left, right)
408-
const std::array<std::pair<int, int>, 4> neighbors = {{
409-
{r - 1, c}, {r + 1, c}, {r, c - 1}, {r, c + 1}
410-
}};
407+
const std::array<std::pair<int, int>, 4> neighbors = {
408+
{{r - 1, c}, {r + 1, c}, {r, c - 1}, {r, c + 1}}};
411409

412410
for (const auto& [nr, nc] : neighbors) {
413411
// Check bounds

0 commit comments

Comments
 (0)