GitXplorerGitXplorer
0

calibration

public
0 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
c64bb9ceb3dd472fa5be30918f5c9def06c7dddc

Generate aruco

001binary committed 2 months ago
Unverified
fb6073980dfd846c1e37bbcf79f424425894851e

Aruco marker generation

001binary committed 2 months ago
Unverified
b2742bb8e3b51255db4c34a95819c067e4e3e1c9

Delete debugging files

001binary committed 2 months ago
Unverified
9806dea7c5c579021d915625cbbc8d82f279809a

More debugging

001binary committed 2 months ago
Unverified
92cb8962a446eb688de10c5e36c6b9eb2817204a

Tweak

001binary committed 2 months ago
Unverified
7598f062a9611e112853a76ef1b0b926bb1c8208

Alvar in readme

001binary committed 2 months ago

README

The README file for this repository.

Camera Calibration

Contains calibration documents, logic, inputs, and outputs for several cameras that can be used with ROS.

Installation

  • Python: 3.6 with pyenv
    pyenv install 3.6
    pyenv global 3.6
    
  • OpenCV for Python
    pip install --upgrade pip
    pip install opencv-contrib-python
    

Pattern

The pattern used is a 9x6 OpenCV chess board. If it's printed on 8.5 x 11 sheet of paper with no scaling, real-world dimensions will be 217 mm x 153 mm.

Capturing

  • Connect your camera and ensure it works with ROS by using Rviz
  • Create a folder for your camera in this repository
  • Change into the folder
  • Capture 20-40 images with image_view
    rosrun image_view image_view image:=/camera/rgb/image_raw
    
    On the image view window, simply right-click and the current image will be saved to the current directory.

Calibration

Run calibration.py script at the root of this repository with working directory containing the images to analyze.

Cameras

  • Intel Realsense D435 parameters in /intel-realsense-d435
  • Primesense Carmine 1.09 parameters in /primesense-carmine-1.09

Markers

Once the camera is calibrated, markers can be detected in 3D space.

Build ar_track_alvar from source.

rosrun ar_track_alvar individualMarkers \
  _marker_size:=9.577 \
  _output_frame:="camera_rgb_optical_frame" \
  _cam_image_topic:="/camera/depth_registered/points" \
  _cam_info_topic:="/camera/rgb/camera_info" \
  _max_new_marker_error:=0.5 \
  _max_track_error:=0.5