Skip to content

Commit

Permalink
👷 Change GitHub action image and fix build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
StephLin committed May 26, 2024
1 parent a79d9e1 commit 208af85
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ on:

jobs:
build-and-deploy:
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Set up Python 3.6
- name: Set up Python 3.11
uses: actions/setup-python@v1
with:
python-version: 3.6
python-version: 3.11

- name: Install dependencies (1/3) (GCC, CMake, Eigen3, Doxygen, Graphviz)
run: |
Expand Down Expand Up @@ -50,4 +50,4 @@ jobs:
uses: peaceiris/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build/docs/html
publish_dir: ./build/docs/html
8 changes: 4 additions & 4 deletions .github/workflows/build-only.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ on:

jobs:
build-kcp:
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Set up Python 3.6
- name: Set up Python 3.11
uses: actions/setup-python@v1
with:
python-version: 3.6
python-version: 3.11

- name: Install dependencies (1/3) (GCC, CMake, Eigen3, Doxygen, Graphviz)
run: |
Expand Down Expand Up @@ -43,4 +43,4 @@ jobs:
run: |
mkdir build && cd build
cmake .. -DKCP_BUILD_PYTHON_BINDING=ON -DPYTHON_EXECUTABLE=$(which python3) -DKCP_BUILD_DOC=ON
make
make
6 changes: 3 additions & 3 deletions kcp/src/utility.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ get_kcp_correspondences(const Eigen::MatrixX3d& src,
// Build the KD-tree of dst_feature, and query k closest points for each
// source point.
nanoflann::KDTreeEigenMatrixAdaptor<Eigen::MatrixXd> dst_tree(dim, std::cref(dst_feature), 10);
dst_tree.index->buildIndex();
dst_tree.index_->buildIndex();

std::vector<double> point(dim);
std::vector<size_t> indices(k);
Expand All @@ -56,7 +56,7 @@ get_kcp_correspondences(const Eigen::MatrixX3d& src,
}
result.init(&indices[0], &distances[0]);

dst_tree.index->findNeighbors(result, &point[0], nanoflann::SearchParams());
dst_tree.index_->findNeighbors(result, &point[0], nanoflann::SearchParameters());

for (int i = 0; i < size; ++i) {
int dst_index = indices[i];
Expand All @@ -72,4 +72,4 @@ get_kcp_correspondences(const Eigen::MatrixX3d& src,
return correspondences;
}

}; // namespace kcp
}; // namespace kcp

0 comments on commit 208af85

Please sign in to comment.