NavMap
Loading...
Searching...
No Matches
test_incremental.cpp File Reference
#include <gtest/gtest.h>
#include <algorithm>
#include <cmath>
#include <cstdint>
#include <functional>
#include <limits>
#include <random>
#include <set>
#include <vector>
#include "navmap_core/DistanceField.hpp"
#include "navmap_core/NavMap.hpp"
#include "navmap_core/Occupancy.hpp"
Include dependency graph for test_incremental.cpp:

Classes

class  DistanceField
 Distance from each NavCel to the nearest seed (seed NavCels and, optionally, the open edges of the mesh), kept up to date incrementally. More...

Typedefs

using NavCelId
 Index of a triangle (NavCel) within the global mesh.

Functions

std::vector< float > brute (const NavMap &nm, const std::vector< NavCelId > &seeds, bool boundary, float maxd)
 TEST (DistanceFieldIncremental, AddingAndRemovingTheSameCellAndEdgeIds)
 TEST (DistanceFieldIncremental, AnUpdateOnlyTouchesItsNeighbourhood)
 TEST (DistanceFieldIncremental, ComputeIsExactWithABoundAndMatchesNavMapWithout)
 TEST (DistanceFieldIncremental, RandomUpdatesMatchARecomputationAndReportTheChanges)
 TEST (LayerChanges, HashFollowsChangesAndCopiesCarryPendingOnes)
 TEST (LayerChanges, OccupancyUpdatesAreRecorded)
 TEST (LayerChanges, SingleWritesAreRecordedOnceAndBulkWritesMarkTheLayer)

Typedef Documentation

◆ NavCelId

using NavCelId

Index of a triangle (NavCel) within the global mesh.

Function Documentation

◆ brute()

std::vector< float > brute ( const NavMap & nm,
const std::vector< NavCelId > & seeds,
bool boundary,
float maxd )

◆ TEST() [1/7]

TEST ( DistanceFieldIncremental ,
AddingAndRemovingTheSameCellAndEdgeIds  )

◆ TEST() [2/7]

TEST ( DistanceFieldIncremental ,
AnUpdateOnlyTouchesItsNeighbourhood  )

◆ TEST() [3/7]

TEST ( DistanceFieldIncremental ,
ComputeIsExactWithABoundAndMatchesNavMapWithout  )

◆ TEST() [4/7]

TEST ( DistanceFieldIncremental ,
RandomUpdatesMatchARecomputationAndReportTheChanges  )

◆ TEST() [5/7]

TEST ( LayerChanges ,
HashFollowsChangesAndCopiesCarryPendingOnes  )

◆ TEST() [6/7]

TEST ( LayerChanges ,
OccupancyUpdatesAreRecorded  )

◆ TEST() [7/7]

TEST ( LayerChanges ,
SingleWritesAreRecordedOnceAndBulkWritesMarkTheLayer  )