Skip to content

Commit 80dd155

Browse files
orlando21larafcladera
authored andcommitted
Fix linting in VoxelMapper class
1 parent 147a6e0 commit 80dd155

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

autonomy_core/map_plan/mapper/include/mapper/voxel_mapper.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#include <boost/multi_array.hpp>
77
#include <gtest/gtest_prod.h>
88
#include <mpl_collision/map_util.h>
9+
#include <vector>
910

1011
namespace mapper {
1112

autonomy_core/map_plan/mapper/src/voxel_mapper.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ VoxelMapper::VoxelMapper(const Eigen::Vector3d& origin,
1717
allocate(origin, dim);
1818
if (decay_times_to_empty >= 1) {
1919
val_decay_ =
20-
std::ceil((float)(val_occ_ - val_even_) / (float)decay_times_to_empty);
20+
std::ceil(static_cast<float>(val_occ_ - val_even_)
21+
/ static_cast<float>(decay_times_to_empty));
2122
} else {
2223
val_decay_ = 0; // no decay
2324
}

0 commit comments

Comments
 (0)