31 import oem7_message_test
33 PKG =
'novatel_oem7_driver' 38 Built-in Self-Test. Runs in parallel with a 'live' driver, supports correct recording of topics; 39 and analyzes message rates. 42 super(self.__class__, self).
__init__(*args)
48 Removes stale test .bag; delays execution of analysis until current recording is complete. 50 if os.path.exists(self.bist_bag):
51 os.remove(self.bist_bag)
53 delay_sec = float(rospy.get_param(
'~duration', 60.))
54 print(
"Sleeping for {0} sec to allow topics to be recorded...".format(delay_sec))
55 rospy.sleep(delay_sec)
60 Analyzes message rates. 66 if __name__ ==
'__main__':
68 Oem7BIST.bist_bag = sys.argv[1]
71 rostest.run(PKG, NAME, Oem7BIST, sys.argv)
def analyze_hz(bag_name, output_csv)
def test_1_recording(self)
def test_2_analysis(self)