ethz-asl / kalibr

The Kalibr visual-inertial calibration toolbox
Other
4.39k stars 1.41k forks source link

ImportError: No module named rosbag #449

Closed HerdGold3 closed 2 years ago

HerdGold3 commented 3 years ago

When I want to calibrate the d435i, the error is as follows: anderath@anderath-OMEN-by-HP-Laptop:~$ kalibr_calibrate_cameras --target ~/kalibr_ws/src/Kalibr/data/checkerboard.yaml --bag ~/kalibr_ws/src/Kalibr/data/camd435i.bag --models pinhole-equi --topics /color --show-extractio importing libraries Traceback (most recent call last): File "/home/anderath/kalibr_ws/devel/bin/kalibr_calibrate_cameras", line 6, in exec(fh.read()) File "", line 3, in ImportError: No module named rosbag Can anyone help me? thanks!

hankhsueh commented 3 years ago

Maybe you can try this "conda install -c conda-forge ros-rosbag". Refer from : https://stackoverflow.com/questions/57254026/modulenotfounderror-no-module-named-rosbag-with-pip

HerdGold3 commented 3 years ago

Hi,hankhsudh First, thank you very much for answering my question I install rosbag according to your method, but the terminal has been reporting an error cycle, as shown in the figure. 终端截图 And the link you gave me is blank after I open it. I don't know what to do now.

goldbattle commented 2 years ago

You need to make sure you source your ros environment. I recommend running through rosrun kalibr <your_cmd>. Please follow the official install instructions (and PR https://github.com/ethz-asl/kalibr/pull/515)