Skip to content

Commit 245b07f

Browse files
committed
Initial commit for Isaac Teleop Core 0.1.0
0 parents  commit 245b07f

File tree

84 files changed

+6045
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+6045
-0
lines changed

.clang-format

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
---
2+
# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3+
# SPDX-License-Identifier: Apache-2.0
4+
AccessModifierOffset: -4
5+
AlignAfterOpenBracket: Align
6+
AlignConsecutiveAssignments: false
7+
AlignConsecutiveDeclarations: false
8+
AlignEscapedNewlinesLeft: false
9+
AlignTrailingComments: false
10+
AllowAllParametersOfDeclarationOnNextLine: true
11+
AllowShortFunctionsOnASingleLine: false
12+
AllowShortIfStatementsOnASingleLine: false
13+
AllowShortCaseLabelsOnASingleLine : false
14+
AllowShortLoopsOnASingleLine: false
15+
AlwaysBreakAfterDefinitionReturnType: false
16+
AlwaysBreakBeforeMultilineStrings: true
17+
AlwaysBreakTemplateDeclarations: true
18+
BinPackArguments: true
19+
BinPackParameters: false
20+
BreakBeforeBinaryOperators: false
21+
BreakBeforeBraces: Allman
22+
BreakBeforeTernaryOperators: false
23+
BreakConstructorInitializersBeforeComma: false
24+
BreakStringLiterals: false
25+
ColumnLimit: 120
26+
CommentPragmas: ''
27+
ConstructorInitializerAllOnOneLineOrOnePerLine: true
28+
ConstructorInitializerIndentWidth: 4
29+
ContinuationIndentWidth: 4
30+
Cpp11BracedListStyle: false
31+
DerivePointerBinding: false
32+
FixNamespaceComments: false
33+
IndentCaseLabels: false
34+
IndentPPDirectives: AfterHash
35+
IndentFunctionDeclarationAfterType: false
36+
IndentWidth: 4
37+
SortIncludes: true
38+
IncludeCategories:
39+
- Regex: '<carb\/.+>'
40+
Priority: 2
41+
- Regex: '<[[:alnum:]_.]+>'
42+
Priority: 4
43+
- Regex: '<[[:alnum:]_.\/]+>'
44+
Priority: 3
45+
- Regex: '".*"'
46+
Priority: 1
47+
IncludeBlocks: Regroup
48+
Language: Cpp
49+
MaxEmptyLinesToKeep: 2
50+
NamespaceIndentation: None
51+
ObjCSpaceAfterProperty: true
52+
ObjCSpaceBeforeProtocolList: true
53+
PenaltyBreakBeforeFirstCallParameter: 0
54+
PenaltyBreakComment: 1
55+
PenaltyBreakFirstLessLess: 0
56+
PenaltyBreakString: 1
57+
PenaltyExcessCharacter: 10
58+
PenaltyReturnTypeOnItsOwnLine: 1000
59+
PointerAlignment: Left
60+
SpaceBeforeAssignmentOperators: true
61+
SpaceBeforeParens: ControlStatements
62+
SpaceInEmptyParentheses: false
63+
SpacesBeforeTrailingComments: 1
64+
SpacesInAngles: false
65+
SpacesInCStyleCastParentheses: false
66+
SpacesInContainerLiterals: false
67+
SpacesInParentheses: false
68+
Standard: Cpp11
69+
ReflowComments: true
70+
TabWidth: 4
71+
UseTab: Never

.github/workflows/build-ubuntu.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
name: Build Ubuntu
5+
6+
on:
7+
push:
8+
branches: [ main ]
9+
pull_request:
10+
11+
jobs:
12+
build-ubuntu:
13+
runs-on: ubuntu-latest
14+
15+
strategy:
16+
matrix:
17+
build_type: [Debug, Release]
18+
19+
steps:
20+
- name: Checkout code
21+
uses: actions/checkout@v4
22+
with:
23+
submodules: recursive
24+
25+
- name: Install uv
26+
uses: astral-sh/setup-uv@v7
27+
28+
- name: Install Apt dependencies
29+
run: |
30+
sudo apt-get update
31+
sudo apt-get install -y build-essential cmake libx11-dev
32+
33+
- name: Configure CMake
34+
run: cmake -B build -DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
35+
36+
- name: Build
37+
run: cmake --build build --parallel
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
name: Build Windows (Experimental)
5+
6+
on:
7+
push:
8+
branches: [ main ]
9+
pull_request:
10+
11+
# WARNING: This workflow is for experimental Windows builds only!
12+
# Windows support is NOT officially supported - this only tests source compilation.
13+
# There is NO guarantee of runtime functionality on Windows.
14+
15+
jobs:
16+
build-windows:
17+
runs-on: windows-latest
18+
19+
strategy:
20+
matrix:
21+
build_type: [Debug, Release]
22+
23+
steps:
24+
- name: Checkout code
25+
uses: actions/checkout@v4
26+
with:
27+
submodules: recursive
28+
29+
- name: Install uv
30+
uses: astral-sh/setup-uv@v7
31+
32+
- name: Configure CMake
33+
run: cmake -B build -DENABLE_EXPERIMENTAL_WINDOWS_BUILD=ON
34+
35+
- name: Build
36+
run: cmake --build build --config ${{ matrix.build_type }} --parallel

.gitignore

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
# Build directories
5+
build/
6+
**/build/
7+
install/
8+
9+
# Python cache
10+
__pycache__/
11+
**/__pycache__/
12+
*.pyc
13+
*.pyo
14+
*.pyd
15+
16+
# Python virtual environments
17+
.venv/
18+
venv/
19+
**/.venv/
20+
**/venv/
21+
22+
# Compiled files
23+
*.o
24+
*.so
25+
*.a
26+
*.exe
27+
28+
# CMake
29+
CMakeCache.txt
30+
CMakeFiles/
31+
cmake_install.cmake
32+
compile_commands.json
33+
34+
# Python egg info
35+
*.egg-info/
36+
dist/
37+
*.egg
38+
39+
# CloudXR environment files
40+
deps/cloudxr/.env
41+
42+
# build output
43+
build/

.gitlab-ci.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
image:
5+
name: sonarsource/sonar-scanner-cli:11
6+
entrypoint: [""]
7+
8+
variables:
9+
SONAR_USER_HOME: "${CI_PROJECT_DIR}/.sonar" # Defines the location of the analysis task cache
10+
GIT_DEPTH: "0" # Tells git to fetch all the branches of the project, required by the analysis task
11+
12+
stages:
13+
- build-sonar
14+
- sonarqube-vulnerability-report
15+
16+
build-sonar:
17+
stage: build-sonar
18+
tags:
19+
- type/docker
20+
21+
cache:
22+
policy: pull-push
23+
key: "sonar-cache-$CI_COMMIT_REF_SLUG"
24+
paths:
25+
- "${SONAR_USER_HOME}/cache"
26+
- sonar-scanner/
27+
28+
script:
29+
- sonar-scanner -Dsonar.host.url="${SONAR_HOST_URL}"
30+
allow_failure: true
31+
rules:
32+
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
33+
- if: $CI_COMMIT_BRANCH == 'master'
34+
- if: $CI_COMMIT_BRANCH == 'main'
35+
- if: $CI_COMMIT_BRANCH == 'develop'
36+
- if: '$CI_COMMIT_BRANCH =~ /^release\/.*/'
37+
38+
sonarqube-vulnerability-report:
39+
stage: sonarqube-vulnerability-report
40+
tags:
41+
- type/docker
42+
43+
script:
44+
- 'curl -u "${SONAR_TOKEN}:" "${SONAR_HOST_URL}/api/issues/gitlab_sast_export?projectKey=cloudxr-teleop-core&branch=${CI_COMMIT_BRANCH}&pullRequest=${CI_MERGE_REQUEST_IID}" -o gl-sast-sonar-report.json'
45+
allow_failure: true
46+
rules:
47+
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
48+
- if: $CI_COMMIT_BRANCH == 'master'
49+
- if: $CI_COMMIT_BRANCH == 'main'
50+
- if: $CI_COMMIT_BRANCH == 'develop'
51+
- if: '$CI_COMMIT_BRANCH =~ /^release\/.*/'
52+
artifacts:
53+
expire_in: 1 day
54+
reports:
55+
sast: gl-sast-sonar-report.json

.gitmodules

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
[submodule "deps/third_party/pybind11"]
5+
path = deps/third_party/pybind11
6+
url = https://github.com/pybind/pybind11.git
7+
[submodule "deps/third_party/openxr-sdk"]
8+
path = deps/third_party/openxr-sdk
9+
url = https://github.com/KhronosGroup/OpenXR-SDK.git

0 commit comments

Comments
 (0)