Skip to content

Commit 7b31c4d

Browse files
committed
copy calibration tools from private repository
1 parent 5f61d36 commit 7b31c4d

File tree

364 files changed

+48683
-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.

364 files changed

+48683
-0
lines changed

.clang-format

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Modified from https://github.com/ament/ament_lint/blob/master/ament_clang_format/ament_clang_format/configuration/.clang-format
2+
Language: Cpp
3+
BasedOnStyle: Google
4+
5+
AccessModifierOffset: -2
6+
AlignAfterOpenBracket: AlwaysBreak
7+
BraceWrapping:
8+
AfterClass: true
9+
AfterFunction: true
10+
AfterNamespace: true
11+
AfterStruct: true
12+
BreakBeforeBraces: Custom
13+
ColumnLimit: 100
14+
ConstructorInitializerIndentWidth: 0
15+
ContinuationIndentWidth: 2
16+
DerivePointerAlignment: false
17+
PointerAlignment: Middle
18+
ReflowComments: true
19+
IncludeCategories:
20+
# C++ system headers
21+
- Regex: <[a-z_]*>
22+
Priority: 6
23+
CaseSensitive: true
24+
# C system headers
25+
- Regex: <.*\.h>
26+
Priority: 5
27+
CaseSensitive: true
28+
# Boost headers
29+
- Regex: boost/.*
30+
Priority: 4
31+
CaseSensitive: true
32+
# Message headers
33+
- Regex: .*_msgs/.*
34+
Priority: 3
35+
CaseSensitive: true
36+
# Other Package headers
37+
- Regex: <.*>
38+
Priority: 2
39+
CaseSensitive: true
40+
# Local package headers
41+
- Regex: '".*"'
42+
Priority: 1
43+
CaseSensitive: true

.editorconfig

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
indent_style = space
7+
indent_size = 4
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true
10+
11+
[*.md]
12+
max_line_length = off
13+
trim_trailing_whitespace = false
14+
15+
[*.{launch,test,yml,yaml,xml,xacro}]
16+
indent_style = space
17+
indent_size = 2

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
## PR Type
2+
3+
<!-- Select one and remove others. If an appropriate one is not listed, please write by yourself. -->
4+
5+
- New Feature
6+
- Improvement
7+
- Bug Fix
8+
9+
## Related Links
10+
11+
<!-- Please write related links to GitHub/Jira/Slack/etc. -->
12+
13+
## Description
14+
15+
<!-- Describe what this PR changes. -->
16+
17+
## Review Procedure
18+
19+
<!-- Explain how to review this PR. -->
20+
21+
## Remarks
22+
23+
<!-- Write remarks as you like if you need them. -->
24+
25+
## Pre-Review Checklist for the PR Author
26+
27+
**PR Author should check the checkboxes below when creating the PR.**
28+
29+
- [ ] Code follows [coding guidelines][coding-guidelines]
30+
- [ ] Assign PR to reviewer
31+
32+
## Checklist for the PR Reviewer
33+
34+
**Reviewers should check the checkboxes below before approval.**
35+
36+
- [ ] Commits are properly organized and messages are according to the guideline
37+
- [ ] Code follows [coding guidelines][coding-guidelines]
38+
- [ ] (Optional) Unit tests have been written for new behavior
39+
- [ ] PR title describes the changes
40+
41+
## Post-Review Checklist for the PR Author
42+
43+
**PR Author should check the checkboxes below before merging.**
44+
45+
- [ ] All open points are addressed and tracked via issues or tickets
46+
- [ ] Write [release notes][release-notes]
47+
48+
## CI Checks
49+
50+
- **Build and test for PR**: Required to pass before the merge.
51+
- **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.
52+
53+
[coding-guidelines]: https://tier4.atlassian.net/wiki/spaces/AIP/pages/1194394777/T4
54+
[release-notes]: https://tier4.atlassian.net/l/c/X1p69s6B
55+
[spell-check-dict]: https://github.com/tier4/autoware-spell-check-dict#how-to-contribute

.github/dependabot.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: github-actions
4+
directory: /
5+
schedule:
6+
interval: daily
7+
open-pull-requests-limit: 1
8+
labels:
9+
- bot
10+
- github-actions

.github/sync-files.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
- repository: autowarefoundation/autoware
2+
files:
3+
- source: .github/dependabot.yaml
4+
- source: .github/workflows/pre-commit.yaml
5+
- source: .github/workflows/pre-commit-optional.yaml
6+
- source: .github/workflows/semantic-pull-request.yaml
7+
- source: .github/workflows/spell-check-differential.yaml
8+
- source: .clang-format
9+
- source: .markdown-link-check.json
10+
- source: .markdownlint.yaml
11+
- source: .pre-commit-config-optional.yaml
12+
- source: .prettierignore
13+
- source: .prettierrc.yaml
14+
- source: .yamllint.yaml
15+
- source: CPPLINT.cfg
16+
- source: setup.cfg
17+
18+
- repository: autowarefoundation/autoware_common
19+
files:
20+
- source: .github/workflows/build-and-test.yaml
21+
- source: .github/workflows/build-and-test-differential.yaml
22+
- source: .github/workflows/check-build-depends.yaml
23+
- source: .github/workflows/clang-tidy-pr-comments.yaml
24+
- source: .github/workflows/sync-files.yaml
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
name: build-and-test-differential
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
build-and-test-differential:
8+
runs-on: ubuntu-latest
9+
container: ${{ matrix.container }}
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
rosdistro:
14+
- galactic
15+
- humble
16+
include:
17+
- rosdistro: galactic
18+
container: ros:galactic
19+
build-depends-repos: build_depends.repos
20+
- rosdistro: humble
21+
container: ros:humble
22+
build-depends-repos: build_depends.repos
23+
steps:
24+
- name: Cancel previous runs
25+
uses: styfle/[email protected]
26+
27+
- name: Check out repository
28+
uses: actions/checkout@v3
29+
with:
30+
fetch-depth: 0
31+
32+
- name: Remove exec_depend
33+
uses: autowarefoundation/autoware-github-actions/remove-exec-depend@v1
34+
35+
- name: Get modified packages
36+
id: get-modified-packages
37+
uses: autowarefoundation/autoware-github-actions/get-modified-packages@v1
38+
39+
- name: Build
40+
if: ${{ steps.get-modified-packages.outputs.modified-packages != '' }}
41+
uses: autowarefoundation/autoware-github-actions/colcon-build@v1
42+
with:
43+
rosdistro: ${{ matrix.rosdistro }}
44+
target-packages: ${{ steps.get-modified-packages.outputs.modified-packages }}
45+
build-depends-repos: ${{ matrix.build-depends-repos }}
46+
47+
- name: Test
48+
id: test
49+
if: ${{ steps.get-modified-packages.outputs.modified-packages != '' }}
50+
uses: autowarefoundation/autoware-github-actions/colcon-test@v1
51+
with:
52+
rosdistro: ${{ matrix.rosdistro }}
53+
target-packages: ${{ steps.get-modified-packages.outputs.modified-packages }}
54+
build-depends-repos: ${{ matrix.build-depends-repos }}
55+
56+
- name: Upload coverage to CodeCov
57+
if: ${{ steps.test.outputs.coverage-report-files != '' }}
58+
uses: codecov/codecov-action@v3
59+
with:
60+
files: ${{ steps.test.outputs.coverage-report-files }}
61+
fail_ci_if_error: false
62+
verbose: true
63+
flags: differential
64+
65+
clang-tidy-differential:
66+
runs-on: ubuntu-latest
67+
container: ros:galactic
68+
needs: build-and-test-differential
69+
steps:
70+
- name: Check out repository
71+
uses: actions/checkout@v3
72+
with:
73+
fetch-depth: 0
74+
75+
- name: Remove exec_depend
76+
uses: autowarefoundation/autoware-github-actions/remove-exec-depend@v1
77+
78+
- name: Get modified packages
79+
id: get-modified-packages
80+
uses: autowarefoundation/autoware-github-actions/get-modified-packages@v1
81+
82+
- name: Run clang-tidy
83+
if: ${{ steps.get-modified-packages.outputs.modified-packages != '' }}
84+
uses: autowarefoundation/autoware-github-actions/clang-tidy@v1
85+
with:
86+
rosdistro: galactic
87+
target-packages: ${{ steps.get-modified-packages.outputs.modified-packages }}
88+
clang-tidy-config-url: https://raw.githubusercontent.com/autowarefoundation/autoware/main/.clang-tidy
89+
build-depends-repos: build_depends.repos

.github/workflows/build-and-test.yaml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: build-and-test
2+
3+
on:
4+
push:
5+
schedule:
6+
- cron: 0 0 * * *
7+
workflow_dispatch:
8+
9+
jobs:
10+
build-and-test:
11+
if: ${{ github.event_name != 'push' || github.ref_name == github.event.repository.default_branch }}
12+
runs-on: ubuntu-latest
13+
container: ${{ matrix.container }}
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
rosdistro:
18+
- galactic
19+
- humble
20+
include:
21+
- rosdistro: galactic
22+
container: ros:galactic
23+
build-depends-repos: build_depends.repos
24+
- rosdistro: humble
25+
container: ros:humble
26+
build-depends-repos: build_depends.repos
27+
steps:
28+
- name: Check out repository
29+
uses: actions/checkout@v3
30+
31+
- name: Remove exec_depend
32+
uses: autowarefoundation/autoware-github-actions/remove-exec-depend@v1
33+
34+
- name: Get self packages
35+
id: get-self-packages
36+
uses: autowarefoundation/autoware-github-actions/get-self-packages@v1
37+
38+
- name: Build
39+
if: ${{ steps.get-self-packages.outputs.self-packages != '' }}
40+
uses: autowarefoundation/autoware-github-actions/colcon-build@v1
41+
with:
42+
rosdistro: ${{ matrix.rosdistro }}
43+
target-packages: ${{ steps.get-self-packages.outputs.self-packages }}
44+
build-depends-repos: ${{ matrix.build-depends-repos }}
45+
46+
- name: Test
47+
if: ${{ steps.get-self-packages.outputs.self-packages != '' }}
48+
id: test
49+
uses: autowarefoundation/autoware-github-actions/colcon-test@v1
50+
with:
51+
rosdistro: ${{ matrix.rosdistro }}
52+
target-packages: ${{ steps.get-self-packages.outputs.self-packages }}
53+
build-depends-repos: ${{ matrix.build-depends-repos }}
54+
55+
- name: Upload coverage to CodeCov
56+
if: ${{ steps.test.outputs.coverage-report-files != '' }}
57+
uses: codecov/codecov-action@v3
58+
with:
59+
files: ${{ steps.test.outputs.coverage-report-files }}
60+
fail_ci_if_error: false
61+
verbose: true
62+
flags: total
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: check-build-depends
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- build_depends.repos
7+
8+
jobs:
9+
check-build-depends:
10+
runs-on: ubuntu-latest
11+
container: ros:galactic
12+
steps:
13+
- name: Cancel previous runs
14+
uses: styfle/[email protected]
15+
16+
- name: Check out repository
17+
uses: actions/checkout@v3
18+
19+
- name: Remove exec_depend
20+
uses: autowarefoundation/autoware-github-actions/remove-exec-depend@v1
21+
22+
- name: Get self packages
23+
id: get-self-packages
24+
uses: autowarefoundation/autoware-github-actions/get-self-packages@v1
25+
26+
- name: Build
27+
uses: autowarefoundation/autoware-github-actions/colcon-build@v1
28+
with:
29+
rosdistro: galactic
30+
target-packages: ${{ steps.get-self-packages.outputs.self-packages }}
31+
build-depends-repos: build_depends.repos
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: clang-tidy-pr-comments
2+
3+
on:
4+
workflow_run:
5+
workflows:
6+
- build-and-test-differential
7+
types:
8+
- completed
9+
10+
jobs:
11+
clang-tidy-pr-comments:
12+
if: ${{ github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'success' }}
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Check out repository
16+
uses: actions/checkout@v3
17+
18+
- name: Download analysis results
19+
run: |
20+
gh run download ${{ github.event.workflow_run.id }} -D /tmp
21+
env:
22+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23+
24+
- name: Set variables
25+
id: set-variables
26+
run: |
27+
echo ::set-output name=pr-id::"$(cat /tmp/clang-tidy-result/pr-id.txt)"
28+
echo ::set-output name=pr-head-repo::"$(cat /tmp/clang-tidy-result/pr-head-repo.txt)"
29+
echo ::set-output name=pr-head-ref::"$(cat /tmp/clang-tidy-result/pr-head-ref.txt)"
30+
31+
- name: Check out PR head
32+
uses: actions/checkout@v3
33+
with:
34+
repository: ${{ steps.set-variables.outputs.pr-head-repo }}
35+
ref: ${{ steps.set-variables.outputs.pr-head-ref }}
36+
persist-credentials: false
37+
38+
- name: Replace paths in fixes.yaml
39+
run: |
40+
sed -i -e "s|/__w/|/home/runner/work/|g" /tmp/clang-tidy-result/fixes.yaml
41+
cat /tmp/clang-tidy-result/fixes.yaml
42+
43+
- name: Copy fixes.yaml to access from Docker Container Action
44+
run: |
45+
cp /tmp/clang-tidy-result/fixes.yaml fixes.yaml
46+
47+
- name: Run clang-tidy-pr-comments action
48+
uses: platisd/clang-tidy-pr-comments@v1
49+
with:
50+
github_token: ${{ secrets.GITHUB_TOKEN }}
51+
clang_tidy_fixes: fixes.yaml
52+
pull_request_id: ${{ steps.set-variables.outputs.pr-id }}

0 commit comments

Comments
 (0)