generated from tier4/ros2-project-template
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
edge_auto_launch. update launch files and params to match new autowar…
…e universe changes Signed-off-by: amc-nu <[email protected]>
- Loading branch information
0 parents
commit ec33cb0
Showing
62 changed files
with
7,527 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,47 @@ | ||
# Modified from https://github.com/ament/ament_lint/blob/master/ament_clang_format/ament_clang_format/configuration/.clang-format | ||
Language: Cpp | ||
BasedOnStyle: Google | ||
|
||
AccessModifierOffset: -2 | ||
AlignAfterOpenBracket: AlwaysBreak | ||
AllowShortFunctionsOnASingleLine: InlineOnly | ||
BraceWrapping: | ||
AfterClass: true | ||
AfterFunction: true | ||
AfterNamespace: true | ||
AfterStruct: true | ||
BreakBeforeBraces: Custom | ||
ColumnLimit: 100 | ||
ConstructorInitializerIndentWidth: 0 | ||
ContinuationIndentWidth: 2 | ||
DerivePointerAlignment: false | ||
PointerAlignment: Middle | ||
ReflowComments: true | ||
IncludeCategories: | ||
# C++ system headers | ||
- Regex: <[a-z_]*> | ||
Priority: 6 | ||
CaseSensitive: true | ||
# C system headers | ||
- Regex: <.*\.h> | ||
Priority: 5 | ||
CaseSensitive: true | ||
# Boost headers | ||
- Regex: boost/.* | ||
Priority: 4 | ||
CaseSensitive: true | ||
# Message headers | ||
- Regex: .*_msgs/.* | ||
Priority: 3 | ||
CaseSensitive: true | ||
- Regex: .*_srvs/.* | ||
Priority: 3 | ||
CaseSensitive: true | ||
# Other Package headers | ||
- Regex: <.*> | ||
Priority: 2 | ||
CaseSensitive: true | ||
# Local package headers | ||
- Regex: '".*"' | ||
Priority: 1 | ||
CaseSensitive: true |
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,16 @@ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
indent_style = space | ||
indent_size = 2 | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[*.md] | ||
indent_size = 4 | ||
trim_trailing_whitespace = false | ||
|
||
[*.py] | ||
indent_size = 4 |
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 @@ | ||
## PR Type | ||
|
||
<!-- Select one and remove others. If an appropriate one is not listed, please write by yourself. --> | ||
|
||
- New Feature | ||
- Improvement | ||
- Bug Fix | ||
|
||
## Related Links | ||
|
||
<!-- Please write related links to GitHub/Jira/Slack/etc. --> | ||
|
||
## Description | ||
|
||
<!-- Describe what this PR changes. --> | ||
|
||
## Review Procedure | ||
|
||
<!-- Explain how to review this PR. --> | ||
|
||
## Remarks | ||
|
||
<!-- Write remarks as you like if you need them. --> | ||
|
||
## Pre-Review Checklist for the PR Author | ||
|
||
**PR Author should check the checkboxes below when creating the PR.** | ||
|
||
- [ ] Assign PR to reviewer | ||
|
||
## Checklist for the PR Reviewer | ||
|
||
**Reviewers should check the checkboxes below before approval.** | ||
|
||
- [ ] Commits are properly organized and messages are according to the guideline | ||
- [ ] (Optional) Unit tests have been written for new behavior | ||
- [ ] PR title describes the changes | ||
|
||
## Post-Review Checklist for the PR Author | ||
|
||
**PR Author should check the checkboxes below before merging.** | ||
|
||
- [ ] All open points are addressed and tracked via issues or tickets | ||
|
||
## CI Checks | ||
|
||
- **Build and test for PR**: Required to pass before the merge. |
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 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: github-actions | ||
directory: / | ||
schedule: | ||
interval: daily | ||
open-pull-requests-limit: 1 | ||
labels: | ||
- bot | ||
- github-actions |
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,23 @@ | ||
- repository: autowarefoundation/autoware | ||
files: | ||
- source: .github/dependabot.yaml | ||
- source: .github/workflows/pre-commit.yaml | ||
- source: .github/workflows/pre-commit-optional.yaml | ||
- source: .github/workflows/semantic-pull-request.yaml | ||
- source: .github/workflows/spell-check-differential.yaml | ||
- source: .github/workflows/sync-files.yaml | ||
- source: .clang-format | ||
- source: .markdown-link-check.json | ||
- source: .markdownlint.yaml | ||
- source: .pre-commit-config-optional.yaml | ||
- source: .prettierignore | ||
- source: .prettierrc.yaml | ||
- source: .yamllint.yaml | ||
- source: CPPLINT.cfg | ||
- source: setup.cfg | ||
|
||
- repository: autowarefoundation/autoware_common | ||
files: | ||
- source: .github/workflows/build-and-test.yaml | ||
- source: .github/workflows/build-and-test-differential.yaml | ||
- source: .github/workflows/cancel-previous-workflows.yaml |
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,91 @@ | ||
name: build-and-test-differential | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
build-and-test-differential: | ||
runs-on: ubuntu-latest | ||
container: ${{ matrix.container }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
rosdistro: | ||
- humble | ||
include: | ||
- rosdistro: humble | ||
container: ros:humble | ||
build-depends-repos: build_depends.repos | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Remove exec_depend | ||
uses: autowarefoundation/autoware-github-actions/remove-exec-depend@v1 | ||
|
||
- name: Get modified packages | ||
id: get-modified-packages | ||
uses: autowarefoundation/autoware-github-actions/get-modified-packages@v1 | ||
|
||
- name: Build | ||
if: ${{ steps.get-modified-packages.outputs.modified-packages != '' }} | ||
uses: autowarefoundation/autoware-github-actions/colcon-build@v1 | ||
with: | ||
rosdistro: ${{ matrix.rosdistro }} | ||
target-packages: ${{ steps.get-modified-packages.outputs.modified-packages }} | ||
build-depends-repos: ${{ matrix.build-depends-repos }} | ||
|
||
- name: Test | ||
id: test | ||
if: ${{ steps.get-modified-packages.outputs.modified-packages != '' }} | ||
uses: autowarefoundation/autoware-github-actions/colcon-test@v1 | ||
with: | ||
rosdistro: ${{ matrix.rosdistro }} | ||
target-packages: ${{ steps.get-modified-packages.outputs.modified-packages }} | ||
build-depends-repos: ${{ matrix.build-depends-repos }} | ||
|
||
- name: Upload coverage to CodeCov | ||
if: ${{ steps.test.outputs.coverage-report-files != '' }} | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
files: ${{ steps.test.outputs.coverage-report-files }} | ||
fail_ci_if_error: false | ||
verbose: true | ||
flags: differential | ||
|
||
clang-tidy-differential: | ||
runs-on: ubuntu-latest | ||
container: ros:humble | ||
needs: build-and-test-differential | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Remove exec_depend | ||
uses: autowarefoundation/autoware-github-actions/remove-exec-depend@v1 | ||
|
||
- name: Get modified packages | ||
id: get-modified-packages | ||
uses: autowarefoundation/autoware-github-actions/get-modified-packages@v1 | ||
|
||
- name: Get modified files | ||
id: get-modified-files | ||
uses: tj-actions/changed-files@v35 | ||
with: | ||
files: | | ||
**/*.cpp | ||
**/*.hpp | ||
- name: Run clang-tidy | ||
if: ${{ steps.get-modified-files.outputs.all_changed_files != '' }} | ||
uses: autowarefoundation/autoware-github-actions/clang-tidy@v1 | ||
with: | ||
rosdistro: humble | ||
target-packages: ${{ steps.get-modified-packages.outputs.modified-packages }} | ||
target-files: ${{ steps.get-modified-files.outputs.all_changed_files }} | ||
clang-tidy-config-url: https://raw.githubusercontent.com/autowarefoundation/autoware/main/.clang-tidy | ||
build-depends-repos: build_depends.repos |
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,58 @@ | ||
name: build-and-test | ||
|
||
on: | ||
push: | ||
schedule: | ||
- cron: 0 0 * * * | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build-and-test: | ||
if: ${{ github.event_name != 'push' || github.ref_name == github.event.repository.default_branch }} | ||
runs-on: ubuntu-latest | ||
container: ${{ matrix.container }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
rosdistro: | ||
- humble | ||
include: | ||
- rosdistro: humble | ||
container: ros:humble | ||
build-depends-repos: build_depends.repos | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Remove exec_depend | ||
uses: autowarefoundation/autoware-github-actions/remove-exec-depend@v1 | ||
|
||
- name: Get self packages | ||
id: get-self-packages | ||
uses: autowarefoundation/autoware-github-actions/get-self-packages@v1 | ||
|
||
- name: Build | ||
if: ${{ steps.get-self-packages.outputs.self-packages != '' }} | ||
uses: autowarefoundation/autoware-github-actions/colcon-build@v1 | ||
with: | ||
rosdistro: ${{ matrix.rosdistro }} | ||
target-packages: ${{ steps.get-self-packages.outputs.self-packages }} | ||
build-depends-repos: ${{ matrix.build-depends-repos }} | ||
|
||
- name: Test | ||
if: ${{ steps.get-self-packages.outputs.self-packages != '' }} | ||
id: test | ||
uses: autowarefoundation/autoware-github-actions/colcon-test@v1 | ||
with: | ||
rosdistro: ${{ matrix.rosdistro }} | ||
target-packages: ${{ steps.get-self-packages.outputs.self-packages }} | ||
build-depends-repos: ${{ matrix.build-depends-repos }} | ||
|
||
- name: Upload coverage to CodeCov | ||
if: ${{ steps.test.outputs.coverage-report-files != '' }} | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
files: ${{ steps.test.outputs.coverage-report-files }} | ||
fail_ci_if_error: false | ||
verbose: true | ||
flags: total |
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,14 @@ | ||
name: cancel-previous-workflows | ||
|
||
on: | ||
pull_request_target: | ||
|
||
jobs: | ||
cancel-previous-workflows: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Cancel previous runs | ||
uses: styfle/[email protected] | ||
with: | ||
workflow_id: all | ||
all_but_latest: true |
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,16 @@ | ||
name: pre-commit-optional | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
pre-commit-optional: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Run pre-commit | ||
uses: autowarefoundation/autoware-github-actions/pre-commit@v1 | ||
with: | ||
pre-commit-config: .pre-commit-config-optional.yaml |
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,27 @@ | ||
name: pre-commit | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
pre-commit: | ||
if: ${{ github.event.repository.private }} # Use pre-commit.ci for public repositories | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Generate token | ||
id: generate-token | ||
uses: tibdex/github-app-token@v1 | ||
with: | ||
app_id: ${{ secrets.APP_ID }} | ||
private_key: ${{ secrets.PRIVATE_KEY }} | ||
|
||
- name: Check out repository | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.event.pull_request.head.ref }} | ||
|
||
- name: Run pre-commit | ||
uses: autowarefoundation/autoware-github-actions/pre-commit@v1 | ||
with: | ||
pre-commit-config: .pre-commit-config.yaml | ||
token: ${{ steps.generate-token.outputs.token }} |
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,12 @@ | ||
name: semantic-pull-request | ||
|
||
on: | ||
pull_request_target: | ||
types: | ||
- opened | ||
- edited | ||
- synchronize | ||
|
||
jobs: | ||
semantic-pull-request: | ||
uses: autowarefoundation/autoware-github-actions/.github/workflows/semantic-pull-request.yaml@v1 |
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,16 @@ | ||
name: spell-check-differential | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
spell-check-differential: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Run spell-check | ||
uses: autowarefoundation/autoware-github-actions/spell-check@v1 | ||
with: | ||
cspell-json-url: https://raw.githubusercontent.com/tier4/autoware-spell-check-dict/main/.cspell.json |
Oops, something went wrong.