ethz-asl / kalibr

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

How to solve calibrate_camera, calibrate_imu_camera import error? #500

Closed YouMinJung closed 2 years ago

YouMinJung commented 2 years ago

My environment : Ubuntu 14.04, ROS indigo, Python 2.7, pip 1.5.4

When I execute the kalibr_calibrate_camera, I get the "ImportError : No module named sm" error message.

To install the "sm", I commanded the "sudo pip install sm" but I got this error message... Traceback (most recent call last) : File "/usr/local/bin/pip", line 7, in <module> from pip._internal.cli.main import main ImportError : No module named pip._internal.cli.main

How to solve this problem..??

alec-bell commented 2 years ago

You're probably trying to run the Python scripts directly, but you need to execute them with ROS. Assuming you have already built from source, please run the following commands:

cd ~/ws/kalibr
source devel/setup.bash
rosrun kalibr kalibr_calibrate_cameras \
    --bag </path/to/intrinsics/bag> \
    --topics </axis/image_raw> \
    --models <model name> \
    --target </path/to/target.yaml>
goldbattle commented 2 years ago

We don't support 14.04 any more. Please use a docker container if you are on that.