Skip to content

Commit 5304bd0

Browse files
committed
Merge branch 'main' into feat/lidar_centerpoint_preprocessing_cuda
Signed-off-by: Kenzo Lobos-Tsunekawa <kenzo.lobos@tier4.jp> Conflicts: perception/lidar_centerpoint/include/lidar_centerpoint/detection_class_remapper.hpp perception/lidar_centerpoint/include/lidar_centerpoint/node.hpp perception/lidar_centerpoint/include/lidar_centerpoint/ros_utils.hpp
2 parents 1b0c060 + 3443703 commit 5304bd0

File tree

1,817 files changed

+152154
-28137
lines changed

Some content is hidden

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

1,817 files changed

+152154
-28137
lines changed

.cppcheck_suppressions

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
arrayIndexThenCheck
2+
assignBoolToFloat
3+
checkersReport
4+
constParameterPointer
5+
constParameterReference
6+
constStatement
7+
constVariable
8+
constVariablePointer
9+
constVariableReference
10+
containerOutOfBounds
11+
cstyleCast
12+
ctuOneDefinitionRuleViolation
13+
current_deleted_index
14+
duplicateAssignExpression
15+
duplicateBranch
16+
duplicateBreak
17+
duplicateCondition
18+
duplicateExpression
19+
funcArgNamesDifferent
20+
functionConst
21+
functionStatic
22+
invalidPointerCast
23+
knownConditionTrueFalse
24+
missingInclude
25+
missingIncludeSystem
26+
multiCondition
27+
noConstructor
28+
noExplicitConstructor
29+
noValidConfiguration
30+
obstacle_cruise_planner
31+
passedByValue
32+
preprocessorErrorDirective
33+
redundantAssignment
34+
redundantContinue
35+
redundantIfRemove
36+
redundantInitialization
37+
returnByReference
38+
selfAssignment
39+
shadowArgument
40+
shadowFunction
41+
shadowVariable
42+
stlFindInsert
43+
syntaxError
44+
uninitMemberVar
45+
unknownMacro
46+
unmatchedSuppression
47+
unpreciseMathCall
48+
unreadVariable
49+
unsignedLessThanZero
50+
unusedFunction
51+
unusedScopedObject
52+
unusedStructMember
53+
unusedVariable
54+
useInitializationList
55+
useStlAlgorithm
56+
uselessCallsSubstr
57+
uselessOverride
58+
variableScope
59+
virtualCallInConstructor

.github/CODEOWNERS

+34-38
Large diffs are not rendered by default.

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- -cuda
2020
include:
2121
- rosdistro: humble
22-
container: ghcr.io/autowarefoundation/autoware-openadk:latest-prebuilt
22+
container: ghcr.io/autowarefoundation/autoware:latest-prebuilt
2323
build-depends-repos: build_depends.repos
2424
steps:
2525
- name: Check out repository

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- -cuda
3030
include:
3131
- rosdistro: humble
32-
container: ghcr.io/autowarefoundation/autoware-openadk:latest-prebuilt
32+
container: ghcr.io/autowarefoundation/autoware:latest-prebuilt
3333
build-depends-repos: build_depends.repos
3434
steps:
3535
- name: Check out repository

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- -cuda
2929
include:
3030
- rosdistro: humble
31-
container: ghcr.io/autowarefoundation/autoware-openadk:latest-prebuilt
31+
container: ghcr.io/autowarefoundation/autoware:latest-prebuilt
3232
build-depends-repos: build_depends.repos
3333
steps:
3434
- name: Check out repository
@@ -77,7 +77,7 @@ jobs:
7777

7878
clang-tidy-differential:
7979
runs-on: ubuntu-latest
80-
container: ghcr.io/autowarefoundation/autoware-openadk:latest-prebuilt-cuda
80+
container: ghcr.io/autowarefoundation/autoware:latest-prebuilt-cuda
8181
steps:
8282
- name: Check out repository
8383
uses: actions/checkout@v4

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- -cuda
2222
include:
2323
- rosdistro: humble
24-
container: ghcr.io/autowarefoundation/autoware-openadk:latest-prebuilt
24+
container: ghcr.io/autowarefoundation/autoware:latest-prebuilt
2525
build-depends-repos: build_depends.repos
2626
steps:
2727
- name: Check out repository

.github/workflows/cppcheck-all.yaml

+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: cppcheck-all
2+
3+
on:
4+
pull_request:
5+
schedule:
6+
- cron: 0 0 * * *
7+
workflow_dispatch:
8+
9+
jobs:
10+
cppcheck-all:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v2
16+
17+
- name: Install dependencies
18+
run: |
19+
sudo apt-get update
20+
sudo apt-get install -y build-essential cmake git libpcre3-dev
21+
22+
# cppcheck from apt does not yet support --check-level args, and thus install from source
23+
- name: Install Cppcheck from source
24+
run: |
25+
mkdir /tmp/cppcheck
26+
git clone https://github.com/danmar/cppcheck.git /tmp/cppcheck
27+
cd /tmp/cppcheck
28+
git checkout 2.14.1
29+
mkdir build
30+
cd build
31+
cmake ..
32+
make -j $(nproc)
33+
sudo make install
34+
35+
- name: Run Cppcheck on all files
36+
continue-on-error: true
37+
id: cppcheck
38+
run: |
39+
cppcheck --enable=all --inconclusive --check-level=exhaustive --error-exitcode=1 --xml . 2> cppcheck-report.xml
40+
shell: bash
41+
42+
- name: Count errors by error ID and severity
43+
run: |
44+
#!/bin/bash
45+
temp_file=$(mktemp)
46+
grep -oP '(?<=id=")[^"]+" severity="[^"]+' cppcheck-report.xml | sed 's/" severity="/,/g' > "$temp_file"
47+
echo "Error counts by error ID and severity:"
48+
sort "$temp_file" | uniq -c
49+
rm "$temp_file"
50+
shell: bash
51+
52+
- name: Upload Cppcheck report
53+
uses: actions/upload-artifact@v2
54+
with:
55+
name: cppcheck-report
56+
path: cppcheck-report.xml
57+
58+
- name: Fail the job if Cppcheck failed
59+
if: steps.cppcheck.outcome == 'failure'
60+
run: exit 1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: cppcheck-differential
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
cppcheck-differential:
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- name: Checkout code
12+
uses: actions/checkout@v2
13+
14+
- name: Install dependencies
15+
run: |
16+
sudo apt-get update
17+
sudo apt-get install -y build-essential cmake git libpcre3-dev
18+
19+
# cppcheck from apt does not yet support --check-level args, and thus install from source
20+
- name: Install Cppcheck from source
21+
run: |
22+
mkdir /tmp/cppcheck
23+
git clone https://github.com/danmar/cppcheck.git /tmp/cppcheck
24+
cd /tmp/cppcheck
25+
git checkout 2.14.1
26+
mkdir build
27+
cd build
28+
cmake ..
29+
make -j $(nproc)
30+
sudo make install
31+
32+
- name: Get changed files
33+
id: changed-files
34+
run: |
35+
git fetch origin ${{ github.base_ref }} --depth=1
36+
git diff --name-only FETCH_HEAD ${{ github.sha }} > changed_files.txt
37+
cat changed_files.txt
38+
39+
- name: Run Cppcheck on changed files
40+
continue-on-error: true
41+
id: cppcheck
42+
run: |
43+
files=$(cat changed_files.txt | grep -E '\.(cpp|hpp)$' || true)
44+
if [ -n "$files" ]; then
45+
echo "Running Cppcheck on changed files: $files"
46+
cppcheck --enable=all --inconclusive --check-level=exhaustive --error-exitcode=1 --suppressions-list=.cppcheck_suppressions $files 2> cppcheck-report.txt
47+
else
48+
echo "No C++ files changed."
49+
touch cppcheck-report.txt
50+
fi
51+
shell: bash
52+
53+
- name: Show cppcheck-report result
54+
run: |
55+
cat cppcheck-report.txt
56+
57+
- name: Upload Cppcheck report
58+
uses: actions/upload-artifact@v2
59+
with:
60+
name: cppcheck-report
61+
path: cppcheck-report.txt
62+
63+
- name: Fail the job if Cppcheck failed
64+
if: steps.cppcheck.outcome == 'failure'
65+
run: exit 1

.github/workflows/dco.yaml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: DCO
2+
# ref: https://github.com/anchore/syft/pull/2926/files
3+
on:
4+
pull_request:
5+
jobs:
6+
dco:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
11+
- name: Setup Python 3.x
12+
uses: actions/setup-python@v5
13+
with:
14+
python-version: 3.x
15+
16+
- name: Check DCO
17+
env:
18+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19+
run: |
20+
pip3 install -U dco-check
21+
dco-check --verbose --exclude-pattern 'pre-commit-ci\[bot\]@users\.noreply\.github\.com'

build_depends.repos

-4
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@ repositories:
2020
type: git
2121
url: https://github.com/autowarefoundation/autoware_internal_msgs.git
2222
version: main
23-
core/external/autoware_auto_msgs:
24-
type: git
25-
url: https://github.com/tier4/autoware_auto_msgs.git
26-
version: tier4/main
2723
# universe
2824
universe/external/tier4_autoware_msgs:
2925
type: git

common/.pages

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
nav:
2+
- 'Introduction': common
3+
- 'Testing Libraries':
4+
- 'autoware_testing': common/autoware_testing/design/autoware_testing-design
5+
- 'fake_test_node': common/fake_test_node/design/fake_test_node-design
6+
- 'Common Libraries':
7+
- 'autoware_auto_common':
8+
- 'comparisons': common/autoware_auto_common/design/comparisons
9+
- 'autoware_point_types': common/autoware_point_types
10+
- 'Cuda Utils': common/cuda_utils
11+
- 'Geography Utils': common/geography_utils
12+
- 'Global Parameter Loader': common/global_parameter_loader/Readme
13+
- 'Glog Component': common/glog_component
14+
- 'grid_map_utils': common/grid_map_utils
15+
- 'interpolation': common/interpolation
16+
- 'Kalman Filter': common/kalman_filter
17+
- 'Motion Utils': common/motion_utils
18+
- 'Vehicle Utils': common/motion_utils/docs/vehicle/vehicle
19+
- 'Object Recognition Utils': common/object_recognition_utils
20+
- 'OSQP Interface': common/osqp_interface/design/osqp_interface-design
21+
- 'Perception Utils': common/perception_utils
22+
- 'QP Interface': common/qp_interface/design/qp_interface-design
23+
- 'Signal Processing':
24+
- 'Introduction': common/signal_processing
25+
- 'Butterworth Filter': common/signal_processing/documentation/ButterworthFilter
26+
- 'TensorRT Common': common/tensorrt_common
27+
- 'tier4_autoware_utils': common/tier4_autoware_utils
28+
- 'traffic_light_utils': common/traffic_light_utils
29+
- 'TVM Utility':
30+
- 'Introduction': common/tvm_utility
31+
- 'YOLOv2 Tiny Example': common/tvm_utility/tvm-utility-yolo-v2-tiny-tests
32+
- 'RVIZ2 Plugins':
33+
- 'autoware_perception_rviz_plugin': common/autoware_perception_rviz_plugin
34+
- 'autoware_overlay_rviz_plugin': common/autoware_overlay_rviz_plugin/autoware_overlay_rviz_plugin
35+
- 'autoware_mission_details_overlay_rviz_plugin': common/autoware_overlay_rviz_plugin/autoware_mission_details_overlay_rviz_plugin
36+
- 'bag_time_manager_rviz_plugin': common/bag_time_manager_rviz_plugin
37+
- 'polar_grid': common/polar_grid/Readme
38+
- 'tier4_adapi_rviz_plugin': common/tier4_adapi_rviz_plugin
39+
- 'tier4_api_utils': common/tier4_api_utils
40+
- 'tier4_camera_view_rviz_plugin': common/tier4_camera_view_rviz_plugin
41+
- 'tier4_datetime_rviz_plugin': common/tier4_datetime_rviz_plugin
42+
- 'tier4_localization_rviz_plugin': common/tier4_localization_rviz_plugin
43+
- 'tier4_perception_rviz_plugin': common/tier4_perception_rviz_plugin
44+
- 'tier4_planning_rviz_plugin': common/tier4_planning_rviz_plugin
45+
- 'tier4_state_rviz_plugin': common/tier4_state_rviz_plugin
46+
- 'tier4_system_rviz_plugin': common/tier4_system_rviz_plugin
47+
- 'tier4_traffic_light_rviz_plugin': common/tier4_traffic_light_rviz_plugin
48+
- 'tier4_vehicle_rviz_plugin': common/tier4_vehicle_rviz_plugin
49+
- 'traffic_light_recognition_marker_publisher': common/traffic_light_recognition_marker_publisher/Readme
50+
- 'Node':
51+
- 'Goal Distance Calculator': common/goal_distance_calculator/Readme
52+
- 'Path Distance Calculator': common/path_distance_calculator/Readme
53+
- 'Others':
54+
- 'autoware_ad_api_specs': common/autoware_ad_api_specs
55+
- 'component_interface_specs': common/component_interface_specs
56+
- 'component_interface_tools': common/component_interface_tools
57+
- 'component_interface_utils': common/component_interface_utils

common/README.md

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Common
2+
3+
## Getting Started
4+
5+
The Autoware.Universe Common folder consists of common and testing libraries that are used by other Autoware components, as well as useful plugins for visualization in RVIZ2.
6+
7+
!!! note
8+
9+
In addition to the ones listed in this folder, users can also have a look at some of the add-ons in the `autoware_tools/common` documentation [page](https://autowarefoundation.github.io/autoware_tools/main/common/mission_planner_rviz_plugin/).
10+
11+
## Highlights
12+
13+
Some of the commonly used libraries are:
14+
15+
1. `tier4_autoware_utils`
16+
2. `motion_utils`
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
// Copyright 2024 The Autoware Contributors
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+
#ifndef AUTOWARE_AD_API_SPECS__SYSTEM_HPP_
16+
#define AUTOWARE_AD_API_SPECS__SYSTEM_HPP_
17+
18+
#include <rclcpp/qos.hpp>
19+
20+
#include <autoware_adapi_v1_msgs/msg/heartbeat.hpp>
21+
22+
namespace autoware_ad_api::system
23+
{
24+
25+
struct Heartbeat
26+
{
27+
using Message = autoware_adapi_v1_msgs::msg::Heartbeat;
28+
static constexpr char name[] = "/api/system/heartbeat";
29+
static constexpr size_t depth = 10;
30+
static constexpr auto reliability = RMW_QOS_POLICY_RELIABILITY_BEST_EFFORT;
31+
static constexpr auto durability = RMW_QOS_POLICY_DURABILITY_VOLATILE;
32+
};
33+
34+
} // namespace autoware_ad_api::system
35+
36+
#endif // AUTOWARE_AD_API_SPECS__SYSTEM_HPP_

0 commit comments

Comments
 (0)