Skip to content

Commit

Permalink
Version 0.0.1 of nvblox.
Browse files Browse the repository at this point in the history
  • Loading branch information
helenol committed Mar 21, 2022
0 parents commit cef19e2
Show file tree
Hide file tree
Showing 265 changed files with 35,751 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .clang-format
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
...
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Don't copy build files into a docker image
*/build*
47 changes: 47 additions & 0 deletions .gitignore
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
10 changes: 10 additions & 0 deletions Dockerfile.build
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
20 changes: 20 additions & 0 deletions Dockerfile.deps
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
5 changes: 5 additions & 0 deletions Dockerfile.test
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 ..
65 changes: 65 additions & 0 deletions Jenkinsfile
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')
}
}
Loading

0 comments on commit cef19e2

Please sign in to comment.