def __init__(self):
     """init"""
     self.module_latency = []
     self.trajectory_type_dist = {}
     self.estop_reason_dist = {}
     self.error_code_analyzer = ErrorCodeAnalyzer()
     self.error_msg_analyzer = ErrorMsgAnalyzer()
示例#2
0
    def __init__(self, is_simulation, is_sim):
        """init"""
        self.module_latency = []
        self.trajectory_type_dist = {}
        self.estop_reason_dist = {}
        self.error_code_analyzer = ErrorCodeAnalyzer()
        self.error_msg_analyzer = ErrorMsgAnalyzer()
        self.last_adc_trajectory = None
        self.frechet_distance_list = []
        self.is_simulation = is_simulation
        self.is_sim = is_sim
        self.hard_break_list = []
        self.total_cycle_num = 0
        self.init_point_curvature = []
        self.init_point_dcurvature = []
        self.init_point_accel = []
        self.init_point_decel = []

        self.last_init_point_t = None
        self.last_init_point = None

        self.centripetal_jerk_list = []

        self.breaking_2_3_cnt = 0
        self.breaking_3_5_cnt = 0
        self.breaking_5_cnt = 0
        self.throttle_2_3_cnt = 0
        self.throttle_3_5_cnt = 0
        self.throttle_5_cnt = 0
示例#3
0
 def __init__(self):
     """init"""
     self.module_latency = []
     self.error_code_analyzer = ErrorCodeAnalyzer()
     self.error_msg_analyzer = ErrorMsgAnalyzer()
     self.lon_station_error = []
     self.lon_speed_error = []
     self.lat_lateral_error = []
     self.lat_heading_error = []
示例#4
0
 def __init__(self):
     """init"""
     self.module_latency = []
     self.trajectory_type_dist = {}
     self.estop_reason_dist = {}
     self.error_code_analyzer = ErrorCodeAnalyzer()
     self.error_msg_analyzer = ErrorMsgAnalyzer()
     self.last_adc_trajectory = None
     self.frechet_distance_list = []
 def __init__(self, is_simulation):
     """init"""
     self.module_latency = []
     self.trajectory_type_dist = {}
     self.estop_reason_dist = {}
     self.error_code_analyzer = ErrorCodeAnalyzer()
     self.error_msg_analyzer = ErrorMsgAnalyzer()
     self.last_adc_trajectory = None
     self.frechet_distance_list = []
     self.is_simulation = is_simulation
     self.hard_break_list = []
     self.total_cycle_num = 0
示例#6
0
    def __init__(self, arguments):
        """init"""
        self.module_latency = []
        self.trajectory_type_dist = {}
        self.estop_reason_dist = {}
        self.error_code_analyzer = ErrorCodeAnalyzer()
        self.error_msg_analyzer = ErrorMsgAnalyzer()
        self.last_adc_trajectory = None
        self.frechet_distance_list = []
        self.is_sim = arguments.simulation
        self.hard_break_list = []
        self.total_cycle_num = 0

        self.curvature_analyzer = Curvature()
        self.frame_count_analyzer = FrameCount()
        self.lat_acceleration_analyzer = LatAcceleration()
        self.lon_acceleration_analyzer = LonAcceleration()
        self.latency_analyzer = Latency()
        self.reference_line = ReferenceLine()

        self.bag_start_time_t = None
        self.print_acc = arguments.showacc
 def __init__(self):
     """init"""
     self.module_latency = []
     self.error_code_analyzer = ErrorCodeAnalyzer()
     self.error_msg_analyzer = ErrorMsgAnalyzer()
示例#8
0
    def __init__(self, is_simulation, is_sim):
        """init"""
        self.module_latency = []
        self.trajectory_type_dist = {}
        self.estop_reason_dist = {}
        self.error_code_analyzer = ErrorCodeAnalyzer()
        self.error_msg_analyzer = ErrorMsgAnalyzer()
        self.last_adc_trajectory = None
        self.frechet_distance_list = []
        self.is_simulation = is_simulation
        self.is_sim = is_sim
        self.hard_break_list = []
        self.total_cycle_num = 0

        self.init_point_curvature = []
        self.init_point_dcurvature = []
        self.init_point_accel = []
        self.init_point_decel = []

        self.last_init_point_t = None
        self.last_init_point_a = None
        self.last_init_point = None

        self.centripetal_jerk_list = []
        self.centripetal_accel_list = []
        self.jerk_list = []

        # [2, 4) unit m/s^2
        self.ACCEL_M_LB = 2
        self.ACCEL_M_UB = 4
        self.accel_medium_cnt = 0

        # [4, ) unit m/s^2
        self.ACCEL_H_LB = 4
        self.accel_high_cnt = 0

        # [-4, -2)
        self.DECEL_M_LB = -4
        self.DECEL_M_UB = -2
        self.decel_medium_cnt = 0

        # [-4, )
        self.DECEL_H_UB = -4
        self.decel_high_cnt = 0

        # [1,2) (-2, -1]
        self.JERK_M_LB_P = 1
        self.JERK_M_UB_P = 2
        self.JERK_M_LB_N = -2
        self.JERK_M_UB_N = -1
        self.jerk_medium_cnt = 0

        # [2, inf) (-inf, -2]
        self.JERK_H_LB_P = 2
        self.JERK_H_UB_N = -2
        self.jerk_high_cnt = 0

        # [1, 2) [-2, -1)
        self.LAT_ACCEL_M_LB_P = 1
        self.LAT_ACCEL_M_UB_P = 2
        self.LAT_ACCEL_M_LB_N = -2
        self.LAT_ACCEL_M_UB_N = -1
        self.lat_accel_medium_cnt = 0

        # [2, inf)  [-inf,-2)
        self.LAT_ACCEL_H_LB_P = 2
        self.LAT_ACCEL_H_UB_N = -2
        self.lat_accel_high_cnt = 0

        # [0.5,1) [-1, -0.5)
        self.LAT_JERK_M_LB_P = 0.5
        self.LAT_JERK_M_UB_P = 1
        self.LAT_JERK_M_LB_N = -1
        self.LAT_JERK_M_UB_N = -0.5
        self.lat_jerk_medium_cnt = 0

        # [1, inf)  [-inf,-1)
        self.LAT_JERK_H_LB_P = 1
        self.LAT_JERK_H_UB_N = -1
        self.lat_jerk_high_cnt = 0
示例#9
0
    def __init__(self, arguments):
        """init"""
        self.module_latency = []
        self.trajectory_type_dist = {}
        self.estop_reason_dist = {}
        self.error_code_analyzer = ErrorCodeAnalyzer()
        self.error_msg_analyzer = ErrorMsgAnalyzer()
        self.last_adc_trajectory = None
        self.frechet_distance_list = []
        self.is_sim = arguments.simulation
        self.hard_break_list = []
        self.total_cycle_num = 0

        self.init_point_curvature = []
        self.init_point_dcurvature = []
        self.init_point_accel = []
        self.init_point_decel = []

        self.last_init_point_t = None
        self.last_init_point_a = None
        self.last_init_point = None

        self.centripetal_jerk_list = []
        self.centripetal_accel_list = []
        self.jerk_list = []

        self.latency_list = []

        # [2, 4) unit m/s^2
        self.ACCEL_M_LB = 2
        self.ACCEL_M_UB = 4
        self.accel_medium_cnt = 0

        # [4, ) unit m/s^2
        self.ACCEL_H_LB = 4
        self.accel_high_cnt = 0

        # [-4, -2)
        self.DECEL_M_LB = -4
        self.DECEL_M_UB = -2
        self.decel_medium_cnt = 0

        # [-4, )
        self.DECEL_H_UB = -4
        self.decel_high_cnt = 0

        # [1,2) (-2, -1]
        self.JERK_M_LB_P = 1
        self.JERK_M_UB_P = 2
        self.JERK_M_LB_N = -2
        self.JERK_M_UB_N = -1
        self.jerk_medium_cnt = 0

        # [2, inf) (-inf, -2]
        self.JERK_H_LB_P = 2
        self.JERK_H_UB_N = -2
        self.jerk_high_cnt = 0

        # [1, 2) [-2, -1)
        self.LAT_ACCEL_M_LB_P = 1
        self.LAT_ACCEL_M_UB_P = 2
        self.LAT_ACCEL_M_LB_N = -2
        self.LAT_ACCEL_M_UB_N = -1
        self.lat_accel_medium_cnt = 0

        # [2, inf)  [-inf,-2)
        self.LAT_ACCEL_H_LB_P = 2
        self.LAT_ACCEL_H_UB_N = -2
        self.lat_accel_high_cnt = 0

        # [0.5,1) [-1, -0.5)
        self.LAT_JERK_M_LB_P = 0.5
        self.LAT_JERK_M_UB_P = 1
        self.LAT_JERK_M_LB_N = -1
        self.LAT_JERK_M_UB_N = -0.5
        self.lat_jerk_medium_cnt = 0

        # [1, inf)  [-inf,-1)
        self.LAT_JERK_H_LB_P = 1
        self.LAT_JERK_H_UB_N = -1
        self.lat_jerk_high_cnt = 0

        self.bag_start_time_t = None
        self.print_acc = arguments.showacc

        self.rl_is_offroad_cnt = 0
        self.rl_minimum_boundary = sys.float_info.max
        self.rl_avg_kappa_list = []
        self.rl_avg_dkappa_list = []