-
Notifications
You must be signed in to change notification settings - Fork 180
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
utilize nvidia gpu while running gazebo on linux and windows (#72)
* Bump athackst/mkdocs-simple-plugin from 2.2.0 to 2.3.0 (#41) Bumps [athackst/mkdocs-simple-plugin](https://github.com/athackst/mkdocs-simple-plugin) from 2.2.0 to 2.3.0. - [Release notes](https://github.com/athackst/mkdocs-simple-plugin/releases) - [Commits](athackst/mkdocs-simple-plugin@v2.2.0...v2.3.0) --- updated-dependencies: - dependency-name: athackst/mkdocs-simple-plugin dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * allow x11 access to host (#44) * Add debugging option for ROS launch files (#45) * Add ROS launch files debugging * Add ROS launch file debugging for isolated install * Sort alphabetically the extensions * Update cpp version (#48) * Add support for intel iGPU (#55) * remove wayland config, devcontainer handles it (#54) * Revert "remove wayland config, devcontainer handles it (#54)" (#58) This reverts commit 24e704d. * Add script to add submodules to workspace from repos file (#59) * Update workflow to only trigger when pushing to specific branches (#60) * Bump athackst/mkdocs-simple-plugin from 2.3.0 to 3.0.0 (#61) * Bump athackst/mkdocs-simple-plugin from 3.0.0 to 3.1.0 (#62) * Bump actions/checkout from 3 to 4 (#64) * Add rosdistro to setup and update purge command (#68) * Remove eol foxy and add rolling to ros workflow (#69) * utilize nvidia gpu while running gazebo on linux and windows --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Sophia Koffler <[email protected]> Co-authored-by: DaniGarciaLopez <[email protected]> Co-authored-by: Shunsuke KIMURA <[email protected]> Co-authored-by: SubaruArai <[email protected]> Co-authored-by: Allison Thackston <[email protected]>
- Loading branch information
1 parent
29af219
commit b4a06bc
Showing
10 changed files
with
143 additions
and
13 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
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
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,38 @@ | ||
import glob | ||
import os | ||
import subprocess | ||
import yaml | ||
|
||
prefix="src" | ||
|
||
def add_git_submodule(repo_name, repo_url, repo_version): | ||
subprocess.call(['git', 'submodule', 'add', '-b', repo_version, repo_url, repo_name]) | ||
|
||
def is_submodule(repo_name): | ||
try: | ||
subprocess.check_output(['git', 'submodule', 'status', repo_name], stderr=subprocess.DEVNULL) | ||
return True | ||
except subprocess.CalledProcessError: | ||
return False | ||
|
||
def parse_repos_file(file_path): | ||
with open(file_path, 'r') as file: | ||
repos_data = yaml.safe_load(file) | ||
repositories = repos_data['repositories'] | ||
|
||
for repo_name, repo_info in repositories.items(): | ||
if 'type' in repo_info and repo_info['type'] == 'git': | ||
repo_url = repo_info['url'] | ||
repo_version = repo_info['version'] | ||
submodule_name = os.path.join(prefix, repo_name) | ||
|
||
if not is_submodule(submodule_name): | ||
add_git_submodule(submodule_name, repo_url, repo_version) | ||
print(f"Added {repo_name} as a submodule.") | ||
|
||
# Find .repos files within the src directory | ||
repos_files = glob.glob('src/**/*.repos', recursive=True) | ||
|
||
# Process each .repos file | ||
for repos_file in repos_files: | ||
parse_repos_file(repos_file) |
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
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
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
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
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
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
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