Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plaza_experiments.py: AssertionError: Found 0 files with extension _DR.csv but expected 1. #1

Open
adthoms opened this issue Oct 2, 2023 · 0 comments

Comments

@adthoms
Copy link

adthoms commented Oct 2, 2023

when running

python3 plaza_experiments.py

after fixing a bug in lines:

PLAZA_ORIGINAL_DATA_DIRS = {
"plaza1": "/home/alan/experimental_data/plaza/Plaza1",
"plaza2": "/home/alan/experimental_data/plaza/Plaza2",
}

to:

    PLAZA_ORIGINAL_DATA_DIRS = {
        "plaza1": f"{DATA_DIR}/plaza/plaza1",
        "plaza2": f"{DATA_DIR}/plaza/plaza2",
    }

The following error is reproduced:

Traceback (most recent call last):
  File "/home/alex/catkin_ws/src/cora-experiments/experiments/plaza_experiments.py", line 49, in <module>
    pyfg = parse_plaza_files(orig_data_dir)
  File "/home/alex/catkin_ws/src/PyFactorGraph/py_factor_graph/io/plaza_experiments.py", line 297, in parse_plaza_files
    data_files = PlazaDataFiles(dirpath)
  File "<attrs generated init py_factor_graph.io.plaza_experiments.PlazaDataFiles>", line 5, in __init__
  File "/home/alex/catkin_ws/src/PyFactorGraph/py_factor_graph/io/plaza_experiments.py", line 80, in __attrs_post_init__
    self.odom_file = _get_file_with_extension(all_files, ODOM_EXTENSION)
  File "/home/alex/catkin_ws/src/PyFactorGraph/py_factor_graph/io/plaza_experiments.py", line 54, in _get_file_with_extension
    len(candidate_files) == 1
AssertionError: Found 0 files with extension _DR.csv but expected 1.

@alanpapalia it appears that additional files (from /home/alan/experimental_data/plaza/Plaza1 and /home/alan/experimental_data/plaza/Plaza2) are required. The link to the plaza dataset in the original paper appears broken, so I am unable to add them myself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant