ToniRV / Kimera-VIO-Evaluation

Code to evaluate and tune SPARK VIO pipeline.
MIT License
21 stars 2 forks source link

Results yaml files not human readable #15

Closed marcusabate closed 3 years ago

marcusabate commented 5 years ago

Description: the results.yaml file that is the output of the evaluation pipeline includes data on ape, rpe trans, and rpe rot for each pipeline of each dataset. These are also used to create the aggregate ape boxplots and tex tables.

However, these files store the data from evo.core.metric as numpy arrays. When calling yaml.dump on non-python-primitives like this, the module stores the data in a format only readable by the same yaml loader. This isn't a problem if we use the same module to dump and load, but it would be a problem if:

Example:

absolute_errors: !!python/object:evo.core.result.Result
  info:
    est_name: estimate
    label: APE (m)
    ref_name: reference
    title: APE w.r.t. translation part (m)
  np_arrays:
    error_array:
    - !!python/object/apply:numpy.core.multiarray.scalar
      - &id001 !!python/object/apply:numpy.dtype
        args:
        - f8
        - 0
        - 1
        state: !!python/tuple
        - 3
        - <
        - null
        - null
        - null
        - -1
        - -1
        - 0
      - !!binary |
        av4nMtSZiz8=
    - !!python/object/apply:numpy.core.multiarray.scalar
      - *id001
      - !!binary |
        7RnRmUE5iT8=
    - !!python/object/apply:numpy.core.multiarray.scalar
      - *id001
      - !!binary |
        ooVHZvhrhD8=