예제 #1
0
    # Copy out the predictor settings to another dictionary.
    pred_settings = {
        'pred_binary': chasemapper_config['pred_binary'],
        'gfs_path': chasemapper_config['pred_gfs_directory'],
        'pred_model_download': chasemapper_config['pred_model_download']
    }

    # Copy out Offline Map Settings
    map_settings = {
        'tile_server_enabled': chasemapper_config['tile_server_enabled'],
        'tile_server_path': chasemapper_config['tile_server_path']
    }

    # Initialise Bearing store
    bearing_store = Bearings(
        socketio_instance=socketio,
        max_bearings=chasemapper_config['max_bearings'],
        max_bearing_age=chasemapper_config['max_bearing_age'])

    # Set speed gate for car position object
    car_track.heading_gate_threshold = chasemapper_config['car_speed_gate']

    # Start listeners using the default profile selection.
    start_listeners(
        chasemapper_config['profiles'][chasemapper_config['selected_profile']])

    # Start up the predictor, if enabled.
    if chasemapper_config['pred_enabled']:
        initPredictor()

    # Start up the Habitat Chase-Car Uploader, if enabled
    if chasemapper_config['habitat_upload_enabled']:
예제 #2
0
    pred_settings = {
        "pred_binary": chasemapper_config["pred_binary"],
        "gfs_path": chasemapper_config["pred_gfs_directory"],
        "pred_model_download": chasemapper_config["pred_model_download"],
    }

    # Copy out Offline Map Settings
    map_settings = {
        "tile_server_enabled": chasemapper_config["tile_server_enabled"],
        "tile_server_path": chasemapper_config["tile_server_path"],
    }

    # Initialise Bearing store
    bearing_store = Bearings(
        socketio_instance=socketio,
        max_bearings=chasemapper_config["max_bearings"],
        max_bearing_age=chasemapper_config["max_bearing_age"],
    )

    # Set speed gate for car position object
    car_track.heading_gate_threshold = chasemapper_config["car_speed_gate"]
    car_track.turn_rate_threshold = chasemapper_config["turn_rate_threshold"]

    # Start listeners using the default profile selection.
    start_listeners(
        chasemapper_config["profiles"][chasemapper_config["selected_profile"]])

    # Start up the predictor, if enabled.
    if chasemapper_config["pred_enabled"]:
        initPredictor()