Open devvaibhav455 opened 2 months ago
Ceres introduced disruptive updates recently. For now, use a specific commit as indicated in the updated instruction process. I'll update the code so that it can be built with the latest ceres.
Build process now completes with a warning about opencv version issue
colcon build --cmake-args -DCMAKE_PREFIX_PATH=/home/nvidia/software/abseil-cpp/install -Dabsl_DIR=/home/nvidia/software/abseil-cpp/install/lib/cmake/absl
Starting >>> direct_visual_lidar_calibration
[Processing: direct_visual_lidar_calibration]
[Processing: direct_visual_lidar_calibration]
[Processing: direct_visual_lidar_calibration]
[Processing: direct_visual_lidar_calibration]
[Processing: direct_visual_lidar_calibration]
--- stderr: direct_visual_lidar_calibration
** WARNING ** io features related to pcap will be disabled
/usr/bin/ld: warning: libopencv_core.so.4.5d, needed by /opt/ros/humble/lib/libcv_bridge.so, may conflict with libopencv_core.so.408
---
Finished <<< direct_visual_lidar_calibration [2min 32s]
Summary: 1 package finished [2min 33s]
1 package had stderr output: direct_visual_lidar_calibration
And I get this error while doing preprocessing
ros2 run direct_visual_lidar_calibration preprocess /home/nvidia/Downloads/temp/ouster /home/nvidia/Downloads/temp/ouster_preprocessed -adv
data_path: /home/nvidia/Downloads/temp/ouster
dst_path : /home/nvidia/Downloads/temp/ouster_preprocessed
[INFO] [1727132316.535221821] [rosbag2_storage]: Opened database '/home/nvidia/Downloads/temp/ouster/rosbag2_2023_03_28-16_26_51/rosbag2_2023_03_28-16_26_51_0.db3' for READ_ONLY.
[INFO] [1727132316.544416607] [rosbag2_storage]: Opened database '/home/nvidia/Downloads/temp/ouster/rosbag2_2023_03_28-16_25_54/rosbag2_2023_03_28-16_25_54_0.db3' for READ_ONLY.
input_bags:
- /home/nvidia/Downloads/temp/ouster/rosbag2_2023_03_28-16_26_51
- /home/nvidia/Downloads/temp/ouster/rosbag2_2023_03_28-16_25_54
[INFO] [1727132316.556413043] [rosbag2_storage]: Opened database '/home/nvidia/Downloads/temp/ouster/rosbag2_2023_03_28-16_25_54/rosbag2_2023_03_28-16_25_54_0.db3' for READ_ONLY.
topics in /home/nvidia/Downloads/temp/ouster/rosbag2_2023_03_28-16_25_54:
- /camera_info : sensor_msgs/msg/CameraInfo
- /image : sensor_msgs/msg/Image
- /points : sensor_msgs/msg/PointCloud2
selected topics:
- camera_info: /camera_info
- image : /image
- points : /points
[INFO] [1727132316.563739538] [rosbag2_storage]: Opened database '/home/nvidia/Downloads/temp/ouster/rosbag2_2023_03_28-16_25_54/rosbag2_2023_03_28-16_25_54_0.db3' for READ_ONLY.
intensity_channel: reflectivity
[INFO] [1727132316.580645415] [rosbag2_storage]: Opened database '/home/nvidia/Downloads/temp/ouster/rosbag2_2023_03_28-16_25_54/rosbag2_2023_03_28-16_25_54_0.db3' for READ_ONLY.
try to get the camera model automatically
[INFO] [1727132316.625502036] [rosbag2_storage]: Opened database '/home/nvidia/Downloads/temp/ouster/rosbag2_2023_03_28-16_25_54/rosbag2_2023_03_28-16_25_54_0.db3' for READ_ONLY.
camera_model: plumb_bob
image_size : 2448 2048
intrinsics : 1454.66 1455.21 1229.26 1010.66
dist_coeffs : -0.0507013 0.111236 -0.000881838 0.000141199 -0.0588915
processing images and points (num_threads_per_bag=8)
start processing /home/nvidia/Downloads/temp/ouster/rosbag2_2023_03_28-16_25_54
[INFO] [1727132316.633343438] [rosbag2_storage]: Opened database '/home/nvidia/Downloads/temp/ouster/rosbag2_2023_03_28-16_25_54/rosbag2_2023_03_28-16_25_54_0.db3' for READ_ONLY.
terminate called after throwing an instance of 'cv::Exception'
what(): OpenCV(4.8.0) /home/ubuntu/opencv_build/opencv/modules/core/src/matrix.cpp:246: error: (-215:Assertion failed) s >= 0 in function 'setSize'
[ros2run]: Aborted
I solved the opencv issue using export LD_PRELOAD=/usr/lib/aarch64-linux-gnu/libopencv_core.so.4.5.4d
Before opening an issue If the issue is about build errors:
If the issue is about calibration procedure and results:
If the issue is about the algorithm:
Describe the bug Follow the instructions to install the pre-req except for absl (I had to build it as Position Independent Code as I faced this issue on a different PC).
To Reproduce Steps to reproduce the behavior:
/usr/local
.colcon build --cmake-args -DCMAKE_PREFIX_PATH=/home/nvidia/software/abseil-cpp/install
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: Ubuntu 22.04 on Jetson Jetpack 6.x (arm64) ROS version: ROS2 Humble
Additional context The build process and pipeline worked on my laptop (amd64) once and I don't remember doing anything fancy except specifying the path and including the line
find_package(absl REQUIRED)
in the package's CMakeLists.txt