NavMap
Loading...
Searching...
No Matches
test_combine.cpp File Reference
#include <gtest/gtest.h>
#include <algorithm>
#include <cmath>
#include <cstdint>
#include <limits>
#include <string>
#include <vector>
#include "navmap_core/Combine.hpp"
#include "navmap_core/Costs.hpp"
#include "navmap_core/NavMap.hpp"
Include dependency graph for test_combine.cpp:

Classes

struct  CombineOptions
 Options of combine_layer(). More...

Typedefs

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

Enumerations

enum class  CombineOp
 How a source value s is combined into the destination value d (as costmap_2d's update modes). More...

Functions

 TEST (Combine, AddSaturatesAtTheCapAndAtTheTypeRange)
 TEST (Combine, APriorSurvivesClearingTheSensorLayer)
 TEST (Combine, EachOperatorOnCostLayersWithUnknown)
 TEST (Combine, InvalidRequestsAreRejected)
 TEST (Combine, MixedTypesConvertAndUnknownsAreEachLayersOwn)
 TEST (Combine, OnlyTheGivenCells)
 TEST (Combine, ProvenanceRecordsTheDecidingSource)
 TEST (Combine, ReturnsTheChangedCellsAndMarksOnlyThem)
 TEST (Combine, WithoutDeclaredUnknownsEveryValueCounts)

Variables

const std::vector< uint8_t > D = {10, 50, U, 40, U, 0}
const std::vector< uint8_t > S = {50, 10, 30, U, U, 0}

Typedef Documentation

◆ NavCelId

using NavCelId

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

Enumeration Type Documentation

◆ CombineOp

enum class CombineOp : uint8_t
strong

How a source value s is combined into the destination value d (as costmap_2d's update modes).

Function Documentation

◆ TEST() [1/9]

TEST ( Combine ,
AddSaturatesAtTheCapAndAtTheTypeRange  )

◆ TEST() [2/9]

TEST ( Combine ,
APriorSurvivesClearingTheSensorLayer  )

◆ TEST() [3/9]

TEST ( Combine ,
EachOperatorOnCostLayersWithUnknown  )

◆ TEST() [4/9]

TEST ( Combine ,
InvalidRequestsAreRejected  )

◆ TEST() [5/9]

TEST ( Combine ,
MixedTypesConvertAndUnknownsAreEachLayersOwn  )

◆ TEST() [6/9]

TEST ( Combine ,
OnlyTheGivenCells  )

◆ TEST() [7/9]

TEST ( Combine ,
ProvenanceRecordsTheDecidingSource  )

◆ TEST() [8/9]

TEST ( Combine ,
ReturnsTheChangedCellsAndMarksOnlyThem  )

◆ TEST() [9/9]

TEST ( Combine ,
WithoutDeclaredUnknownsEveryValueCounts  )

Variable Documentation

◆ D

const std::vector<uint8_t> D = {10, 50, U, 40, U, 0}

◆ S

const std::vector<uint8_t> S = {50, 10, 30, U, U, 0}