Easy Navigation
Loading...
Searching...
No Matches
safety_channel_monitor_tests.cpp File Reference

SafetyChannelMonitor, with simulated times. More...

#include <chrono>
#include <cmath>
#include <limits>
#include <thread>
#include "gtest/gtest.h"
#include "easynav_system/safety/SafetyChannelMonitor.hpp"
Include dependency graph for safety_channel_monitor_tests.cpp:

Classes

class  SafetyChannelMonitor
 Turns the safety channel's SafetyStatus messages into what EasyNav applies. More...

Typedefs

using Condition = SafetyChannelMonitor::Condition

Functions

 TEST (SafetyChannelMonitorTest, AStatusIsValidUpToTheTimeoutAndStaleAfter)
 TEST (SafetyChannelMonitorTest, AValidStatusAfterAnInvalidOneIsApplied)
 TEST (SafetyChannelMonitorTest, AValidStatusIsAppliedAsIs)
 TEST (SafetyChannelMonitorTest, ConfigureForgetsTheLastStatus)
 TEST (SafetyChannelMonitorTest, EvaluationsCompareByStateAndCondition)
 TEST (SafetyChannelMonitorTest, InvalidStatusesAreAProtectiveStop)
 TEST (SafetyChannelMonitorTest, ReceivingAndEvaluatingFromDifferentThreads)
 TEST (SafetyChannelMonitorTest, TheSpeedLimitOnlyAppliesWhenFlagged)
 TEST (SafetyChannelMonitorTest, WithoutStatusItIsAProtectiveStop)

Detailed Description

SafetyChannelMonitor, with simulated times.

Typedef Documentation

◆ Condition

Function Documentation

◆ TEST() [1/9]

TEST ( SafetyChannelMonitorTest ,
AStatusIsValidUpToTheTimeoutAndStaleAfter  )

◆ TEST() [2/9]

TEST ( SafetyChannelMonitorTest ,
AValidStatusAfterAnInvalidOneIsApplied  )

◆ TEST() [3/9]

TEST ( SafetyChannelMonitorTest ,
AValidStatusIsAppliedAsIs  )

◆ TEST() [4/9]

TEST ( SafetyChannelMonitorTest ,
ConfigureForgetsTheLastStatus  )

◆ TEST() [5/9]

TEST ( SafetyChannelMonitorTest ,
EvaluationsCompareByStateAndCondition  )

◆ TEST() [6/9]

TEST ( SafetyChannelMonitorTest ,
InvalidStatusesAreAProtectiveStop  )

◆ TEST() [7/9]

TEST ( SafetyChannelMonitorTest ,
ReceivingAndEvaluatingFromDifferentThreads  )

◆ TEST() [8/9]

TEST ( SafetyChannelMonitorTest ,
TheSpeedLimitOnlyAppliesWhenFlagged  )

◆ TEST() [9/9]

TEST ( SafetyChannelMonitorTest ,
WithoutStatusItIsAProtectiveStop  )