ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

camera_calibration does not work ros noetic

asked 2020-10-21 23:59:06 -0500

KOMODO gravatar image

updated 2020-10-25 04:49:28 -0500

I try to calibrate my usb camera but camera_calibration doesn't work. Here my screenshot. I find an answer in ros forum but it did not solve my problem.

https://ibb.co/7tKKQXP

screenshot

Solutions tried:

  1. I update camera_calibration pack "#!/usr/bin/env python" --> not worked. Output says: path not found.
  2. I tried "#!/usr/bin/python3" . It worked but when calibrator.py runs it does not show anything. I tried all of path possible but not solved yet.

new screenshot

My cv_camera node is here :

<launch> 
    <node pkg=”cv_camera” type=”cv_camera_node” name=”cv_camera” output=”screen”> 
        <param name=”flip_image” value=”false” /> 
        <param name=”device_id” value=”1" /> 
        <param name=”image_width” value=”640" /> 
        <param name=”image_height” value=”480" /> 
    </node>
</launch>
edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
2

answered 2020-10-23 08:33:35 -0500

mjcarroll gravatar image

It looks like these scripts were not correctly updated for noetic and focal, I have submitted a pull request to correct this error here: https://github.com/ros-perception/ima...

That may take a bit to get merged and released. In the meantime, feel free to use that patch and build the corresponding packages from source to get the corrections.

edit flag offensive delete link more

Comments

I update shebang line with /usr/bin/env python but it did not work too.

After I changed shebang like this it worked : "/usr/bin/python3"

Is python3 works?

KOMODO gravatar image KOMODO  ( 2020-10-24 11:13:12 -0500 )edit

As part of the installation process, the shebang line gets rewritten to the appropriate platform version. For focal/noetic is should end up as /usr/bin/env python3, which aligns with what is available on that version of Ubuntu. The final binary packages that end up in the apt repository should also correctly reflect this.

mjcarroll gravatar image mjcarroll  ( 2020-10-26 09:47:20 -0500 )edit

From this time if i reinstall noetic distro, It will be corrected.

KOMODO gravatar image KOMODO  ( 2020-10-26 11:50:26 -0500 )edit

now i have this error for camera_calibration --> https://ibb.co/GxvmH09

KOMODO gravatar image KOMODO  ( 2020-10-27 02:49:53 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2020-10-21 23:59:06 -0500

Seen: 610 times

Last updated: Oct 25 '20