-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
copy calibration tools from private repository
- Loading branch information
Showing
364 changed files
with
48,683 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,43 @@ | ||
# 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 | ||
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 | ||
# 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,17 @@ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
indent_style = space | ||
indent_size = 4 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[*.md] | ||
max_line_length = off | ||
trim_trailing_whitespace = false | ||
|
||
[*.{launch,test,yml,yaml,xml,xacro}] | ||
indent_style = space | ||
indent_size = 2 |
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,55 @@ | ||
## 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.** | ||
|
||
- [ ] Code follows [coding guidelines][coding-guidelines] | ||
- [ ] 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 | ||
- [ ] Code follows [coding guidelines][coding-guidelines] | ||
- [ ] (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 | ||
- [ ] Write [release notes][release-notes] | ||
|
||
## CI Checks | ||
|
||
- **Build and test for PR**: Required to pass before the merge. | ||
- **Check spelling**: NOT required to pass before the merge. It is up to the reviewer(s). See [here][spell-check-dict] if you want to add some words to the spell check dictionary. | ||
|
||
[coding-guidelines]: https://tier4.atlassian.net/wiki/spaces/AIP/pages/1194394777/T4 | ||
[release-notes]: https://tier4.atlassian.net/l/c/X1p69s6B | ||
[spell-check-dict]: https://github.com/tier4/autoware-spell-check-dict#how-to-contribute |
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,24 @@ | ||
- 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: .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/check-build-depends.yaml | ||
- source: .github/workflows/clang-tidy-pr-comments.yaml | ||
- source: .github/workflows/sync-files.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,89 @@ | ||
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: | ||
- galactic | ||
- humble | ||
include: | ||
- rosdistro: galactic | ||
container: ros:galactic | ||
build-depends-repos: build_depends.repos | ||
- rosdistro: humble | ||
container: ros:humble | ||
build-depends-repos: build_depends.repos | ||
steps: | ||
- name: Cancel previous runs | ||
uses: styfle/[email protected] | ||
|
||
- 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:galactic | ||
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: Run clang-tidy | ||
if: ${{ steps.get-modified-packages.outputs.modified-packages != '' }} | ||
uses: autowarefoundation/autoware-github-actions/clang-tidy@v1 | ||
with: | ||
rosdistro: galactic | ||
target-packages: ${{ steps.get-modified-packages.outputs.modified-packages }} | ||
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,62 @@ | ||
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: | ||
- galactic | ||
- humble | ||
include: | ||
- rosdistro: galactic | ||
container: ros:galactic | ||
build-depends-repos: build_depends.repos | ||
- 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,31 @@ | ||
name: check-build-depends | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- build_depends.repos | ||
|
||
jobs: | ||
check-build-depends: | ||
runs-on: ubuntu-latest | ||
container: ros:galactic | ||
steps: | ||
- name: Cancel previous runs | ||
uses: styfle/[email protected] | ||
|
||
- 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 | ||
uses: autowarefoundation/autoware-github-actions/colcon-build@v1 | ||
with: | ||
rosdistro: galactic | ||
target-packages: ${{ steps.get-self-packages.outputs.self-packages }} | ||
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,52 @@ | ||
name: clang-tidy-pr-comments | ||
|
||
on: | ||
workflow_run: | ||
workflows: | ||
- build-and-test-differential | ||
types: | ||
- completed | ||
|
||
jobs: | ||
clang-tidy-pr-comments: | ||
if: ${{ github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'success' }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Download analysis results | ||
run: | | ||
gh run download ${{ github.event.workflow_run.id }} -D /tmp | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Set variables | ||
id: set-variables | ||
run: | | ||
echo ::set-output name=pr-id::"$(cat /tmp/clang-tidy-result/pr-id.txt)" | ||
echo ::set-output name=pr-head-repo::"$(cat /tmp/clang-tidy-result/pr-head-repo.txt)" | ||
echo ::set-output name=pr-head-ref::"$(cat /tmp/clang-tidy-result/pr-head-ref.txt)" | ||
- name: Check out PR head | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: ${{ steps.set-variables.outputs.pr-head-repo }} | ||
ref: ${{ steps.set-variables.outputs.pr-head-ref }} | ||
persist-credentials: false | ||
|
||
- name: Replace paths in fixes.yaml | ||
run: | | ||
sed -i -e "s|/__w/|/home/runner/work/|g" /tmp/clang-tidy-result/fixes.yaml | ||
cat /tmp/clang-tidy-result/fixes.yaml | ||
- name: Copy fixes.yaml to access from Docker Container Action | ||
run: | | ||
cp /tmp/clang-tidy-result/fixes.yaml fixes.yaml | ||
- name: Run clang-tidy-pr-comments action | ||
uses: platisd/clang-tidy-pr-comments@v1 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
clang_tidy_fixes: fixes.yaml | ||
pull_request_id: ${{ steps.set-variables.outputs.pr-id }} |
Oops, something went wrong.