Skip to content

Commit b30d56e

Browse files
Merge pull request #1439 from tier4/sync-upstream
chore: sync tier4/autoware.universe:awf-latest
2 parents 57a0c28 + b9fb39b commit b30d56e

File tree

1,187 files changed

+11062
-7358
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,187 files changed

+11062
-7358
lines changed

.cppcheck_suppressions

-3
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,14 @@
22

33
checkersReport
44
constParameterReference
5-
constVariableReference
65
funcArgNamesDifferent
76
functionConst
87
functionStatic
9-
knownConditionTrueFalse
108
missingInclude
119
missingIncludeSystem
1210
noConstructor
1311
passedByValue
1412
redundantInitialization
15-
shadowVariable
1613
// cspell: ignore uninit
1714
uninitMemberVar
1815
unknownMacro

.github/CODEOWNERS

+44-43
Large diffs are not rendered by default.

.github/sync-files.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
files:
3939
- source: .github/workflows/clang-tidy-differential.yaml
4040
pre-commands: |
41-
sd 'container: ros:(\w+)' 'container: ghcr.io/autowarefoundation/autoware:latest-prebuilt-cuda' {source}
41+
sd 'container: ros:(\w+)' 'container: ghcr.io/autowarefoundation/autoware:latest-autoware-universe-cuda' {source}
4242
- source: .github/workflows/check-build-depends.yaml
4343
- source: .github/workflows/clang-tidy-pr-comments.yaml
4444
- source: .github/workflows/clang-tidy-pr-comments-manually.yaml

.github/workflows/build-and-test-daily-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:latest-prebuilt
22+
container: ghcr.io/autowarefoundation/autoware:latest-autoware-universe
2323
build-depends-repos: build_depends.repos
2424
steps:
2525
- name: Check out repository

.github/workflows/build-and-test-daily.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:latest-prebuilt
22+
container: ghcr.io/autowarefoundation/autoware:latest-autoware-universe
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:latest-prebuilt
32+
container: ghcr.io/autowarefoundation/autoware:latest-autoware-universe
3333
build-depends-repos: build_depends.repos
3434
steps:
3535
- name: Set PR fetch depth

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
- -cuda
3434
include:
3535
- rosdistro: humble
36-
container: ghcr.io/autowarefoundation/autoware:latest-prebuilt
36+
container: ghcr.io/autowarefoundation/autoware:latest-autoware-universe
3737
build-depends-repos: build_depends.repos
3838
steps:
3939
- name: Set PR fetch depth
@@ -130,7 +130,7 @@ jobs:
130130
clang-tidy-differential:
131131
needs: build-and-test-differential
132132
runs-on: ubuntu-latest
133-
container: ghcr.io/autowarefoundation/autoware:latest-prebuilt-cuda
133+
container: ghcr.io/autowarefoundation/autoware:latest-autoware-universe-cuda
134134
steps:
135135
- name: Set PR fetch depth
136136
run: echo "PR_FETCH_DEPTH=$(( ${{ github.event.pull_request.commits }} + 1 ))" >> "${GITHUB_ENV}"

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- -cuda
2424
include:
2525
- rosdistro: humble
26-
container: ghcr.io/autowarefoundation/autoware:latest-prebuilt
26+
container: ghcr.io/autowarefoundation/autoware:latest-autoware-universe
2727
build-depends-repos: build_depends.repos
2828
steps:
2929
- name: Check out repository

.github/workflows/pr-agent.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,5 @@ jobs:
3636
config.max_model_tokens: 64000
3737
pr_code_suggestions.max_context_tokens: 12000
3838
pr_code_suggestions.commitable_code_suggestions: true
39+
pr_reviewer.enable_review_labels_effort: false
40+
pr_reviewer.enable_review_labels_security: false

build_depends.repos

+6-6
Original file line numberDiff line numberDiff line change
@@ -8,31 +8,31 @@ repositories:
88
core/autoware_cmake:
99
type: git
1010
url: https://github.com/autowarefoundation/autoware_cmake.git
11-
version: main
11+
version: 1.0.0
1212
core/autoware_utils:
1313
type: git
1414
url: https://github.com/autowarefoundation/autoware_utils.git
15-
version: main
15+
version: 1.0.0
1616
core/autoware_lanelet2_extension:
1717
type: git
1818
url: https://github.com/autowarefoundation/autoware_lanelet2_extension.git
19-
version: main
19+
version: 0.5.0
2020
core/autoware.core:
2121
type: git
2222
url: https://github.com/autowarefoundation/autoware.core.git
2323
version: main
2424
core/autoware_msgs:
2525
type: git
2626
url: https://github.com/autowarefoundation/autoware_msgs.git
27-
version: main
27+
version: 1.1.0
2828
core/autoware_adapi_msgs:
2929
type: git
3030
url: https://github.com/autowarefoundation/autoware_adapi_msgs.git
31-
version: main
31+
version: 1.3.0
3232
core/autoware_internal_msgs:
3333
type: git
3434
url: https://github.com/autowarefoundation/autoware_internal_msgs.git
35-
version: main
35+
version: 1.1.0
3636
# universe
3737
universe/external/tier4_autoware_msgs:
3838
type: git

common/autoware_overlay_rviz_plugin/autoware_mission_details_overlay_rviz_plugin/include/mission_details_display.hpp

+4
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ private Q_SLOTS:
6161
rviz_common::properties::IntProperty * property_height_;
6262
rviz_common::properties::IntProperty * property_right_;
6363
rviz_common::properties::IntProperty * property_top_;
64+
rviz_common::properties::ColorProperty * property_bg_color_;
65+
rviz_common::properties::FloatProperty * property_bg_alpha_;
66+
rviz_common::properties::ColorProperty * property_text_color_;
67+
6468
std::unique_ptr<rviz_common::properties::RosTopicProperty>
6569
remaining_distance_time_topic_property_;
6670

common/autoware_overlay_rviz_plugin/autoware_mission_details_overlay_rviz_plugin/include/remaining_distance_time_display.hpp

+2-3
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,15 @@ class RemainingDistanceTimeDisplay
3636
{
3737
public:
3838
RemainingDistanceTimeDisplay();
39-
void drawRemainingDistanceTimeDisplay(QPainter & painter, const QRectF & backgroundRect);
39+
void drawRemainingDistanceTimeDisplay(
40+
QPainter & painter, const QRectF & backgroundRect, const QColor & text_color);
4041
void updateRemainingDistanceTimeData(
4142
const autoware_internal_msgs::msg::MissionRemainingDistanceTime::ConstSharedPtr & msg);
4243

4344
private:
4445
double remaining_distance_; // Internal variable to store remaining distance
4546
double remaining_time_; // Internal variable to store remaining time
4647

47-
QColor gray = QColor(194, 194, 194);
48-
4948
QImage icon_dist_;
5049
QImage icon_dist_scaled_;
5150
QImage icon_time_;

common/autoware_overlay_rviz_plugin/autoware_mission_details_overlay_rviz_plugin/src/mission_details_display.cpp

+12-3
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@ MissionDetailsDisplay::MissionDetailsDisplay()
3939
"Right", 10, "Margin from the right border", this, SLOT(update_size()));
4040
property_top_ = new rviz_common::properties::IntProperty(
4141
"Top", 10, "Margin from the top border", this, SLOT(update_size()));
42+
property_bg_alpha_ = new rviz_common::properties::FloatProperty(
43+
"Background Alpha", 0.3, "Background Alpha", this, SLOT(update_size()));
44+
property_bg_color_ = new rviz_common::properties::ColorProperty(
45+
"Background Color", QColor(0, 0, 0), "Background Color", this, SLOT(update_size()));
46+
property_text_color_ = new rviz_common::properties::ColorProperty(
47+
"Text Color", QColor(194, 194, 194), "Text Color", this, SLOT(update_size()));
4248

4349
// Initialize the component displays
4450
remaining_distance_time_display_ = std::make_unique<RemainingDistanceTimeDisplay>();
@@ -154,7 +160,8 @@ void MissionDetailsDisplay::draw_widget(QImage & hud)
154160
draw_rounded_rect(painter, backgroundRect);
155161

156162
if (remaining_distance_time_display_) {
157-
remaining_distance_time_display_->drawRemainingDistanceTimeDisplay(painter, backgroundRect);
163+
remaining_distance_time_display_->drawRemainingDistanceTimeDisplay(
164+
painter, backgroundRect, property_text_color_->getColor());
158165
}
159166

160167
painter.end();
@@ -164,8 +171,10 @@ void MissionDetailsDisplay::draw_rounded_rect(QPainter & painter, const QRectF &
164171
{
165172
painter.setRenderHint(QPainter::Antialiasing, true);
166173
QColor colorFromHSV;
167-
colorFromHSV.setHsv(0, 0, 29);
168-
colorFromHSV.setAlphaF(0.60);
174+
colorFromHSV.setHsv(
175+
property_bg_color_->getColor().hue(), property_bg_color_->getColor().saturation(),
176+
property_bg_color_->getColor().value());
177+
colorFromHSV.setAlphaF(property_bg_alpha_->getFloat());
169178

170179
painter.setBrush(colorFromHSV);
171180

common/autoware_overlay_rviz_plugin/autoware_mission_details_overlay_rviz_plugin/src/remaining_distance_time_display.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ void RemainingDistanceTimeDisplay::updateRemainingDistanceTimeData(
6060
}
6161

6262
void RemainingDistanceTimeDisplay::drawRemainingDistanceTimeDisplay(
63-
QPainter & painter, const QRectF & backgroundRect)
63+
QPainter & painter, const QRectF & backgroundRect, const QColor & text_color)
6464
{
6565
const QFont font("Quicksand", 15, QFont::Bold);
6666
painter.setFont(font);
@@ -107,7 +107,7 @@ void RemainingDistanceTimeDisplay::drawRemainingDistanceTimeDisplay(
107107
QRectF rect_text_unit(
108108
rect.topRight().x() - unit_width, rect.topRight().y(), unit_width, rect.height());
109109

110-
painter.setPen(gray);
110+
painter.setPen(text_color);
111111
painter.drawText(rect_text_unit, Qt::AlignLeft | Qt::AlignVCenter, str_unit);
112112

113113
// place the value text

common/autoware_overlay_rviz_plugin/autoware_overlay_rviz_plugin/include/gear_display.hpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ class GearDisplay
3636
{
3737
public:
3838
GearDisplay();
39-
void drawGearIndicator(QPainter & painter, const QRectF & backgroundRect);
39+
void drawGearIndicator(
40+
QPainter & painter, const QRectF & backgroundRect, const QColor & color,
41+
const QColor & bg_color);
4042
void updateGearData(const autoware_vehicle_msgs::msg::GearReport::ConstSharedPtr & msg);
4143

4244
private:

common/autoware_overlay_rviz_plugin/autoware_overlay_rviz_plugin/include/signal_display.hpp

+8-3
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,12 @@ private Q_SLOTS:
7777
rviz_common::properties::IntProperty * property_top_;
7878
rviz_common::properties::ColorProperty * property_signal_color_;
7979
rviz_common::properties::FloatProperty * property_handle_angle_scale_;
80+
rviz_common::properties::ColorProperty * property_background_color_;
81+
rviz_common::properties::FloatProperty * property_background_alpha_;
82+
rviz_common::properties::ColorProperty * property_primary_color_;
83+
rviz_common::properties::ColorProperty * property_light_limit_color_;
84+
rviz_common::properties::ColorProperty * property_dark_limit_color_;
85+
8086
std::unique_ptr<rviz_common::properties::RosTopicProperty> steering_topic_property_;
8187
std::unique_ptr<rviz_common::properties::RosTopicProperty> gear_topic_property_;
8288
std::unique_ptr<rviz_common::properties::RosTopicProperty> speed_topic_property_;
@@ -103,8 +109,7 @@ private Q_SLOTS:
103109
turn_signals_sub_;
104110
rclcpp::Subscription<autoware_vehicle_msgs::msg::HazardLightsReport>::SharedPtr
105111
hazard_lights_sub_;
106-
rclcpp::Subscription<autoware_perception_msgs::msg::TrafficLightGroupArray>::SharedPtr
107-
traffic_sub_;
112+
rclcpp::Subscription<autoware_perception_msgs::msg::TrafficLightGroup>::SharedPtr traffic_sub_;
108113
rclcpp::Subscription<tier4_planning_msgs::msg::VelocityLimit>::SharedPtr speed_limit_sub_;
109114

110115
std::mutex property_mutex_;
@@ -118,7 +123,7 @@ private Q_SLOTS:
118123
const autoware_vehicle_msgs::msg::HazardLightsReport::ConstSharedPtr & msg);
119124
void updateSpeedLimitData(const tier4_planning_msgs::msg::VelocityLimit::ConstSharedPtr msg);
120125
void updateTrafficLightData(
121-
const autoware_perception_msgs::msg::TrafficLightGroupArray::ConstSharedPtr msg);
126+
const autoware_perception_msgs::msg::TrafficLightGroup::ConstSharedPtr msg);
122127
void drawWidget(QImage & hud);
123128
};
124129
} // namespace autoware_overlay_rviz_plugin

common/autoware_overlay_rviz_plugin/autoware_overlay_rviz_plugin/include/speed_display.hpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,11 @@ class SpeedDisplay
3636
{
3737
public:
3838
SpeedDisplay();
39-
void drawSpeedDisplay(QPainter & painter, const QRectF & backgroundRect);
39+
void drawSpeedDisplay(QPainter & painter, const QRectF & backgroundRect, const QColor & color);
4040
void updateSpeedData(const autoware_vehicle_msgs::msg::VelocityReport::ConstSharedPtr & msg);
4141

4242
private:
4343
float current_speed_; // Internal variable to store current speed
44-
QColor gray = QColor(194, 194, 194);
4544
};
4645

4746
} // namespace autoware_overlay_rviz_plugin

common/autoware_overlay_rviz_plugin/autoware_overlay_rviz_plugin/include/speed_limit_display.hpp

+4-2
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,16 @@ class SpeedLimitDisplay
3737
{
3838
public:
3939
SpeedLimitDisplay();
40-
void drawSpeedLimitIndicator(QPainter & painter, const QRectF & backgroundRect);
40+
void drawSpeedLimitIndicator(
41+
QPainter & painter, const QRectF & backgroundRect, const QColor & color,
42+
const QColor & light_color, const QColor & dark_color, const QColor & bg_color,
43+
const float bg_alpha);
4144
void updateSpeedLimitData(const tier4_planning_msgs::msg::VelocityLimit::ConstSharedPtr msg);
4245
void updateSpeedData(const autoware_vehicle_msgs::msg::VelocityReport::ConstSharedPtr & msg);
4346

4447
private:
4548
float current_limit; // Internal variable to store current gear
4649
float current_speed_; // Internal variable to store current speed
47-
QColor gray = QColor(194, 194, 194);
4850
};
4951

5052
} // namespace autoware_overlay_rviz_plugin

common/autoware_overlay_rviz_plugin/autoware_overlay_rviz_plugin/include/traffic_display.hpp

+2-3
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525

2626
#include <autoware_perception_msgs/msg/traffic_light_element.hpp>
2727
#include <autoware_perception_msgs/msg/traffic_light_group.hpp>
28-
#include <autoware_perception_msgs/msg/traffic_light_group_array.hpp>
2928

3029
#include <OgreColourValue.h>
3130
#include <OgreMaterial.h>
@@ -40,8 +39,8 @@ class TrafficDisplay
4039
TrafficDisplay();
4140
void drawTrafficLightIndicator(QPainter & painter, const QRectF & backgroundRect);
4241
void updateTrafficLightData(
43-
const autoware_perception_msgs::msg::TrafficLightGroupArray::ConstSharedPtr & msg);
44-
autoware_perception_msgs::msg::TrafficLightGroupArray current_traffic_;
42+
const autoware_perception_msgs::msg::TrafficLightGroup::ConstSharedPtr & msg);
43+
autoware_perception_msgs::msg::TrafficLightGroup current_traffic_;
4544

4645
private:
4746
QImage traffic_light_image_;

common/autoware_overlay_rviz_plugin/autoware_overlay_rviz_plugin/src/gear_display.cpp

+4-3
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ void GearDisplay::updateGearData(const autoware_vehicle_msgs::msg::GearReport::C
5454
current_gear_ = msg->report; // Assuming msg->report contains the gear information
5555
}
5656

57-
void GearDisplay::drawGearIndicator(QPainter & painter, const QRectF & backgroundRect)
57+
void GearDisplay::drawGearIndicator(
58+
QPainter & painter, const QRectF & backgroundRect, const QColor & color, const QColor & bg_color)
5859
{
5960
// we deal with the different gears here
6061
std::string gearString;
@@ -90,9 +91,9 @@ void GearDisplay::drawGearIndicator(QPainter & painter, const QRectF & backgroun
9091
double gearX = backgroundRect.left() + 54;
9192
double gearY = backgroundRect.height() / 2 - gearBoxSize / 2;
9293
QRect gearRect(gearX, gearY, gearBoxSize, gearBoxSize);
93-
painter.setBrush(gray);
94+
painter.setBrush(color);
9495
painter.drawRoundedRect(gearRect, 10, 10);
95-
painter.setPen(Qt::black);
96+
painter.setPen(bg_color);
9697
painter.drawText(gearRect, Qt::AlignCenter, QString::fromStdString(gearString));
9798
}
9899

0 commit comments

Comments
 (0)