Skip to content

Commit e396644

Browse files
authored
Merge branch 'autowarefoundation:main' into main
2 parents 5c94038 + 86b4335 commit e396644

File tree

1,037 files changed

+40932
-26398
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,037 files changed

+40932
-26398
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

+77-77
Large diffs are not rendered by default.

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

+6
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ jobs:
3636
with:
3737
fetch-depth: 0
3838

39+
- name: Check disk space before build
40+
run: df -h
41+
3942
- name: Remove exec_depend
4043
uses: autowarefoundation/autoware-github-actions/remove-exec-depend@v1
4144

@@ -69,6 +72,9 @@ jobs:
6972
verbose: true
7073
flags: differential
7174

75+
- name: Check disk space after build
76+
run: df -h
77+
7278
clang-tidy-differential:
7379
runs-on: [self-hosted, linux, X64]
7480
container: ghcr.io/autowarefoundation/autoware-universe:humble-latest-cuda

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

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
paths:
66
- "**/schema/*.schema.json"
77
- "**/config/*.param.yaml"
8+
workflow_dispatch:
89

910
jobs:
1011
json-schema-check:

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

-16
This file was deleted.

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_perception_rviz_plugin/include/autoware_auto_perception_rviz_plugin/object_detection/object_polygon_detail.hpp

+42-2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717

1818
#include "autoware_auto_perception_rviz_plugin/visibility_control.hpp"
1919

20+
#include <Eigen/Core>
21+
#include <Eigen/Eigen>
2022
#include <rclcpp/logging.hpp>
2123
#include <rclcpp/rclcpp.hpp>
2224

@@ -113,8 +115,14 @@ get_uuid_marker_ptr(
113115
const std_msgs::msg::ColorRGBA & color_rgba);
114116

115117
AUTOWARE_AUTO_PERCEPTION_RVIZ_PLUGIN_PUBLIC visualization_msgs::msg::Marker::SharedPtr
116-
get_pose_with_covariance_marker_ptr(
117-
const geometry_msgs::msg::PoseWithCovariance & pose_with_covariance);
118+
get_pose_covariance_marker_ptr(
119+
const geometry_msgs::msg::PoseWithCovariance & pose_with_covariance,
120+
const double & confidence_interval_coefficient);
121+
122+
AUTOWARE_AUTO_PERCEPTION_RVIZ_PLUGIN_PUBLIC visualization_msgs::msg::Marker::SharedPtr
123+
get_yaw_covariance_marker_ptr(
124+
const geometry_msgs::msg::PoseWithCovariance & pose_with_covariance, const double & length,
125+
const double & confidence_interval_coefficient, const double & line_width);
118126

119127
AUTOWARE_AUTO_PERCEPTION_RVIZ_PLUGIN_PUBLIC visualization_msgs::msg::Marker::SharedPtr
120128
get_velocity_text_marker_ptr(
@@ -131,6 +139,23 @@ get_twist_marker_ptr(
131139
const geometry_msgs::msg::PoseWithCovariance & pose_with_covariance,
132140
const geometry_msgs::msg::TwistWithCovariance & twist_with_covariance, const double & line_width);
133141

142+
AUTOWARE_AUTO_PERCEPTION_RVIZ_PLUGIN_PUBLIC visualization_msgs::msg::Marker::SharedPtr
143+
get_twist_covariance_marker_ptr(
144+
const geometry_msgs::msg::PoseWithCovariance & pose_with_covariance,
145+
const geometry_msgs::msg::TwistWithCovariance & twist_with_covariance,
146+
const double & confidence_interval_coefficient);
147+
148+
AUTOWARE_AUTO_PERCEPTION_RVIZ_PLUGIN_PUBLIC visualization_msgs::msg::Marker::SharedPtr
149+
get_yaw_rate_marker_ptr(
150+
const geometry_msgs::msg::PoseWithCovariance & pose_with_covariance,
151+
const geometry_msgs::msg::TwistWithCovariance & twist_with_covariance, const double & line_width);
152+
153+
AUTOWARE_AUTO_PERCEPTION_RVIZ_PLUGIN_PUBLIC visualization_msgs::msg::Marker::SharedPtr
154+
get_yaw_rate_covariance_marker_ptr(
155+
const geometry_msgs::msg::PoseWithCovariance & pose_with_covariance,
156+
const geometry_msgs::msg::TwistWithCovariance & twist_with_covariance,
157+
const double & confidence_interval_coefficient, const double & line_width);
158+
134159
AUTOWARE_AUTO_PERCEPTION_RVIZ_PLUGIN_PUBLIC visualization_msgs::msg::Marker::SharedPtr
135160
get_predicted_path_marker_ptr(
136161
const autoware_auto_perception_msgs::msg::Shape & shape,
@@ -142,10 +167,17 @@ get_path_confidence_marker_ptr(
142167
const autoware_auto_perception_msgs::msg::PredictedPath & predicted_path,
143168
const std_msgs::msg::ColorRGBA & path_confidence_color);
144169

170+
AUTOWARE_AUTO_PERCEPTION_RVIZ_PLUGIN_PUBLIC void calc_arc_line_strip(
171+
const double start_angle, const double end_angle, const double radius,
172+
std::vector<geometry_msgs::msg::Point> & points);
173+
145174
AUTOWARE_AUTO_PERCEPTION_RVIZ_PLUGIN_PUBLIC void calc_line_list_from_points(
146175
const double point_list[][3], const int point_pairs[][2], const int & num_pairs,
147176
std::vector<geometry_msgs::msg::Point> & points);
148177

178+
AUTOWARE_AUTO_PERCEPTION_RVIZ_PLUGIN_PUBLIC void calc_covariance_eigen_vectors(
179+
const Eigen::Matrix2d & matrix, double & sigma1, double & sigma2, double & yaw);
180+
149181
AUTOWARE_AUTO_PERCEPTION_RVIZ_PLUGIN_PUBLIC void calc_bounding_box_line_list(
150182
const autoware_auto_perception_msgs::msg::Shape & shape,
151183
std::vector<geometry_msgs::msg::Point> & points);
@@ -154,6 +186,10 @@ AUTOWARE_AUTO_PERCEPTION_RVIZ_PLUGIN_PUBLIC void calc_bounding_box_direction_lin
154186
const autoware_auto_perception_msgs::msg::Shape & shape,
155187
std::vector<geometry_msgs::msg::Point> & points);
156188

189+
AUTOWARE_AUTO_PERCEPTION_RVIZ_PLUGIN_PUBLIC void calc_bounding_box_orientation_line_list(
190+
const autoware_auto_perception_msgs::msg::Shape & shape,
191+
std::vector<geometry_msgs::msg::Point> & points);
192+
157193
AUTOWARE_AUTO_PERCEPTION_RVIZ_PLUGIN_PUBLIC void calc_2d_bounding_box_bottom_line_list(
158194
const autoware_auto_perception_msgs::msg::Shape & shape,
159195
std::vector<geometry_msgs::msg::Point> & points);
@@ -162,6 +198,10 @@ AUTOWARE_AUTO_PERCEPTION_RVIZ_PLUGIN_PUBLIC void calc_2d_bounding_box_bottom_dir
162198
const autoware_auto_perception_msgs::msg::Shape & shape,
163199
std::vector<geometry_msgs::msg::Point> & points);
164200

201+
AUTOWARE_AUTO_PERCEPTION_RVIZ_PLUGIN_PUBLIC void calc_2d_bounding_box_bottom_orientation_line_list(
202+
const autoware_auto_perception_msgs::msg::Shape & shape,
203+
std::vector<geometry_msgs::msg::Point> & points);
204+
165205
AUTOWARE_AUTO_PERCEPTION_RVIZ_PLUGIN_PUBLIC void calc_cylinder_line_list(
166206
const autoware_auto_perception_msgs::msg::Shape & shape,
167207
std::vector<geometry_msgs::msg::Point> & points);

common/autoware_auto_perception_rviz_plugin/include/autoware_auto_perception_rviz_plugin/object_detection/object_polygon_display_base.hpp

+123-8
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,22 @@ class AUTOWARE_AUTO_PERCEPTION_RVIZ_PLUGIN_PUBLIC ObjectPolygonDisplayBase
6464
// m_display_type_property{"Polygon Type", "3d", "Type of the polygon to display object", this},
6565
m_display_label_property{"Display Label", true, "Enable/disable label visualization", this},
6666
m_display_uuid_property{"Display UUID", true, "Enable/disable uuid visualization", this},
67-
m_display_pose_with_covariance_property{
68-
"Display PoseWithCovariance", true, "Enable/disable pose with covariance visualization",
69-
this},
7067
m_display_velocity_text_property{
7168
"Display Velocity", true, "Enable/disable velocity text visualization", this},
7269
m_display_acceleration_text_property{
7370
"Display Acceleration", true, "Enable/disable acceleration text visualization", this},
71+
m_display_pose_covariance_property{
72+
"Display Pose Covariance", true, "Enable/disable pose covariance visualization", this},
73+
m_display_yaw_covariance_property{
74+
"Display Yaw Covariance", false, "Enable/disable yaw covariance visualization", this},
7475
m_display_twist_property{"Display Twist", true, "Enable/disable twist visualization", this},
76+
m_display_twist_covariance_property{
77+
"Display Twist Covariance", false, "Enable/disable twist covariance visualization", this},
78+
m_display_yaw_rate_property{
79+
"Display Yaw Rate", false, "Enable/disable yaw rate visualization", this},
80+
m_display_yaw_rate_covariance_property{
81+
"Display Yaw Rate Covariance", false, "Enable/disable yaw rate covariance visualization",
82+
this},
7583
m_display_predicted_paths_property{
7684
"Display Predicted Paths", true, "Enable/disable predicted paths visualization", this},
7785
m_display_path_confidence_property{
@@ -96,6 +104,13 @@ class AUTOWARE_AUTO_PERCEPTION_RVIZ_PLUGIN_PUBLIC ObjectPolygonDisplayBase
96104
"Visualization Type", "Normal", "Simplicity of the polygon to display object.", this);
97105
m_simple_visualize_mode_property->addOption("Normal", 0);
98106
m_simple_visualize_mode_property->addOption("Simple", 1);
107+
// Confidence interval property
108+
m_confidence_interval_property = new rviz_common::properties::EnumProperty(
109+
"Confidence Interval", "95%", "Confidence interval of state estimations.", this);
110+
m_confidence_interval_property->addOption("70%", 0);
111+
m_confidence_interval_property->addOption("85%", 1);
112+
m_confidence_interval_property->addOption("95%", 2);
113+
m_confidence_interval_property->addOption("99%", 3);
99114

100115
// iterate over default values to create and initialize the properties.
101116
for (const auto & map_property_it : detail::kDefaultObjectPropertyValues) {
@@ -238,11 +253,23 @@ class AUTOWARE_AUTO_PERCEPTION_RVIZ_PLUGIN_PUBLIC ObjectPolygonDisplayBase
238253
}
239254
}
240255

241-
std::optional<Marker::SharedPtr> get_pose_with_covariance_marker_ptr(
256+
std::optional<Marker::SharedPtr> get_pose_covariance_marker_ptr(
242257
const geometry_msgs::msg::PoseWithCovariance & pose_with_covariance) const
243258
{
244-
if (m_display_pose_with_covariance_property.getBool()) {
245-
return detail::get_pose_with_covariance_marker_ptr(pose_with_covariance);
259+
if (m_display_pose_covariance_property.getBool()) {
260+
return detail::get_pose_covariance_marker_ptr(pose_with_covariance, get_confidence_region());
261+
} else {
262+
return std::nullopt;
263+
}
264+
}
265+
266+
std::optional<Marker::SharedPtr> get_yaw_covariance_marker_ptr(
267+
const geometry_msgs::msg::PoseWithCovariance & pose_with_covariance, const double & length,
268+
const double & line_width) const
269+
{
270+
if (m_display_yaw_covariance_property.getBool()) {
271+
return detail::get_yaw_covariance_marker_ptr(
272+
pose_with_covariance, length, get_confidence_interval(), line_width);
246273
} else {
247274
return std::nullopt;
248275
}
@@ -286,6 +313,44 @@ class AUTOWARE_AUTO_PERCEPTION_RVIZ_PLUGIN_PUBLIC ObjectPolygonDisplayBase
286313
}
287314
}
288315

316+
std::optional<Marker::SharedPtr> get_twist_covariance_marker_ptr(
317+
const geometry_msgs::msg::PoseWithCovariance & pose_with_covariance,
318+
const geometry_msgs::msg::TwistWithCovariance & twist_with_covariance) const
319+
{
320+
if (m_display_twist_covariance_property.getBool()) {
321+
return detail::get_twist_covariance_marker_ptr(
322+
pose_with_covariance, twist_with_covariance, get_confidence_region());
323+
} else {
324+
return std::nullopt;
325+
}
326+
}
327+
328+
std::optional<Marker::SharedPtr> get_yaw_rate_marker_ptr(
329+
const geometry_msgs::msg::PoseWithCovariance & pose_with_covariance,
330+
const geometry_msgs::msg::TwistWithCovariance & twist_with_covariance,
331+
const double & line_width) const
332+
{
333+
if (m_display_yaw_rate_property.getBool()) {
334+
return detail::get_yaw_rate_marker_ptr(
335+
pose_with_covariance, twist_with_covariance, line_width);
336+
} else {
337+
return std::nullopt;
338+
}
339+
}
340+
341+
std::optional<Marker::SharedPtr> get_yaw_rate_covariance_marker_ptr(
342+
const geometry_msgs::msg::PoseWithCovariance & pose_with_covariance,
343+
const geometry_msgs::msg::TwistWithCovariance & twist_with_covariance,
344+
const double & line_width) const
345+
{
346+
if (m_display_yaw_rate_covariance_property.getBool()) {
347+
return detail::get_yaw_rate_covariance_marker_ptr(
348+
pose_with_covariance, twist_with_covariance, get_confidence_interval(), line_width);
349+
} else {
350+
return std::nullopt;
351+
}
352+
}
353+
289354
std::optional<Marker::SharedPtr> get_predicted_path_marker_ptr(
290355
const unique_identifier_msgs::msg::UUID & uuid,
291356
const autoware_auto_perception_msgs::msg::Shape & shape,
@@ -408,6 +473,46 @@ class AUTOWARE_AUTO_PERCEPTION_RVIZ_PLUGIN_PUBLIC ObjectPolygonDisplayBase
408473

409474
double get_line_width() { return m_line_width_property.getFloat(); }
410475

476+
double get_confidence_interval() const
477+
{
478+
switch (m_confidence_interval_property->getOptionInt()) {
479+
case 0:
480+
// 70%
481+
return 1.036;
482+
case 1:
483+
// 85%
484+
return 1.440;
485+
case 2:
486+
// 95%
487+
return 1.960;
488+
case 3:
489+
// 99%
490+
return 2.576;
491+
default:
492+
return 1.960;
493+
}
494+
}
495+
496+
double get_confidence_region() const
497+
{
498+
switch (m_confidence_interval_property->getOptionInt()) {
499+
case 0:
500+
// 70%
501+
return 1.552;
502+
case 1:
503+
// 85%
504+
return 1.802;
505+
case 2:
506+
// 95%
507+
return 2.448;
508+
case 3:
509+
// 99%
510+
return 3.035;
511+
default:
512+
return 2.448;
513+
}
514+
}
515+
411516
private:
412517
// All rviz plugins should have this. Should be initialized with pointer to this class
413518
MarkerCommon m_marker_common;
@@ -419,18 +524,28 @@ class AUTOWARE_AUTO_PERCEPTION_RVIZ_PLUGIN_PUBLIC ObjectPolygonDisplayBase
419524
rviz_common::properties::EnumProperty * m_display_type_property;
420525
// Property to choose simplicity of visualization polygon
421526
rviz_common::properties::EnumProperty * m_simple_visualize_mode_property;
527+
// Property to set confidence interval of state estimations
528+
rviz_common::properties::EnumProperty * m_confidence_interval_property;
422529
// Property to enable/disable label visualization
423530
rviz_common::properties::BoolProperty m_display_label_property;
424531
// Property to enable/disable uuid visualization
425532
rviz_common::properties::BoolProperty m_display_uuid_property;
426-
// Property to enable/disable pose with covariance visualization
427-
rviz_common::properties::BoolProperty m_display_pose_with_covariance_property;
428533
// Property to enable/disable velocity text visualization
429534
rviz_common::properties::BoolProperty m_display_velocity_text_property;
430535
// Property to enable/disable acceleration text visualization
431536
rviz_common::properties::BoolProperty m_display_acceleration_text_property;
537+
// Property to enable/disable pose with covariance visualization
538+
rviz_common::properties::BoolProperty m_display_pose_covariance_property;
539+
// Property to enable/disable yaw covariance visualization
540+
rviz_common::properties::BoolProperty m_display_yaw_covariance_property;
432541
// Property to enable/disable twist visualization
433542
rviz_common::properties::BoolProperty m_display_twist_property;
543+
// Property to enable/disable twist covariance visualization
544+
rviz_common::properties::BoolProperty m_display_twist_covariance_property;
545+
// Property to enable/disable yaw rate visualization
546+
rviz_common::properties::BoolProperty m_display_yaw_rate_property;
547+
// Property to enable/disable yaw rate covariance visualization
548+
rviz_common::properties::BoolProperty m_display_yaw_rate_covariance_property;
434549
// Property to enable/disable predicted paths visualization
435550
rviz_common::properties::BoolProperty m_display_predicted_paths_property;
436551
// Property to enable/disable predicted path confidence visualization

common/autoware_auto_perception_rviz_plugin/package.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
<maintainer email="satoshi.tanaka@tier4.jp">Satoshi Tanaka</maintainer>
99
<maintainer email="taiki.tanaka@tier4.jp">Taiki Tanaka</maintainer>
1010
<maintainer email="takeshi.miura@tier4.jp">Takeshi Miura</maintainer>
11-
11+
<maintainer email="shunsuke.miura@tier4.jp">Shunsuke Miura</maintainer>
12+
<maintainer email="yoshi.ri@tier4.jp">Yoshi Ri</maintainer>
1213
<license>Apache 2.0</license>
1314

1415
<buildtool_depend>ament_cmake</buildtool_depend>

0 commit comments

Comments
 (0)