Giter VIP home page Giter VIP logo

Comments (9)

BUG423 avatar BUG423 commented on May 31, 2024 1

Your problem stems from a path error, when you are in a docker environment, the path name is different from your original path. Most importantly, ${host_name} refers to the original "/home/username". In the terminal, you can use the "tab" button to see if you can automatically complete the path; Or check the file directory that you are familiar with docker first. Good luck.

from videoimucapture-android.

sajjad-hm avatar sajjad-hm commented on May 31, 2024

@BUG423 Can you please share how you have calibrated and converted to rosbag? I find it confusing following the instructions of README in calibration. I'm a newbie in this field. Sorry, if I'm asking some dumb questions.

from videoimucapture-android.

BUG423 avatar BUG423 commented on May 31, 2024

from videoimucapture-android.

BUG423 avatar BUG423 commented on May 31, 2024

@BUG423 Can you please share how you have calibrated and converted to rosbag? I find it confusing following the instructions of README in calibration. I'm a newbie in this field. Sorry, if I'm asking some dumb questions.

I've closed this question and the reason for this issue is that I forgot to change the file name, which is a very stupid mistake. I have compiled my own calibration process, including some of my own understandings, and I have collected some successful stories of others here. But these are all Chinese, hope it helps you.
You can visit this website at: https://www.wolai.com/xmuer/m4329RZnrrvdg5HUw3FxcQ
also welcome to contact me by email: [email protected]

from videoimucapture-android.

sajjad-hm avatar sajjad-hm commented on May 31, 2024

Thank you so much!

from videoimucapture-android.

sajjad-hm avatar sajjad-hm commented on May 31, 2024

I'm having this problem. I have checked my path. But still, it's showing No such file or directory

sajjad@sajjad-VirtualBox:~/VideoIMUCapture-Android/calibration$ SUDO=1 DATA=/home/sajjad/2023_07_29_21_13_31 ./run_dockerhub.sh
[sudo] password for sajjad: 
Using default tag: latest
latest: Pulling from davidgillsjo/videoimucapture-calibration
Digest: sha256:2c531c91c19d49df7145dcc8dc1887eb336dddea180ded87bfdd10fa6f520fcc
Status: Image is up to date for davidgillsjo/videoimucapture-calibration:latest
docker.io/davidgillsjo/videoimucapture-calibration:latest
groups: cannot find name for group ID 1000
sajjad@06e13ec48ab5:/calibration$ python data2statistics.py
/usr/lib/python2.7/dist-packages/matplotlib/font_manager.py:273: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  warnings.warn('Matplotlib is building the font cache using fc-list. This may take a moment.')
usage: data2statistics.py [-h] [--result-dir RESULT_DIR] [--hide-plot]
                          proto_file
data2statistics.py: error: too few arguments
sajjad@06e13ec48ab5:/calibration$ python data2statistics.py /home/sajjad/2023_07_29_21_13_31/video_meta.pb3
Traceback (most recent call last):
  File "data2statistics.py", line 168, in <module>
    with open(args.proto_file,'rb') as f:
IOError: [Errno 2] No such file or directory: '/home/sajjad/2023_07_29_21_13_31/video_meta.pb3'
sajjad@06e13ec48ab5:/calibration$ 

from videoimucapture-android.

sajjad-hm avatar sajjad-hm commented on May 31, 2024

It works now, thanks for helping me out. It seems I can't generate kalibr.yaml file. It's showing this error.

sajjad@71a676657caa:/host_home/2023_08_01_23_08_39/kalibr$ kalibr_calibrate_cameras --bag kalibr.bag --target target.yaml --models pinhole-equi --topics /cam0/image_raw
importing libraries
the rosdep view is empty: call 'sudo rosdep init' and 'rosdep update'
Traceback (most recent call last):
  File "/kalibr_workspace/devel/bin/kalibr_calibrate_cameras", line 15, in <module>
    exec(compile(fh.read(), python_script, 'exec'), context)
  File "/kalibr_workspace/src/Kalibr/aslam_offline_calibration/kalibr/python/kalibr_calibrate_cameras", line 447, in <module>
    main()
  File "/kalibr_workspace/src/Kalibr/aslam_offline_calibration/kalibr/python/kalibr_calibrate_cameras", line 152, in main
    targetConfig = kc.CalibrationTargetParameters(parsed.targetYaml)
  File "/kalibr_workspace/src/Kalibr/aslam_offline_calibration/kalibr/python/kalibr_common/ConfigReader.py", line 529, in __init__
    ParametersBase.__init__(self, yamlFile, "CalibrationTargetConfig", createYaml)
  File "/kalibr_workspace/src/Kalibr/aslam_offline_calibration/kalibr/python/kalibr_common/ConfigReader.py", line 200, in __init__
    self.data = self.readYaml()
  File "/kalibr_workspace/src/Kalibr/aslam_offline_calibration/kalibr/python/kalibr_common/ConfigReader.py", line 211, in readYaml
    self.raiseError( "Could not read configuration from {0}".format(self.yamlFile) )
  File "/kalibr_workspace/src/Kalibr/aslam_offline_calibration/kalibr/python/kalibr_common/ConfigReader.py", line 234, in raiseError
    raise RuntimeError( "{0}{1}".format(header, message) )
RuntimeError: [CalibrationTargetConfig Reader]: Could not read configuration from target.yaml
sajjad@71a676657caa:/host_home/2023_08_01_23_08_39/kalibr$ 

from videoimucapture-android.

BUG423 avatar BUG423 commented on May 31, 2024

It works now, thanks for helping me out. It seems I can't generate kalibr.yaml file. It's showing this error.

sajjad@71a676657caa:/host_home/2023_08_01_23_08_39/kalibr$ kalibr_calibrate_cameras --bag kalibr.bag --target target.yaml --models pinhole-equi --topics /cam0/image_raw
importing libraries
the rosdep view is empty: call 'sudo rosdep init' and 'rosdep update'
Traceback (most recent call last):
  File "/kalibr_workspace/devel/bin/kalibr_calibrate_cameras", line 15, in <module>
    exec(compile(fh.read(), python_script, 'exec'), context)
  File "/kalibr_workspace/src/Kalibr/aslam_offline_calibration/kalibr/python/kalibr_calibrate_cameras", line 447, in <module>
    main()
  File "/kalibr_workspace/src/Kalibr/aslam_offline_calibration/kalibr/python/kalibr_calibrate_cameras", line 152, in main
    targetConfig = kc.CalibrationTargetParameters(parsed.targetYaml)
  File "/kalibr_workspace/src/Kalibr/aslam_offline_calibration/kalibr/python/kalibr_common/ConfigReader.py", line 529, in __init__
    ParametersBase.__init__(self, yamlFile, "CalibrationTargetConfig", createYaml)
  File "/kalibr_workspace/src/Kalibr/aslam_offline_calibration/kalibr/python/kalibr_common/ConfigReader.py", line 200, in __init__
    self.data = self.readYaml()
  File "/kalibr_workspace/src/Kalibr/aslam_offline_calibration/kalibr/python/kalibr_common/ConfigReader.py", line 211, in readYaml
    self.raiseError( "Could not read configuration from {0}".format(self.yamlFile) )
  File "/kalibr_workspace/src/Kalibr/aslam_offline_calibration/kalibr/python/kalibr_common/ConfigReader.py", line 234, in raiseError
    raise RuntimeError( "{0}{1}".format(header, message) )
RuntimeError: [CalibrationTargetConfig Reader]: Could not read configuration from target.yaml
sajjad@71a676657caa:/host_home/2023_08_01_23_08_39/kalibr$ 

Hello, I have not encountered your problem, I suggest you start from scratch and re-do the whole process. The tutorial I provided is more detailed, maybe you missed it at some point. In addition, judging from the error message, your "target.yaml" may have a problem, you can check the file content to confirm whether there is a problem, here is my own file content (need to change according to the actual calibration board information):
image

zss@zs:~/VideoIMUCapture-Android/dataset/Video/kalibr$ cat target.yaml
tagCols: 6
tagRows: 6
tagSize: 0.025
tagSpacing: 0.3
target_type: aprilgrid

from videoimucapture-android.

sajjad-hm avatar sajjad-hm commented on May 31, 2024

It works now, thanks for helping me out. It seems I can't generate kalibr.yaml file. It's showing this error.

sajjad@71a676657caa:/host_home/2023_08_01_23_08_39/kalibr$ kalibr_calibrate_cameras --bag kalibr.bag --target target.yaml --models pinhole-equi --topics /cam0/image_raw
importing libraries
the rosdep view is empty: call 'sudo rosdep init' and 'rosdep update'
Traceback (most recent call last):
  File "/kalibr_workspace/devel/bin/kalibr_calibrate_cameras", line 15, in <module>
    exec(compile(fh.read(), python_script, 'exec'), context)
  File "/kalibr_workspace/src/Kalibr/aslam_offline_calibration/kalibr/python/kalibr_calibrate_cameras", line 447, in <module>
    main()
  File "/kalibr_workspace/src/Kalibr/aslam_offline_calibration/kalibr/python/kalibr_calibrate_cameras", line 152, in main
    targetConfig = kc.CalibrationTargetParameters(parsed.targetYaml)
  File "/kalibr_workspace/src/Kalibr/aslam_offline_calibration/kalibr/python/kalibr_common/ConfigReader.py", line 529, in __init__
    ParametersBase.__init__(self, yamlFile, "CalibrationTargetConfig", createYaml)
  File "/kalibr_workspace/src/Kalibr/aslam_offline_calibration/kalibr/python/kalibr_common/ConfigReader.py", line 200, in __init__
    self.data = self.readYaml()
  File "/kalibr_workspace/src/Kalibr/aslam_offline_calibration/kalibr/python/kalibr_common/ConfigReader.py", line 211, in readYaml
    self.raiseError( "Could not read configuration from {0}".format(self.yamlFile) )
  File "/kalibr_workspace/src/Kalibr/aslam_offline_calibration/kalibr/python/kalibr_common/ConfigReader.py", line 234, in raiseError
    raise RuntimeError( "{0}{1}".format(header, message) )
RuntimeError: [CalibrationTargetConfig Reader]: Could not read configuration from target.yaml
sajjad@71a676657caa:/host_home/2023_08_01_23_08_39/kalibr$ 

Hello, I have not encountered your problem, I suggest you start from scratch and re-do the whole process. The tutorial I provided is more detailed, maybe you missed it at some point. In addition, judging from the error message, your "target.yaml" may have a problem, you can check the file content to confirm whether there is a problem, here is my own file content (need to change according to the actual calibration board information):
image

zss@zs:~/VideoIMUCapture-Android/dataset/Video/kalibr$ cat target.yaml
tagCols: 6
tagRows: 6
tagSize: 0.025
tagSpacing: 0.3
target_type: aprilgrid

@BUG423
Thanks, I have solved this problem. I forgot to add target.yaml file in the appropriate way.

from videoimucapture-android.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.