1 #include <gtest/gtest.h>     6 #include "../mock_grid_cell.h"     8 #include "../../../src/core/maps/plain_grid_map.h"    13     : 
map{std::make_shared<MockGridCell>(), {1, 1, 1}}
    14     , 
data{
true, {0.5, 0.5}, {-1, -1}, 0} {}
    22   MapInfo(
int w_, 
int h_, 
int o_x, 
int o_y) : 
w{w_}, h{h_}, origin{o_x, o_y} {}
    27     return (
w == that.
w) && (h == that.
h) && (origin == that.
origin);
    35   stream << 
"w: " << mi.
w << 
", h: " << mi.
h;
    36   return stream << 
", origin: ("<< mi.
origin.
x << 
", " << mi.
origin.
y << 
")";
    85   static constexpr 
int Lim = 50;
    86   for (
int i = -Lim; i != Lim; ++i) {
    87     for (
int j = -Lim; j != Lim; ++j) {
    88       map.
update({i, j}, {
true, {(double)Lim * i + j, 0}, {0, 0}, 0});
    91   for (
int i = -Lim; i != Lim; ++i) {
    92     for (
int j = -Lim; j != Lim; ++j) {
    93       ASSERT_EQ((
map[{i, j}]), ((
double)Lim * i + j));
    99 int main (
int argc, 
char *argv[]) {
   100   ::testing::InitGoogleTest(&argc, argv);
   101   return RUN_ALL_TESTS();
 UnboundedPlainGridMap map
 
Coord origin() const override
 
void update(const Coord &area_id, const AreaOccupancyObservation &aoo) override
Updates area with a given observation. 
 
MapInfo(int w_, int h_, int o_x, int o_y)
 
AreaOccupancyObservation data
 
TEST_F(UnboundedPlainGridMapTest, expandRight)
 
bool operator==(const MapInfo &that) const 
 
TFSIMD_FORCE_INLINE const tfScalar & w() const 
 
virtual int height() const 
 
UnboundedPlainGridMapTest()
 
std::ostream & operator<<(std::ostream &stream, const MapInfo &mi)
 
MapInfo(const GridMap &map)
 
int main(int argc, char *argv[])
 
virtual int width() const