Skip to content

Commit 66e6e3e

Browse files
Isaac ROS 0.20.0 (DP2)
1 parent e1fdefe commit 66e6e3e

Some content is hidden

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

67 files changed

+8130
-0
lines changed

.bazelrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
test --test_output=errors

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
bazel-*
2+
__pycache__
3+
.vscode

BUILD

Whitespace-only changes.

LICENSE

Lines changed: 1191 additions & 0 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 585 additions & 0 deletions
Large diffs are not rendered by default.

WORKSPACE

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
"""
2+
SPDX-FileCopyrightText: NVIDIA CORPORATION & AFFILIATES
3+
Copyright (c) 2021-2022 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
4+
5+
Licensed under the Apache License, Version 2.0 (the "License");
6+
you may not use this file except in compliance with the License.
7+
You may obtain a copy of the License at
8+
9+
https://www.apache.org/licenses/LICENSE-2.0
10+
11+
Unless required by applicable law or agreed to in writing, software
12+
distributed under the License is distributed on an "AS IS" BASIS,
13+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
See the License for the specific language governing permissions and
15+
limitations under the License.
16+
17+
SPDX-License-Identifier: Apache-2.0
18+
"""
19+
workspace(name = "com_nvidia_isaac_mission_dispatch")
20+
21+
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
22+
23+
# Include rules needed for pip
24+
http_archive(
25+
name = "rules_python",
26+
url = "https://github.com/bazelbuild/rules_python/releases/download/0.5.0/rules_python-0.5.0.tar.gz",
27+
sha256 = "cd6730ed53a002c56ce4e2f396ba3b3be262fd7cb68339f0377a45e8227fe332",
28+
)
29+
30+
# Include rules
31+
http_archive(
32+
name = "io_bazel_rules_docker",
33+
sha256 = "b1e80761a8a8243d03ebca8845e9cc1ba6c82ce7c5179ce2b295cd36f7e394bf",
34+
urls = ["https://github.com/bazelbuild/rules_docker/releases/download/v0.25.0/rules_docker-v0.25.0.tar.gz"],
35+
)
36+
load("@io_bazel_rules_docker//repositories:repositories.bzl",
37+
container_repositories = "repositories")
38+
container_repositories()
39+
40+
41+
# Setup workspace for mission dispatch
42+
load("//:deps.bzl", "mission_dispatch_workspace")
43+
mission_dispatch_workspace()

bzl/BUILD

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
"""
2+
SPDX-FileCopyrightText: NVIDIA CORPORATION & AFFILIATES
3+
Copyright (c) 2021-2022 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
4+
5+
Licensed under the Apache License, Version 2.0 (the "License");
6+
you may not use this file except in compliance with the License.
7+
You may obtain a copy of the License at
8+
9+
https://www.apache.org/licenses/LICENSE-2.0
10+
11+
Unless required by applicable law or agreed to in writing, software
12+
distributed under the License is distributed on an "AS IS" BASIS,
13+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
See the License for the specific language governing permissions and
15+
limitations under the License.
16+
17+
SPDX-License-Identifier: Apache-2.0
18+
"""
19+
load("@io_bazel_rules_docker//container:container.bzl", "container_image")
20+
21+
exports_files(["pylintrc", "pytype.py", "pylint.py"])
22+
23+
container_image(
24+
name = "python_base",
25+
base = "@loaded_base_docker_image//image",
26+
visibility = ["//visibility:public"],
27+
)

bzl/pylint.py

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
"""
2+
SPDX-FileCopyrightText: NVIDIA CORPORATION & AFFILIATES
3+
Copyright (c) 2021-2022 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
4+
5+
Licensed under the Apache License, Version 2.0 (the "License");
6+
you may not use this file except in compliance with the License.
7+
You may obtain a copy of the License at
8+
9+
https://www.apache.org/licenses/LICENSE-2.0
10+
11+
Unless required by applicable law or agreed to in writing, software
12+
distributed under the License is distributed on an "AS IS" BASIS,
13+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
See the License for the specific language governing permissions and
15+
limitations under the License.
16+
17+
SPDX-License-Identifier: Apache-2.0
18+
"""
19+
import os
20+
import subprocess
21+
import sys
22+
23+
def main():
24+
# Run pylint in a subprocess
25+
result = subprocess.run([sys.executable, "-m", "pylint"] + sys.argv[1:],
26+
env={"PYTHONPATH": os.environ["PYTHONPATH"]})
27+
sys.exit(result.returncode)
28+
29+
if __name__ == "__main__":
30+
main()

0 commit comments

Comments
 (0)