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

Version of kitti2bag available with pip mixed up width/height in camera_info #42

Open
thully opened this issue May 16, 2019 · 3 comments

Comments

@thully
Copy link

thully commented May 16, 2019

After installing kitti2bag with pip, I noticed that the camera_info width and height are mixed up in the bag file output by the tool. This issue was fixed in the repository, but the latest release (2 years old) doesn't reflect this. Could this be fixed, even just as a one-line 1.5.1 fix?

@YilmazKadir
Copy link

Yeah, it took so much time for me to realize that. Please fix this.

@yf26
Copy link

yf26 commented Sep 26, 2020

Just need to swap calib.height and calib.width in line 117 of file kitti2bag.py. Then it works!

@sreeharshaparuchur1
Copy link

Hey, so you can solve this issue by cloning kitti2bag in your catkin/src workspace. Build the ws (preferably using catkin build) and source the setup file. Now, navigate to ./catkin_ws/src/kitti2bag/kitti2bag, you'll find a __main__.py script. In that, change the first line from from .kitti2bag import run_kitti2bag to from kitti2bag import run_kitti2bag. Change the line in the kitti2bag.py file (swapping height and width, line number 117). Now, assuming that you're using the same drive as provided in the example (the raw data -take care that it's not the rectified images as then you'll end up rectifying a rectified image) , have all the required dependencies installed (opencv, scikit-build) and the data (calib and sync) in the correct ordering, run the command: python2 __main__.py raw_synced -t 2011_09_26 -r 0002. Ensure that you use python2 and not python3 as ROS runs on python2. Using Python3 may result in errors like ImportError: dynamic module does not define module export function (PyInit__tf2).

Hope this helps

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

4 participants