acfr / cam_lidar_calibration

(ITSC 2021) Optimising the selection of samples for robust lidar camera calibration. This package estimates the calibration parameters from camera to lidar frame.
Apache License 2.0
457 stars 107 forks source link

RANSAC Fails to Detect Model - Need More Lidar Points #64

Closed zayedrmdn closed 1 month ago

zayedrmdn commented 3 months ago

I'm encountering an issue with the cam_lidar_calibration package on ROS Noetic. The package correctly detects the chessboard, but when I try to 'Capture Sample,' I get these errors:

[pcl::SampleConsensusModel::getSamples] Can not select 0 unique points out of 1!
[pcl::RandomSampleConsensus::computeModel] No samples could be selected!
[pcl::RandomSampleConsensus::computeModel] RANSAC found no model.
[pcl::SACSegmentation::segment] Error segmenting the model! No solution found.
[ERROR] [1723617562.542058090]: RANSAC unsuccessful, discarding sample - Need more lidar points on board

System Information:

Configuration (cfg/params.yaml):

# Topics
camera_topic: "/usb_cam/image_raw"
camera_info: "/usb_cam/camera_info"
lidar_topic: "/rslidar_points"

# Feature Extraction Settings
feature_extraction:
  x_min: 1.0
  x_max: 7.0
  y_min: -3.0
  y_max: 3.0
  z_min: -1.7
  z_max: 0.0
  k: 50
  z: 1
  voxel_res: 0.4

# Chessboard Calibration Target
chessboard:
  pattern_size:
    height: 5
    width: 7
  square_length: 95
  board_dimension:
    width: 700.5
    height: 1000
  translation_error:
    x: 2
    y: 2

Troubleshooting Done:

  1. Tried different voxel_res values.
  2. Adjusted rqt_reconfigure bounds.
  3. Attempted to convert RSLIDAR points to Velodyne points. This resulted in no chessboard detection from the camera image, but no RANSAC-related errors were present.

Request: Can you provide advice on how to fix this? Is there a specific setting or adjustment needed to get enough LIDAR points for RANSAC?

Screenshots: Screenshot Screenshot_terminal

chinitaberrio commented 2 months ago

Please follow the instructions in the Readme file "2.1 Setup of Calibration Target" "Rotate the chessboard such that it is in the shape of a diamond (at an angle of 45° with respect to the ground) and mount it on a stand."