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

Could not read configuration from imu_adis16448.yaml #80

Closed
wyycv opened this issue Oct 30, 2016 · 7 comments
Closed

Could not read configuration from imu_adis16448.yaml #80

wyycv opened this issue Oct 30, 2016 · 7 comments

Comments

@wyycv
Copy link

wyycv commented Oct 30, 2016

Hello,I have successfully installed kalibr from source and downloaded your sample datasets to run the example using the following command
kalibr_calibrate_imu_camera --target april_6x6.yaml --cam camchain.yaml --imu imu_adis16448.yaml --bag dynamic.bag --bag-from-to 5 45

but there is an error:
RuntimeError: [ImuConfig Reader]: Could not read configuration from imu_adis16448.yaml

this is the log:

 Initializing IMUs:
 Traceback_ (most recent call last):
  File "/home/yanyan/kalibr_workspace/devel/bin/kalibr_calibrate_imu_camera", line 6, in <module>
    exec(fh.read())
  File "<string>", line 236, in <module>
  File "<string>", line 147, in main
  File "/home/yanyan/kalibr_workspace/src/Kalibr/aslam_offline_calibration/kalibr/python/kalibr_common/ConfigReader.py", line 320, in __init__
    ParametersBase.__init__(self, yamlFile, "ImuConfig", createYaml)
  File "/home/yanyan/kalibr_workspace/src/Kalibr/aslam_offline_calibration/kalibr/python/kalibr_common/ConfigReader.py", line 149, in __init__
    self.data = self.readYaml()
  File "/home/yanyan/kalibr_workspace/src/Kalibr/aslam_offline_calibration/kalibr/python/kalibr_common/ConfigReader.py", line 160, in readYaml
    self.raiseError( "Could not read configuration from {0}".format(self.yamlFile) )
  File "/home/yanyan/kalibr_workspace/src/Kalibr/aslam_offline_calibration/kalibr/python/kalibr_common/ConfigReader.py", line 183, in raiseError
    raise RuntimeError( "{0}{1}".format(header, message) )\

Can anyone tell me why it happened and how to solve it.

Thanks!

@rehderj
Copy link
Contributor

rehderj commented Oct 30, 2016

Hi,
thanks for using our toolbox! There are two possible reasons: Either the file cannot be found or it is malformed. If you followed the instructions in the wiki and downloaded the yaml there, it is likely the first. So please make sure that all files exist and all paths are correct.
Also, please close this issue if your problem could be solved.
Cheers!

@wyycv wyycv closed this as completed Oct 31, 2016
@SubMishMar
Copy link

I am having the same issue.. where should I keep the downloaded yaml files so that the program is able to find them?

@SubMishMar
Copy link

I figured it out had to give the full path to the file.. eg:

kalibr_calibrate_imu_camera --target /home/subodh/Downloads/dynamic/april_6x6.yaml --cam /home/subodh/Downloads/dynamic/camchain.yaml --imu /home/subodh/Downloads/dynamic/imu_adis16448.yaml --bag /home/subodh/Downloads/dynamic/dynamic.bag --bag-from-to 5 45

@schneith
Copy link

schneith commented May 2, 2018

If you are using the CDE package that might be caused but the translation of paths; which needs a full path. The compiled version should work with relative paths.

@SubMishMar
Copy link

Yeah I made it work by providing the full path.. thanks anyway :)

@wojiaozhupengfei
Copy link

This problem is the same as yours. The reason is that the dynamic folder is placed directly in the workspace. You should extract the yaml file in the workspace, or dynamic should be added to the path,eg:
kalibr_calibrate_imu_camera --target dynamic/april_6x6.yaml --cam dynamic/camchain.yaml --imu dynamic/imu_adis16448.yaml --bag dynamic/dynamic.bag --bag-from-to 5 45

@suho0515
Copy link

I figured it out had to give the full path to the file.. eg:

kalibr_calibrate_imu_camera --target /home/subodh/Downloads/dynamic/april_6x6.yaml --cam /home/subodh/Downloads/dynamic/camchain.yaml --imu /home/subodh/Downloads/dynamic/imu_adis16448.yaml --bag /home/subodh/Downloads/dynamic/dynamic.bag --bag-from-to 5 45

thanks! it worked perfectly!

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

6 participants