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

Revision history [back]

click to hide/show revision 1
initial version

There is a solution.

Go to your catkin workstation/src/camera_calibration/src/camera_calibration.

Then open these files: - calibrator.py - camera_calibrator.py - camera_checker.py

and change this line #!/usr/bin/env python to #!/usr/bin/env python3.

Then, go to this file: calibrator.py and find this section:

```

class Calibrator():
    """
    Base class for calibration system
    """
    def __init__(self, boards, flags=0, fisheye_flags = 0, pattern=Patterns.Chessboard, name='',
    checkerboard_flags=cv2.CALIB_CB_FAST_CHECK, max_chessboard_speed = -1.0):
        # Ordering the dimen

```

Then change it to: ```

class Calibrator(object):
    """
    Base class for calibration system
    """
    def __init__(self, boards, flags=0, fisheye_flags = 0, pattern=Patterns.Chessboard, name='',
    checkerboard_flags=cv2.CALIB_CB_FAST_CHECK, max_chessboard_speed = -1.0):
        # Ordering the dimen

```

There is a solution.

Go to your catkin workstation/src/camera_calibration/src/camera_calibration.

Then open these files: - calibrator.py - camera_calibrator.py - camera_checker.py

and change this line #!/usr/bin/env python to #!/usr/bin/env python3.

Then, go Go to this file: calibrator.py and find this section:

```

class Calibrator():
    """
    Base class for calibration system
    """
    def __init__(self, boards, flags=0, fisheye_flags = 0, pattern=Patterns.Chessboard, name='',
    checkerboard_flags=cv2.CALIB_CB_FAST_CHECK, max_chessboard_speed = -1.0):
        # Ordering the dimen

```

Then change it to: ```

class Calibrator(object):
    """
    Base class for calibration system
    """
    def __init__(self, boards, flags=0, fisheye_flags = 0, pattern=Patterns.Chessboard, name='',
    checkerboard_flags=cv2.CALIB_CB_FAST_CHECK, max_chessboard_speed = -1.0):
        # Ordering the dimen

```