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

SystemNode tells which EasyNav nodes have use_sim_time and no /clock (their components never run), and warns about them while Active. More...

#include <algorithm>
#include <atomic>
#include <chrono>
#include <cstdarg>
#include <cstdio>
#include <string>
#include <thread>
#include <vector>
#include "easynav_system/SystemNode.hpp"
#include "lifecycle_msgs/msg/state.hpp"
#include "lifecycle_msgs/msg/transition.hpp"
#include "rclcpp/rclcpp.hpp"
#include "rcutils/logging.h"
#include "rosgraph_msgs/msg/clock.hpp"
#include "gtest/gtest.h"
Include dependency graph for system_clock_watchdog_tests.cpp:

Classes

class  SystemClockWatchdogTest

Functions

 TEST_F (SystemClockWatchdogTest, AReactivationRestartsThePeriod)
 TEST_F (SystemClockWatchdogTest, OnceTheClockArrivesNoneIsListed)
 TEST_F (SystemClockWatchdogTest, OnlyTheNodesWithSimTimeAreListed)
 TEST_F (SystemClockWatchdogTest, WhileActiveItWarnsEveryPeriod)
 TEST_F (SystemClockWatchdogTest, WithoutSimTimeEveryClockRuns)
 TEST_F (SystemClockWatchdogTest, WithoutSimTimeItNeverWarns)
 TEST_F (SystemClockWatchdogTest, WithSimTimeAndNoClockEveryNodeIsListed)

Detailed Description

SystemNode tells which EasyNav nodes have use_sim_time and no /clock (their components never run), and warns about them while Active.

Function Documentation

◆ TEST_F() [1/7]

TEST_F ( SystemClockWatchdogTest ,
AReactivationRestartsThePeriod  )

◆ TEST_F() [2/7]

TEST_F ( SystemClockWatchdogTest ,
OnceTheClockArrivesNoneIsListed  )

◆ TEST_F() [3/7]

TEST_F ( SystemClockWatchdogTest ,
OnlyTheNodesWithSimTimeAreListed  )

◆ TEST_F() [4/7]

TEST_F ( SystemClockWatchdogTest ,
WhileActiveItWarnsEveryPeriod  )

◆ TEST_F() [5/7]

TEST_F ( SystemClockWatchdogTest ,
WithoutSimTimeEveryClockRuns  )

◆ TEST_F() [6/7]

TEST_F ( SystemClockWatchdogTest ,
WithoutSimTimeItNeverWarns  )

◆ TEST_F() [7/7]

TEST_F ( SystemClockWatchdogTest ,
WithSimTimeAndNoClockEveryNodeIsListed  )