Skip to content

Commit

Permalink
Merge pull request #110 from koide3/fix
Browse files Browse the repository at this point in the history
fix for using newer iridescence
  • Loading branch information
koide3 committed Sep 21, 2024
2 parents ab1ae59 + 4c39279 commit f679d0b
Show file tree
Hide file tree
Showing 9 changed files with 44 additions and 30 deletions.
5 changes: 2 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.5.2)
cmake_minimum_required(VERSION 3.16)
project(direct_visual_lidar_calibration)

add_compile_options(-std=c++17)
Expand Down Expand Up @@ -72,7 +72,6 @@ target_include_directories(direct_visual_lidar_calibration PUBLIC
${GTSAM_INCLUDE_DIRS}
${PCL_INCLUDE_DIRS}
${OpenCV_INCLUDE_DIRS}
${Iridescence_INCLUDE_DIRS}
)
target_link_libraries(direct_visual_lidar_calibration
fmt
Expand All @@ -81,7 +80,7 @@ target_link_libraries(direct_visual_lidar_calibration
${CERES_LIBRARIES}
${GTSAM_LIBRARIES}
${OpenCV_LIBRARIES}
${Iridescence_LIBRARIES}
Iridescence::Iridescence
)


Expand Down
12 changes: 0 additions & 12 deletions cmake/FindIridescence.cmake

This file was deleted.

7 changes: 5 additions & 2 deletions docker/humble/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,16 @@ RUN apt-fast update \

WORKDIR /root
RUN git clone https://github.com/ceres-solver/ceres-solver \
&& mkdir ceres-solver/build \
&& cd ceres-solver/build \
&& cd ceres-solver \
&& git checkout e47a42c2957951c9fafcca9995d9927e15557069 \
&& mkdir build \
&& cd build \
&& cmake .. -DBUILD_EXAMPLES=OFF -DBUILD_TESTING=OFF -DUSE_CUDA=OFF \
&& make -j$(nproc) \
&& make install \
&& rm -rf /root/ceres-solver


COPY . /root/ros2_ws/src/direct_visual_lidar_calibration

WORKDIR /root/ros2_ws
Expand Down
7 changes: 5 additions & 2 deletions docker/humble/Dockerfile_with_superglue
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,16 @@ RUN apt-fast update \

WORKDIR /root
RUN git clone https://github.com/ceres-solver/ceres-solver \
&& mkdir ceres-solver/build \
&& cd ceres-solver/build \
&& cd ceres-solver \
&& git checkout e47a42c2957951c9fafcca9995d9927e15557069 \
&& mkdir build \
&& cd build \
&& cmake .. -DBUILD_EXAMPLES=OFF -DBUILD_TESTING=OFF -DUSE_CUDA=OFF \
&& make -j$(nproc) \
&& make install \
&& rm -rf /root/ceres-solver


COPY . /root/ros2_ws/src/direct_visual_lidar_calibration

WORKDIR /root/ros2_ws
Expand Down
8 changes: 5 additions & 3 deletions docker/jazzy/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@ RUN apt-fast update \
&& apt-fast clean \
&& rm -rf /var/lib/apt/lists/*

WORKDIR /root
WORKDIR /root
RUN git clone https://github.com/ceres-solver/ceres-solver \
&& mkdir ceres-solver/build \
&& cd ceres-solver/build \
&& cd ceres-solver \
&& git checkout e47a42c2957951c9fafcca9995d9927e15557069 \
&& mkdir build \
&& cd build \
&& cmake .. -DBUILD_EXAMPLES=OFF -DBUILD_TESTING=OFF -DUSE_CUDA=OFF \
&& make -j$(nproc) \
&& make install \
Expand Down
6 changes: 4 additions & 2 deletions docker/jazzy/Dockerfile_with_superglue
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ RUN apt-fast update \

WORKDIR /root
RUN git clone https://github.com/ceres-solver/ceres-solver \
&& mkdir ceres-solver/build \
&& cd ceres-solver/build \
&& cd ceres-solver \
&& git checkout e47a42c2957951c9fafcca9995d9927e15557069 \
&& mkdir build \
&& cd build \
&& cmake .. -DBUILD_EXAMPLES=OFF -DBUILD_TESTING=OFF -DUSE_CUDA=OFF \
&& make -j$(nproc) \
&& make install \
Expand Down
15 changes: 13 additions & 2 deletions docker/noetic/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,24 @@ RUN apt-fast update \

WORKDIR /root
RUN git clone https://github.com/ceres-solver/ceres-solver \
&& mkdir ceres-solver/build \
&& cd ceres-solver/build \
&& cd ceres-solver \
&& git checkout e47a42c2957951c9fafcca9995d9927e15557069 \
&& mkdir build \
&& cd build \
&& cmake .. -DBUILD_EXAMPLES=OFF -DBUILD_TESTING=OFF -DUSE_CUDA=OFF \
&& make -j$(nproc) \
&& make install \
&& rm -rf /root/ceres-solver

RUN test -f /usr/share/doc/kitware-archive-keyring/copyright || wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | tee /usr/share/keyrings/kitware-archive-keyring.gpg >/dev/null
RUN echo 'deb [signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ focal main' | tee /etc/apt/sources.list.d/kitware.list >/dev/null
RUN echo 'deb [signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ focal-rc main' | tee -a /etc/apt/sources.list.d/kitware.list >/dev/null

RUN apt-get update \
&& apt-get upgrade -y \
&& apt-fast clean \
&& rm -rf /var/lib/apt/lists/*

COPY . /root/catkin_ws/src/direct_visual_lidar_calibration

WORKDIR /root/catkin_ws
Expand Down
6 changes: 4 additions & 2 deletions docker/noetic/Dockerfile_with_superglue
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ RUN apt-fast update \

WORKDIR /root
RUN git clone https://github.com/ceres-solver/ceres-solver \
&& mkdir ceres-solver/build \
&& cd ceres-solver/build \
&& cd ceres-solver \
&& git checkout e47a42c2957951c9fafcca9995d9927e15557069 \
&& mkdir build \
&& cd build \
&& cmake .. -DBUILD_EXAMPLES=OFF -DBUILD_TESTING=OFF -DUSE_CUDA=OFF \
&& make -j$(nproc) \
&& make install \
Expand Down
8 changes: 6 additions & 2 deletions docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
!!!note
We provide docker images so that the user can do calibration without installation: [Docker images](docker.md)

!!!warn
On Ubuntu 20.04, [install a newer cmake](https://apt.kitware.com/).

## Dependencies

- [ROS1/ROS2](https://www.ros.org/)
Expand Down Expand Up @@ -32,9 +35,10 @@ make -j$(nproc)
sudo make install

# Install Ceres
# git clone https://github.com/ceres-solver/ceres-solver
git clone --recurse-submodules https://github.com/ceres-solver/ceres-solver
mkdir ceres-solver/build && cd ceres-solver/build
cd ceres-solver
git checkout e47a42c2957951c9fafcca9995d9927e15557069
mkdir build && cd build
cmake .. -DBUILD_EXAMPLES=OFF -DBUILD_TESTING=OFF -DUSE_CUDA=OFF
make -j$(nproc)
sudo make install
Expand Down

0 comments on commit f679d0b

Please sign in to comment.