ros-safety / software_watchdogs

A library of (software) watchdogs based on DDS Quality of Service (QoS) policies and ROS 2 lifecycle nodes.
Apache License 2.0
71 stars 17 forks source link

Adds tests to software watchdogs #11

Open norro opened 3 years ago

norro commented 3 years ago
norro commented 3 years ago

Sorry for the large PR. Once I activated testing, I had to do a lot of linting first. The only semantic change is 85a620002aa7a34639530ff62271000803e667ea, adding a launch test that

  1. Launches the watchdog
  2. Launches the talker and heartbeat
  3. Once heartbeat and watchdog are in sync, shuts down talker and heartbeat
  4. Monitors the watchdog for the expected output, i.e. lease expiry and its transition to 'inactive'

@gbiggs, @robbel I'll appreciate your feedback/review.