Skip to content

Commit

Permalink
Merge branch 'pr_fix_main'
Browse files Browse the repository at this point in the history
  • Loading branch information
xuhao1 committed Oct 23, 2024
2 parents de40171 + 3a4b807 commit c51ac15
Show file tree
Hide file tree
Showing 195 changed files with 33,837 additions and 23,358 deletions.
90 changes: 90 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
name: Docker Image CI

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:

build-AMD64:

runs-on: [self-hosted, linux, x64]

steps:
-
name: Get current date
id: date
run: echo "::set-output name=today::$(date +'%Y-%m-%d_%H-%M')"
-
name: Checkout
uses: actions/checkout@v3
-
name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_ACCOUNT }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Build and push
uses: docker/build-push-action@v3
with:
context: .
file: docker/Dockerfile.x86
push: true
tags: |
hkustswarm/d2slam:${{ steps.date.outputs.today }}
hkustswarm/d2slam:pc
hkustswarm/d2slam:latest
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache

build-ARM64:

runs-on: [self-hosted, linux, arm64]

steps:
-
name: Get current date
id: date
run: echo "::set-output name=today::$(date +'%Y-%m-%d_%H-%M')"
-
name: Checkout
uses: actions/checkout@v3
-
name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_ACCOUNT }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Build-base and push
uses: docker/build-push-action@v3
with:
context: .
file: docker/Dockerfile.jetson_orin_base_35.3.1
push: true
tags: |
hkustswarm/d2slam:jetson_orin_base_35.3.1-${{ steps.date.outputs.today }}
hkustswarm/d2slam:jetson_orin_base_35.3.1
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache
-
name: Build-app and push
uses: docker/build-push-action@v3
with:
context: .
file: docker/Dockerfile.jetson
push: true
tags: |
hkustswarm/d2slam:jetson_orin-${{ steps.date.outputs.today }}
hkustswarm/d2slam:jetson_orin
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache
12 changes: 6 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ d2pgo/scripts/pose_graph_partitioning/__pycache__/
d2pgo/scripts/notebooks/*.png
quadcam_depth_est/build/
quadcam_tools/__pycache__/
models/*.onnx
models/*.pb
# models/*.onnx
# models/*.pb
models/*.trt
models/*.engine
models/*.profile
model.zip
# models/*.engine
# models/*.profile
# model.zip
*.engine
*.profile
models/
# models/
data_analysis/.ipynb_checkpoints/
d2pgo/posegraph-graphviz.*
d2pgo/scripts/notebooks/posegraph-graphviz.*
Expand Down
8 changes: 8 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
repos:
- repo: https://github.com/cpp-linter/cpp-linter-hooks
rev: v0.4.0 # Use the ref you want to point at
hooks:
- id: clang-format
args: [--style=Google] # Other coding style: LLVM, GNU, Chromium, Microsoft, Mozilla, WebKit.
# - id: clang-tidy
# args: [--checks='all', -p, build]
19 changes: 10 additions & 9 deletions .vscode/c_cpp_properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,16 @@
},
"includePath": [
"/opt/ros/noetic/include/**",
"/home/xuhao/d2slam_ws/devel/include/**",
"/home/xuhao/d2slam_ws/src/D2SLAM/camera_models/include/**",
"/home/xuhao/d2slam_ws/src/vision_opencv/cv_bridge/include/**",
"/home/xuhao/d2slam_ws/src/D2SLAM/d2common/include/**",
"/home/xuhao/d2slam_ws/src/D2SLAM/d2frontend/include/**",
"/home/xuhao/d2slam_ws/src/vision_opencv/image_geometry/include/**",
"/home/xuhao/d2slam_ws/src/swarm_msgs/swarm_msgs/include/**",
"/home/xuhao/d2slam_ws/src/swarm_msgs/swarmcomm_msgs/include/**",
"/usr/include/**"
"/usr/include/**",
"/usr/local/include",
"/root/swarm_ws/src/D2SLAM/**",
"/root/swarm_ws/src/D2SLAM/camera_models/include/**",
"/root/swarm_ws/src/D2SLAM/vision_opencv/cv_bridge/include/**",
"/root/swarm_ws/src/D2SLAM/d2common/include/**",
"/root/swarm_ws/src/D2SLAM/d2frontend/include/**",
"/root/swarm_ws/src/vision_opencv/image_geometry/include/**",
"/root/swarm_ws/src/swarm_msgs/swarm_msgs/include/**",
"/root/swarm_ws/src/swarm_msgs/swarmcomm_msgs/include/**"
],
"name": "ROS",
"intelliSenseMode": "gcc-x64",
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ estimation_mode: 2 # The estimation mode.
# Available options are 0 (D2VINS works as mono-robot VIO), 1 (each D2VINS instance estimates all robots in the swarm with all information it found),
# 2 (distributed estimation mode, should be used in real-world experiments), and SERVER_MODE (D2VINS works as a server to collect information from the network and estimate the states, but not read data locally).
double_counting_common_feature: 0 # 1 or 0. If 1, common features will be double counted. This parameter is for debugging only.
min_inv_dep: 0.01 # The minimum inverse depth of the landmark. The default value is 0.01, which is suitable for landmarks 100 meters away.
#optimization parameters
max_solver_time: 0.08 # The maximum time allowed for each iteration of the solver (in ms).
Expand Down
Loading

0 comments on commit c51ac15

Please sign in to comment.