def print_latency_statistics(self): """print_latency_statistics""" print("\n\n") print(PrintColors.HEADER + "--- Control Latency (ms) ---" + \ PrintColors.ENDC) analyzer = StatisticalAnalyzer() analyzer.print_statistical_results(self.module_latency) print(PrintColors.HEADER + "--- station error ---" + \ PrintColors.ENDC) analyzer.print_statistical_results(self.lon_station_error) print(PrintColors.HEADER + "--- speed error ---" + \ PrintColors.ENDC) analyzer.print_statistical_results(self.lon_speed_error) print(PrintColors.HEADER + "--- lateral error ---" + \ PrintColors.ENDC) analyzer.print_statistical_results(self.lat_lateral_error) print(PrintColors.HEADER + "--- heading error ---" + \ PrintColors.ENDC) analyzer.print_statistical_results(self.lat_heading_error) print(PrintColors.HEADER + "--- Control Error Code Distribution ---" + \ PrintColors.ENDC) self.error_code_analyzer.print_results() print(PrintColors.HEADER + "--- Control Error Msg Distribution ---" + \ PrintColors.ENDC) self.error_msg_analyzer.print_results()
def print_endtoend_latency(self): """ Print end to end latency """ print("\n\n") for m in self.modules: print(PrintColors.HEADER + "* End to End (" + m + ") Latency (ms)" + PrintColors.ENDC) analyzer = StatisticalAnalyzer() analyzer.print_statistical_results(self.endtoend_latency[m]) print(PrintColors.FAIL + " - MISS # OF LIDAR: " + \ str(len(self.unprocessed_lidar_timestamps[m])) + \ PrintColors.ENDC)
def print_latency_statistics(self): """print_latency_statistics""" print "\n\n" print PrintColors.HEADER + "--- Control Latency (ms) ---" + \ PrintColors.ENDC analyzer = StatisticalAnalyzer() analyzer.print_statistical_results(self.module_latency) print PrintColors.HEADER + "--- Control Error Code Distribution ---" + \ PrintColors.ENDC self.error_code_analyzer.print_results() print PrintColors.HEADER + "--- Control Error Msg Distribution ---" + \ PrintColors.ENDC self.error_msg_analyzer.print_results()
def print_endtoend_latency(self): """print_endtoend_latency""" print "\n\n" print PrintColors.HEADER + "* End to End (Control) Latency (ms)" + \ PrintColors.ENDC analyzer = StatisticalAnalyzer() analyzer.print_statistical_results(self.control_endtoend_latency) print PrintColors.FAIL + " - MISS # OF LIDAR: " + \ str(len(self.control_unprocessed_lidar_timestamps)) + \ PrintColors.ENDC print PrintColors.HEADER + "* End to End (Planning) Latency (ms)" + \ PrintColors.ENDC analyzer = StatisticalAnalyzer() analyzer.print_statistical_results(self.planning_endtoend_latency) print PrintColors.FAIL + " - MISS # OF LIDAR: " + \ str(len(self.planning_unprocessed_lidar_timestamps)) + \ PrintColors.ENDC