def print_latency_statistics(self):
        """print_latency_statistics"""
        print "\n\n"
        print PrintColors.HEADER + "--- Planning Latency (ms) ---" + \
            PrintColors.ENDC
        StatisticalAnalyzer().print_statistical_results(self.module_latency)

        print PrintColors.HEADER + "--- Planning Trajectroy Type Distribution" \
                                   " ---" + PrintColors.ENDC
        DistributionAnalyzer().print_distribution_results(
            self.trajectory_type_dist)

        print PrintColors.HEADER + "--- Planning Estop Distribution" \
                                   " ---" + PrintColors.ENDC
        DistributionAnalyzer().print_distribution_results(
            self.estop_reason_dist)

        print PrintColors.HEADER + "--- Planning Error Code Distribution---" + \
            PrintColors.ENDC
        self.error_code_analyzer.print_results()
        print PrintColors.HEADER + "--- Planning Error Msg Distribution ---" + \
            PrintColors.ENDC
        self.error_msg_analyzer.print_results()

        print PrintColors.HEADER + "--- Planning Trajectory Frechet Distance (m) ---" + \
            PrintColors.ENDC
        StatisticalAnalyzer().print_statistical_results(self.frechet_distance_list)
Example #2
0
    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
    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
Example #6
0
    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()