14 #include <gtest/gtest.h> 27 mapIn.
add(
"layer", 1.0);
29 mapIn.
at(
"layer", *iterator) = 2.0;
34 EXPECT_TRUE(GridMapCvProcessing::changeResolution(mapIn, mapOut, 0.1));
40 EXPECT_EQ(mapIn[
"layer"](0, 0), mapOut[
"layer"](0, 0));
51 mapIn.
add(
"layer", 1.0);
53 mapIn.
at(
"layer", *iterator) = 2.0;
58 EXPECT_TRUE(GridMapCvProcessing::changeResolution(mapIn, mapOut, 0.1));
64 EXPECT_EQ(mapIn[
"layer"](0, 0), mapOut[
"layer"](0, 0));
const Length & getLength() const
void setGeometry(const Length &length, const double resolution, const Position &position=Position::Zero())
float & atPosition(const std::string &layer, const Position &position)
bool getPosition(const Index &index, Position &position) const
bool move(const Position &position, std::vector< BufferRegion > &newRegions)
float & at(const std::string &layer, const Index &index)
void add(const std::string &layer, const double value=NAN)
TEST(GridMapCvProcessing, changeResolution)
const Size & getSize() const