-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit cef19e2
Showing
265 changed files
with
35,751 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
Language: Cpp | ||
BasedOnStyle: Google | ||
ColumnLimit: 80 | ||
IncludeBlocks: Preserve | ||
DerivePointerAlignment: false | ||
PointerAlignment: Left | ||
--- | ||
Language: Proto | ||
BasedOnStyle: Google | ||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Don't copy build files into a docker image | ||
*/build* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
**/build | ||
|
||
|
||
# Prerequisites | ||
*.d | ||
|
||
# Compiled Object files | ||
*.slo | ||
*.lo | ||
*.o | ||
*.obj | ||
|
||
# Precompiled Headers | ||
*.gch | ||
*.pch | ||
|
||
# Compiled Dynamic libraries | ||
*.so | ||
*.dylib | ||
*.dll | ||
|
||
# Fortran module files | ||
*.mod | ||
*.smod | ||
|
||
# Compiled Static libraries | ||
*.lai | ||
*.la | ||
*.a | ||
*.lib | ||
|
||
# Executables | ||
*.exe | ||
*.out | ||
*.app | ||
|
||
# IDE stuff | ||
*.vscode | ||
|
||
# Build files | ||
*build | ||
|
||
# Python | ||
*.pyc | ||
|
||
# Reconstructions | ||
*.ply |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
FROM nvblox_deps | ||
|
||
SHELL ["/bin/bash", "-c"] | ||
|
||
# Copy over the nvblox (both as a standalone and into the catkin workspace) | ||
COPY . nvblox | ||
|
||
# Build and test the standalone library, then build under catkin | ||
RUN cd nvblox/nvblox && mkdir build && cd build && \ | ||
cmake .. && make -j8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
FROM nvcr.io/nvidia/cuda:11.2.0-devel-ubuntu20.04 | ||
|
||
# TZData goes first. | ||
RUN apt-get update | ||
ENV TZ Europe/Berlin | ||
ENV DEBIAN_FRONTEND noninteractive | ||
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone | ||
RUN apt-get install -y tzdata | ||
|
||
# Install basics. | ||
RUN apt-get update | ||
RUN apt-get install -y ssh git jq gnupg apt-utils software-properties-common build-essential cmake | ||
|
||
# Install dependencies. | ||
RUN apt-get install -y libgoogle-glog-dev libgtest-dev curl | ||
|
||
# Build gtest because gtest doesn't do this for you for some reason. | ||
RUN cd /usr/src/googletest && cmake . && cmake --build . --target install | ||
|
||
ENV DEBIAN_FRONTEND teletype |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
FROM nvblox | ||
|
||
# Build and test the standalone library, then build under catkin | ||
CMD cd nvblox/nvblox/build && \ | ||
cd tests/ && ctest && cd .. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
pipeline { | ||
agent { | ||
dockerfile { | ||
label 'isaac-gpu' | ||
reuseNode true | ||
filename 'Dockerfile.deps' | ||
args '-u root --gpus all -v /var/run/docker.sock:/var/run/docker.sock:rw' | ||
} | ||
} | ||
triggers { | ||
gitlab(triggerOnMergeRequest: true, branchFilterType: 'All') | ||
} | ||
stages { | ||
stage('Compile') { | ||
steps { | ||
sh '''nvidia-smi''' | ||
sh '''mkdir -p nvblox/build''' | ||
sh '''cd nvblox/build && cmake .. && make -j8''' | ||
} | ||
} | ||
stage('Test') { | ||
steps { | ||
sh '''cd nvblox/build/tests && ctest -T test --no-compress-output''' | ||
} | ||
} | ||
} | ||
post { | ||
always { | ||
// Archive the CTest xml output | ||
archiveArtifacts ( | ||
artifacts: 'nvblox/build/tests/Testing/**/*.xml', | ||
fingerprint: true | ||
) | ||
|
||
// Process the CTest xml output with the xUnit plugin | ||
xunit ( | ||
testTimeMargin: '3000', | ||
thresholdMode: 1, | ||
thresholds: [ | ||
skipped(failureThreshold: '0'), | ||
failed(failureThreshold: '0') | ||
], | ||
tools: [CTest( | ||
pattern: 'nvblox/build/Testing/**/*.xml', | ||
deleteOutputFiles: true, | ||
failIfNotNew: false, | ||
skipNoTestFiles: true, | ||
stopProcessingIfError: true | ||
)] | ||
) | ||
|
||
// Clear the source and build dirs before next run | ||
cleanWs() | ||
} | ||
failure { | ||
updateGitlabCommitStatus name: 'build', state: 'failed' | ||
} | ||
success { | ||
updateGitlabCommitStatus name: 'build', state: 'success' | ||
} | ||
} | ||
options { | ||
gitLabConnection('gitlab-master') | ||
} | ||
} |
Oops, something went wrong.