koide3 / direct_visual_lidar_calibration

A toolbox for target-less LiDAR-camera calibration [ROS1/ROS2]
https://koide3.github.io/direct_visual_lidar_calibration/
781 stars 125 forks source link

The rosbag package was not processed during execution #76

Open WYL-Projects opened 8 months ago

WYL-Projects commented 8 months ago

Hello, dear author, thank you very much for providing the joint calibration tool. I have a question that I need to ask you, as follows.

Describe the bug I generated a bag package myself using images and corresponding PCD files. The bag package information is as follows: image My bag was recorded based on ROS1 noetic, only the point cloud information after image information and time synchronization, without the topic of camera information.

Then I preprocessed the bag according to the following command, my execution command is: docker run \ -it \ --rm \ --net host \ --gpus all \ -e DISPLAY=$DISPLAY \ -v $HOME/.Xauthority:/root/.Xauthority \ -v $HOME/docker_data/calib/rosbags:/tmp/input_bags \ -v $HOME/docker_data/calib/preprocessed:/tmp/preprocessed \ c63bb69268f6 \ rosrun direct_visual_lidar_calibration preprocess -av \ --camera_model plumb_bob \ --camera_intrinsic 1.32458347e+03,1.32416579e+03,9.67911817e+02,5.55211274e+02 \ --camera_distortion_coeffs 6.04448759e-02,-2.73708217e-01,2.77775926e-04,-1.25173468e-03,2.90979020e-01 \ /tmp/input_bags/my_bag_1 /tmp/preprocessed/my_bag

but the following situation occurred as shown in the figure below. The GUI program experienced a crash. The program did not process my bag and ran as a result. I don't know what caused this?

企业微信截图_17113584489025

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'

Expected behavior A clear and concise description of what you expected to happen.

Screenshots and sample data If applicable, add screenshots and sample data to reproduce your problem.

Environment:

Additional context Add any other context about the problem here.

koide3 commented 8 months ago

I'm not very sure, but I suspect the error is caused by the mismatch of the intensity channel name. Could you check if the points messages contain a field named "Intensity" with the following command?

rostopic echo /point_cloud/fields

If you could share the bag file, it would be a help to dig into the problem.