Skip to content

Commit 8278cce

Browse files
Merge pull request #39 from tier4/sync-upstream
chore: sync upstream
2 parents 75b9e2d + 80007ed commit 8278cce

File tree

394 files changed

+5404
-4997
lines changed

Some content is hidden

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

394 files changed

+5404
-4997
lines changed

.github/sync-files.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
- source: .github/PULL_REQUEST_TEMPLATE/standard-change.md
1313
- source: .github/dependabot.yaml
1414
- source: .github/stale.yml
15+
- source: .github/workflows/github-release.yaml
1516
- source: .github/workflows/pre-commit.yaml
1617
- source: .github/workflows/pre-commit-optional.yaml
1718
- source: .github/workflows/semantic-pull-request.yaml

.github/workflows/clang-tidy-pr-comments.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
cp /tmp/clang-tidy-result/fixes.yaml fixes.yaml
4646
4747
- name: Run clang-tidy-pr-comments action
48-
uses: platisd/clang-tidy-pr-comments@1.1.6
48+
uses: platisd/clang-tidy-pr-comments@v1
4949
with:
5050
github_token: ${{ secrets.GITHUB_TOKEN }}
5151
clang_tidy_fixes: fixes.yaml

.github/workflows/github-release.yaml

+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: github-release
2+
3+
on:
4+
push:
5+
branches:
6+
- beta/v*
7+
tags:
8+
- v*
9+
workflow_dispatch:
10+
inputs:
11+
beta-branch-or-tag-name:
12+
type: string
13+
required: true
14+
15+
jobs:
16+
github-release:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Set tag name
20+
id: set-tag-name
21+
run: |
22+
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
23+
REF_NAME="${{ github.event.inputs.beta-branch-or-tag-name }}"
24+
else
25+
REF_NAME="${{ github.ref_name }}"
26+
fi
27+
28+
echo ::set-output name=ref-name::"$REF_NAME"
29+
echo ::set-output name=tag-name::"${REF_NAME#beta/}"
30+
31+
- name: Check out repository
32+
uses: actions/checkout@v3
33+
with:
34+
fetch-depth: 0
35+
ref: ${{ steps.set-tag-name.outputs.ref-name }}
36+
37+
- name: Set target name for beta branches
38+
id: set-target-name
39+
run: |
40+
if [[ "${{ steps.set-tag-name.outputs.ref-name }}" =~ "beta/" ]]; then
41+
echo ::set-output name=target-name::"${{ steps.set-tag-name.outputs.ref-name }}"
42+
fi
43+
44+
- name: Create a local tag for beta branches
45+
run: |
46+
if [ "${{ steps.set-target-name.outputs.target-name }}" != "" ]; then
47+
git tag "${{ steps.set-tag-name.outputs.tag-name }}"
48+
fi
49+
50+
- name: Run generate-changelog
51+
id: generate-changelog
52+
uses: autowarefoundation/autoware-github-actions/generate-changelog@v1
53+
54+
- name: Release to GitHub
55+
run: |
56+
gh release create "${{ steps.set-tag-name.outputs.tag-name }}" \
57+
--draft \
58+
--target "${{ steps.set-target-name.outputs.target-name }}" \
59+
--title "Release ${{ steps.set-tag-name.outputs.tag-name }}" \
60+
--notes "$NOTES"
61+
env:
62+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
63+
NOTES: ${{ steps.generate-changelog.outputs.changelog }}

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,4 +94,4 @@ repos:
9494
args: [--quiet]
9595
exclude: .cu
9696

97-
exclude: .svg|control/trajectory_follower|control/trajectory_follower_nodes|common/autoware_auto_cmake|common/autoware_auto_common|common/autoware_auto_geometry|common/autoware_auto_tf2|common/autoware_testing|common/fake_test_node|common/had_map_utils|common/motion_common|common/motion_testing|common/time_utils|common/vehicle_constants_manager|common/autoware_auto_perception_rviz_plugin|common/osqp_interface|simulator/simple_planning_simulator|planning/freespace_planner|planning/astar_search|planning/costmap_generator
97+
exclude: .svg
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
autoware_auto_cmake {#autoware-auto-cmake-design}
2-
===========
1+
# autoware_auto_cmake {#autoware-auto-cmake-design}
32

43
This is the design document for the `autoware_auto_cmake` package.
54

6-
7-
# Purpose
5+
## Purpose
86

97
Provide common CMake variables and functions to Autoware packages.
108

@@ -13,17 +11,17 @@ Those include:
1311
- Setting the language standard
1412
- Getting user-provided variables
1513
- Providing functions to:
16-
+ set compiler flags
17-
+ turn off optimizations
14+
- set compiler flags
15+
- turn off optimizations
1816

19-
# Design
17+
## Design
2018

21-
## Usage
19+
### Usage
2220

2321
Add `autoware_auto_cmake` as a "build_depend" in the dependent packages.
2422

25-
### CMake variables {#cmake-config-variables}
23+
#### CMake variables {#cmake-config-variables}
2624

27-
|Name|Type|Descritpion|Default|
28-
|----|----|-----------|-------|
29-
|`DOWNLOAD_ARTIFACTS`|*BOOL*|Allow downloading artifacts at build time.|`OFF`|
25+
| Name | Type | Descritpion | Default |
26+
| -------------------- | ------ | ------------------------------------------ | ------- |
27+
| `DOWNLOAD_ARTIFACTS` | _BOOL_ | Allow downloading artifacts at build time. | `OFF` |

common/autoware_auto_cmake/package.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212

1313
<build_depend>ros_environment</build_depend>
1414

15-
<buildtool_export_depend>ament_cmake_core</buildtool_export_depend>
16-
<buildtool_export_depend>ament_cmake_lint_cmake</buildtool_export_depend>
1715
<buildtool_export_depend>ament_cmake_copyright</buildtool_export_depend>
16+
<buildtool_export_depend>ament_cmake_core</buildtool_export_depend>
1817
<buildtool_export_depend>ament_cmake_cppcheck</buildtool_export_depend>
1918
<buildtool_export_depend>ament_cmake_cpplint</buildtool_export_depend>
19+
<buildtool_export_depend>ament_cmake_lint_cmake</buildtool_export_depend>
2020
<buildtool_export_depend>ament_cmake_uncrustify</buildtool_export_depend>
2121

2222
<test_depend>ament_cmake_lint_cmake</test_depend>

common/autoware_auto_common/CMakeLists.txt

+16-16
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ if(BUILD_TESTING)
3232
# Temporarily disable cpplint and uncrustify
3333
list(APPEND AMENT_LINT_AUTO_EXCLUDE
3434
ament_cmake_cpplint
35-
ament_cmake_uncrustify
3635
)
3736

3837
ament_lint_auto_find_test_dependencies()
@@ -46,27 +45,28 @@ if(BUILD_TESTING)
4645
find_package(ament_cmake_cpplint)
4746
ament_cpplint(${FILES_MINUS_SOME})
4847

49-
# Re-enable uncrustify
50-
find_package(ament_cmake_uncrustify)
51-
ament_uncrustify(${FILES_MINUS_SOME})
52-
5348
# Unit tests
5449
set(TEST_COMMON test_common_gtest)
5550
ament_add_gtest(${TEST_COMMON}
56-
test/gtest_main.cpp
57-
test/test_bool_comparisons.cpp
58-
test/test_byte_reader.cpp
59-
test/test_float_comparisons.cpp
60-
test/test_mahalanobis_distance.cpp
61-
test/test_message_field_adapters.cpp
62-
test/test_template_utils.cpp
63-
test/test_angle_utils.cpp
64-
test/test_type_name.cpp
65-
test/test_type_traits.cpp)
51+
test/gtest_main.cpp
52+
test/test_bool_comparisons.cpp
53+
test/test_byte_reader.cpp
54+
test/test_float_comparisons.cpp
55+
test/test_mahalanobis_distance.cpp
56+
test/test_message_field_adapters.cpp
57+
test/test_template_utils.cpp
58+
test/test_angle_utils.cpp
59+
test/test_type_name.cpp
60+
test/test_type_traits.cpp
61+
)
6662
autoware_set_compile_options(${TEST_COMMON})
6763
target_compile_options(${TEST_COMMON} PRIVATE -Wno-sign-conversion)
6864
target_include_directories(${TEST_COMMON} PRIVATE include)
69-
ament_target_dependencies(${TEST_COMMON} builtin_interfaces Eigen3)
65+
ament_target_dependencies(${TEST_COMMON}
66+
builtin_interfaces
67+
Eigen3
68+
geometry_msgs
69+
)
7070
endif()
7171

7272
# Ament Exporting

common/autoware_auto_common/design/comparisons.md

+8-9
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
Comparisons {#helper-comparisons}
2-
===========
1+
# Comparisons {#helper-comparisons}
32

43
The `float_comparisons.hpp` library is a simple set of functions for performing approximate numerical comparisons.
54
There are separate functions for performing comparisons using absolute bounds and relative bounds. Absolute comparison checks are prefixed with `abs_` and relative checks are prefixed with `rel_`.
@@ -8,19 +7,19 @@ The `bool_comparisons.hpp` library additionally contains an XOR operator.
87

98
The intent of the library is to improve readability of code and reduce likelihood of typographical errors when using numerical and boolean comparisons.
109

11-
# Target use cases
10+
## Target use cases
1211

1312
The approximate comparisons are intended to be used to check whether two numbers lie within some absolute or relative interval.
1413
The `exclusive_or` function will test whether two values cast to different boolean values.
1514

16-
# Assumptions
15+
## Assumptions
1716

18-
* The approximate comparisons all take an `epsilon` parameter.
19-
The value of this parameter must be >= 0.
20-
* The library is only intended to be used with floating point types.
21-
A static assertion will be thrown if the library is used with a non-floating point type.
17+
- The approximate comparisons all take an `epsilon` parameter.
18+
The value of this parameter must be >= 0.
19+
- The library is only intended to be used with floating point types.
20+
A static assertion will be thrown if the library is used with a non-floating point type.
2221

23-
# Example Usage
22+
## Example Usage
2423

2524
```c++
2625
#include "common/bool_comparisons.hpp"

0 commit comments

Comments
 (0)