Skip to content

Commit 7b51d4f

Browse files
authored
Merge branch 'autowarefoundation:main' into feat/distortion_correction_node_update_azimuth_and_distance
2 parents 686ec6a + ebb4172 commit 7b51d4f

File tree

2,201 files changed

+120388
-70206
lines changed

Some content is hidden

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

2,201 files changed

+120388
-70206
lines changed

.cspell-partial.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
"perception/bytetrack/lib/**"
66
],
77
"ignoreRegExpList": [],
8-
"words": ["dltype", "tvmgen", "quantizer", "imageio", "mimsave"]
8+
"words": ["dltype", "tvmgen"]
99
}

.github/CODEOWNERS

+127-111
Large diffs are not rendered by default.

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

+5-35
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ jobs:
2424
rosdistro:
2525
- humble
2626
container-suffix:
27-
- ""
2827
- -cuda
2928
include:
3029
- rosdistro: humble
@@ -36,6 +35,9 @@ jobs:
3635
with:
3736
fetch-depth: 0
3837

38+
- name: Check disk space before build
39+
run: df -h
40+
3941
- name: Remove exec_depend
4042
uses: autowarefoundation/autoware-github-actions/remove-exec-depend@v1
4143

@@ -69,37 +71,5 @@ jobs:
6971
verbose: true
7072
flags: differential
7173

72-
clang-tidy-differential:
73-
runs-on: [self-hosted, linux, X64]
74-
container: ghcr.io/autowarefoundation/autoware-universe:humble-latest-cuda
75-
needs: build-and-test-differential
76-
steps:
77-
- name: Check out repository
78-
uses: actions/checkout@v3
79-
with:
80-
fetch-depth: 0
81-
82-
- name: Remove exec_depend
83-
uses: autowarefoundation/autoware-github-actions/remove-exec-depend@v1
84-
85-
- name: Get modified packages
86-
id: get-modified-packages
87-
uses: autowarefoundation/autoware-github-actions/get-modified-packages@v1
88-
89-
- name: Get modified files
90-
id: get-modified-files
91-
uses: tj-actions/changed-files@v35
92-
with:
93-
files: |
94-
**/*.cpp
95-
**/*.hpp
96-
97-
- name: Run clang-tidy
98-
if: ${{ steps.get-modified-files.outputs.all_changed_files != '' }}
99-
uses: autowarefoundation/autoware-github-actions/clang-tidy@v1
100-
with:
101-
rosdistro: humble
102-
target-packages: ${{ steps.get-modified-packages.outputs.modified-packages }}
103-
target-files: ${{ steps.get-modified-files.outputs.all_changed_files }}
104-
clang-tidy-config-url: https://raw.githubusercontent.com/autowarefoundation/autoware/main/.clang-tidy
105-
build-depends-repos: build_depends.repos
74+
- name: Check disk space after build
75+
run: df -h

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

+1-9
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
jobs:
1010
build-and-test:
1111
if: ${{ github.event_name != 'push' || github.ref_name == github.event.repository.default_branch }}
12-
runs-on: ubuntu-latest
12+
runs-on: [self-hosted, linux, X64]
1313
container: ${{ matrix.container }}${{ matrix.container-suffix }}
1414
strategy:
1515
fail-fast: false
@@ -27,14 +27,6 @@ jobs:
2727
- name: Check out repository
2828
uses: actions/checkout@v3
2929

30-
- name: Free disk space (Ubuntu)
31-
uses: jlumbroso/free-disk-space@v1.2.0
32-
with:
33-
tool-cache: false
34-
dotnet: false
35-
swap-storage: false
36-
large-packages: false
37-
3830
- name: Remove exec_depend
3931
uses: autowarefoundation/autoware-github-actions/remove-exec-depend@v1
4032

.github/workflows/cancel-previous-workflows.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- name: Cancel previous runs
11-
uses: styfle/cancel-workflow-action@0.11.0
11+
uses: styfle/cancel-workflow-action@0.12.0
1212
with:
1313
workflow_id: all
1414
all_but_latest: true

.github/workflows/github-release.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
echo "tag-name=${REF_NAME#beta/}" >> $GITHUB_OUTPUT
3131
3232
- name: Check out repository
33-
uses: actions/checkout@v3
33+
uses: actions/checkout@v4
3434
with:
3535
fetch-depth: 0
3636
ref: ${{ steps.set-tag-name.outputs.ref-name }}

.github/workflows/json-schema-check.yaml

+25-3
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,38 @@ name: json-schema-check
22

33
on:
44
pull_request:
5-
paths:
6-
- "**/schema/*.schema.json"
7-
- "**/config/*.param.yaml"
5+
workflow_dispatch:
86

97
jobs:
8+
check-if-relevant-files-changed:
9+
runs-on: ubuntu-latest
10+
outputs:
11+
run-check: ${{ steps.paths_filter.outputs.json_or_yaml }}
12+
steps:
13+
- uses: actions/checkout@v3
14+
- uses: dorny/paths-filter@v3
15+
id: paths_filter
16+
with:
17+
filters: |
18+
json_or_yaml:
19+
- '**/schema/*.schema.json'
20+
- '**/config/*.param.yaml'
21+
1022
json-schema-check:
23+
needs: check-if-relevant-files-changed
24+
if: needs.check-if-relevant-files-changed.outputs.run-check == 'true'
1125
runs-on: ubuntu-latest
1226
steps:
1327
- name: Check out repository
1428
uses: actions/checkout@v3
1529

1630
- name: Run json-schema-check
1731
uses: autowarefoundation/autoware-github-actions/json-schema-check@v1
32+
33+
no-relevant-changes:
34+
needs: check-if-relevant-files-changed
35+
if: needs.check-if-relevant-files-changed.outputs.run-check == 'false'
36+
runs-on: ubuntu-latest
37+
steps:
38+
- name: Dummy step
39+
run: echo "No relevant changes, passing check"

.github/workflows/pre-commit-optional.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- name: Check out repository
11-
uses: actions/checkout@v3
11+
uses: actions/checkout@v4
1212
with:
1313
fetch-depth: 0
1414

.github/workflows/pre-commit.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
private_key: ${{ secrets.PRIVATE_KEY }}
1717

1818
- name: Check out repository
19-
uses: actions/checkout@v3
19+
uses: actions/checkout@v4
2020
with:
2121
ref: ${{ github.event.pull_request.head.ref }}
2222

.github/workflows/spell-check-all.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ name: spell-check-all
22

33
on:
44
workflow_dispatch:
5+
schedule:
6+
- cron: 0 0 * * *
57

68
jobs:
79
spell-check-all:

.github/workflows/spell-check-differential.yaml

-16
This file was deleted.

README.md

+13-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
1-
# autoware.universe
1+
# Autoware Universe
22

3-
For Autoware's general documentation, see [Autoware Documentation](https://autowarefoundation.github.io/autoware-documentation/).
3+
## Welcome to Autoware Universe
44

5-
For detailed documents of Autoware Universe components, see [Autoware Universe Documentation](https://autowarefoundation.github.io/autoware.universe/).
5+
Autoware Universe serves as a foundational pillar within the Autoware ecosystem, playing a critical role in enhancing the core functionalities of autonomous driving technologies.
6+
This repository is a pivotal element of the Autoware Core/Universe concept, managing a wide array of packages that significantly extend the capabilities of autonomous vehicles.
67

7-
---
8+
![autoware_universe_front](docs/assets/images/autoware_universe_front.png)
9+
10+
## Getting Started
11+
12+
To dive into the vast world of Autoware and understand how Autoware Universe fits into the bigger picture, we recommend starting with the [Autoware Documentation](https://autowarefoundation.github.io/autoware-documentation/). This resource provides a thorough overview of the Autoware ecosystem, guiding you through its components, functionalities, and how to get started with development.
13+
14+
### Explore Autoware Universe documentation
15+
16+
For those looking to explore the specifics of Autoware Universe components, the [Autoware Universe Documentation](https://autowarefoundation.github.io/autoware.universe/), deployed with MKDocs, offers detailed insights.

common/autoware_ad_api_specs/package.xml

-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
<version>0.0.0</version>
66
<description>The autoware_ad_api_specs package</description>
77
<maintainer email="isamu.takagi@tier4.jp">Takagi, Isamu</maintainer>
8-
<maintainer email="makoto.yabuta@tier4.jp">yabuta</maintainer>
9-
<maintainer email="kahhooi.tan@tier4.jp">Kah Hooi Tan</maintainer>
108
<maintainer email="ryohsuke.mitsudome@tier4.jp">Ryohsuke Mitsudome</maintainer>
119
<license>Apache License 2.0</license>
1210

common/autoware_auto_common/design/comparisons.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ The `exclusive_or` function will test whether two values cast to different boole
2222
## Example Usage
2323

2424
```c++
25-
#include "common/bool_comparisons.hpp"
26-
#include "common/float_comparisons.hpp"
25+
#include "autoware_auto_common/common/bool_comparisons.hpp"
26+
#include "autoware_auto_common/common/float_comparisons.hpp"
2727

2828
#include <iostream>
2929

common/autoware_auto_common/include/common/type_traits.hpp common/autoware_auto_common/include/autoware_auto_common/common/type_traits.hpp

+5-5
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@
1414
//
1515
// Developed by Apex.AI, Inc.
1616

17-
#include <common/types.hpp>
18-
#include <common/visibility_control.hpp>
17+
#include "autoware_auto_common/common/types.hpp"
18+
#include "autoware_auto_common/common/visibility_control.hpp"
1919

2020
#include <cstdint>
2121
#include <tuple>
2222
#include <type_traits>
2323

24-
#ifndef COMMON__TYPE_TRAITS_HPP_
25-
#define COMMON__TYPE_TRAITS_HPP_
24+
#ifndef AUTOWARE_AUTO_COMMON__COMMON__TYPE_TRAITS_HPP_
25+
#define AUTOWARE_AUTO_COMMON__COMMON__TYPE_TRAITS_HPP_
2626

2727
namespace autoware
2828
{
@@ -219,4 +219,4 @@ struct intersect
219219
} // namespace common
220220
} // namespace autoware
221221

222-
#endif // COMMON__TYPE_TRAITS_HPP_
222+
#endif // AUTOWARE_AUTO_COMMON__COMMON__TYPE_TRAITS_HPP_
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
1+
// Copyright 2017-2020 the Autoware Foundation, Arm Limited
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
//
15+
// Co-developed by Tier IV, Inc. and Apex.AI, Inc.
16+
/// \file
17+
/// \brief This file includes common type definition
18+
19+
#ifndef AUTOWARE_AUTO_COMMON__COMMON__TYPES_HPP_
20+
#define AUTOWARE_AUTO_COMMON__COMMON__TYPES_HPP_
21+
22+
#include "autoware_auto_common/common/visibility_control.hpp"
23+
#include "autoware_auto_common/helper_functions/float_comparisons.hpp"
24+
25+
#include <cstdint>
26+
#include <limits>
27+
#include <vector>
28+
29+
namespace autoware
30+
{
31+
namespace common
32+
{
33+
namespace types
34+
{
35+
// Aliases to conform to MISRA C++ Rule 3-9-2 (Directive 4.6 in MISRA C).
36+
// Similarly, the stdint typedefs should be used instead of plain int, long etc. types.
37+
// We don't currently require code to comply to MISRA, but we should try to where it is
38+
// easily possible.
39+
using bool8_t = bool;
40+
using char8_t = char;
41+
using uchar8_t = unsigned char;
42+
// If we ever compile on a platform where this is not true, float32_t and float64_t definitions
43+
// need to be adjusted.
44+
static_assert(sizeof(float) == 4, "float is assumed to be 32-bit");
45+
using float32_t = float;
46+
static_assert(sizeof(double) == 8, "double is assumed to be 64-bit");
47+
using float64_t = double;
48+
49+
/// pi = tau / 2
50+
constexpr float32_t PI = 3.14159265359F;
51+
/// pi/2
52+
constexpr float32_t PI_2 = 1.5707963267948966F;
53+
/// tau = 2 pi
54+
constexpr float32_t TAU = 6.283185307179586476925286766559F;
55+
56+
struct COMMON_PUBLIC PointXYZIF
57+
{
58+
float32_t x{0};
59+
float32_t y{0};
60+
float32_t z{0};
61+
float32_t intensity{0};
62+
uint16_t id{0};
63+
static constexpr uint16_t END_OF_SCAN_ID = 65535u;
64+
friend bool operator==(const PointXYZIF & p1, const PointXYZIF & p2) noexcept
65+
{
66+
using autoware::common::helper_functions::comparisons::rel_eq;
67+
const auto epsilon = std::numeric_limits<float32_t>::epsilon();
68+
return rel_eq(p1.x, p2.x, epsilon) && rel_eq(p1.y, p2.y, epsilon) &&
69+
rel_eq(p1.z, p2.z, epsilon) && rel_eq(p1.intensity, p2.intensity, epsilon) &&
70+
(p1.id == p2.id);
71+
}
72+
};
73+
74+
struct COMMON_PUBLIC PointXYZF
75+
{
76+
float32_t x{0};
77+
float32_t y{0};
78+
float32_t z{0};
79+
uint16_t id{0};
80+
static constexpr uint16_t END_OF_SCAN_ID = 65535u;
81+
friend bool operator==(const PointXYZF & p1, const PointXYZF & p2) noexcept
82+
{
83+
using autoware::common::helper_functions::comparisons::rel_eq;
84+
const auto epsilon = std::numeric_limits<float32_t>::epsilon();
85+
return rel_eq(p1.x, p2.x, epsilon) && rel_eq(p1.y, p2.y, epsilon) &&
86+
rel_eq(p1.z, p2.z, epsilon) && (p1.id == p2.id);
87+
}
88+
};
89+
90+
struct COMMON_PUBLIC PointXYZI
91+
{
92+
float32_t x{0.0F};
93+
float32_t y{0.0F};
94+
float32_t z{0.0F};
95+
float32_t intensity{0.0F};
96+
friend bool operator==(const PointXYZI & p1, const PointXYZI & p2) noexcept
97+
{
98+
return helper_functions::comparisons::rel_eq(
99+
p1.x, p2.x, std::numeric_limits<float32_t>::epsilon()) &&
100+
101+
helper_functions::comparisons::rel_eq(
102+
p1.y, p2.y, std::numeric_limits<float32_t>::epsilon()) &&
103+
104+
helper_functions::comparisons::rel_eq(
105+
p1.z, p2.z, std::numeric_limits<float32_t>::epsilon()) &&
106+
107+
helper_functions::comparisons::rel_eq(
108+
p1.intensity, p2.intensity, std::numeric_limits<float32_t>::epsilon());
109+
}
110+
};
111+
112+
using PointBlock = std::vector<PointXYZIF>;
113+
using PointPtrBlock = std::vector<const PointXYZIF *>;
114+
/// \brief Stores basic configuration information, does some simple validity checking
115+
static constexpr uint16_t POINT_BLOCK_CAPACITY = 512U;
116+
117+
// TODO(yunus.caliskan): switch to std::void_t when C++17 is available
118+
/// \brief `std::void_t<> implementation
119+
template <typename... Ts>
120+
using void_t = void;
121+
} // namespace types
122+
} // namespace common
123+
} // namespace autoware
124+
125+
#endif // AUTOWARE_AUTO_COMMON__COMMON__TYPES_HPP_

0 commit comments

Comments
 (0)