Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: sync upstream #261

Merged
merged 72 commits into from
Feb 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
2a13d30
fix(lanelet2_map_loader): delete unused parameters (#2761)
h-ohta Jan 30, 2023
18cd828
build(signal_processing): add build dependency (#2736)
esteve Jan 30, 2023
05da0be
ci(pre-commit): update isort version to avoid CI failure (#2777)
TomohitoAndo Jan 30, 2023
140a92b
chore: sync files (#2778)
awf-autoware-bot[bot] Jan 30, 2023
d90bb43
doc: update occlusion spot doc (#2774)
taikitanaka3 Jan 30, 2023
5bb6357
feat(detection_by_tracker, shape_estimation): add trailer filter to p…
YoshiRi Jan 31, 2023
202f283
fix(behavior_path_planner): fix pull out module when enable_back is f…
tkimura4 Jan 31, 2023
cd546b5
fix(behavior_path_planner): disable avoidance if ego is not on prefer…
rej55 Jan 31, 2023
3567012
chore(freespace_planner): add maintainers (#2767)
kosuke55 Jan 31, 2023
224831b
chore(tier4_planning_launch): add missing params and sort params of c…
kosuke55 Jan 31, 2023
5940ba7
feat(tier4_state_rviz_plugin): add planning API visualization (#2632)
h-ohta Jan 31, 2023
a662b83
chore(rtc_manager_rviz_plugin): add code owner (#2792)
tkimura4 Feb 1, 2023
c8983a4
chore: update CODEOWNERS (#2788)
awf-autoware-bot[bot] Feb 1, 2023
f450775
fix(behavior_velocity_planner): clean up expired intersection/merge_f…
soblin Feb 1, 2023
d6c0c09
feat(rtc_manager_rviz_plugin): add the number of rtc status (#2791)
taikitanaka3 Feb 1, 2023
231f70c
fix(freespace_planning_algorithms): set goal z to path (#2797)
kosuke55 Feb 2, 2023
a3de486
feat(interpolation): add option to enable akima spline for xy (#2802)
takayuki5168 Feb 2, 2023
515e1b2
feat(interpolation): add curvature calculation (#2801)
takayuki5168 Feb 3, 2023
66753e8
fix(obstacle_avoidance_planner): check if bounds_candidates is empty …
kosuke55 Feb 3, 2023
ded1d94
docs: add mkdocs material setting (#2784)
hayato-m126 Feb 3, 2023
b026fc3
fix(accel_brake_map_calibrator): set method to none as default in vie…
tkimura4 Feb 3, 2023
f7c7e0d
fix(behavior_path_planner): do not access empty path in pull out modu…
tkimura4 Feb 3, 2023
3bc370c
feat(autoware_auto_perception_rviz_plugin): improve rviz performance …
lexavtanke Feb 3, 2023
9dcb99c
refactor(behavior_path_planner): common duplicated lines of getExtend…
kosuke55 Feb 3, 2023
d695f7a
refactor(motion_velocity_smoother): remove duplicated implementation …
TakaHoribe Feb 3, 2023
355783a
refactor(intersection): divide stop line function, cache lanelet obje…
soblin Feb 3, 2023
ace34c6
feat(ndt_scan_matcher): dynamic map loading (#2339)
kminoda Feb 3, 2023
cb3cee8
feat(interpolation): add maintainer (#2812)
purewater0901 Feb 6, 2023
d689667
fix(behavior_velocity_planner): fix misc concurrency issues (#2718)
VRichardJP Feb 6, 2023
1d56bbb
feat(autoware_auto_perception_rviz_plugin): add simple visualize mode…
tkimura4 Feb 6, 2023
f8f4bd6
perf(motion_utils): improve performance of zero_order_hold (#2744)
veqcc Feb 6, 2023
e91af6f
fix(bag_time_manager_rviz_plugin): update create_client API to use rc…
esteve Feb 6, 2023
69b9085
refactor(motion_velocity_smoother): remove unneccesary optional (#2811)
TakaHoribe Feb 6, 2023
3d41b57
refactor(motion_velocity_smoother): remove unneccesary resampling (#2…
TakaHoribe Feb 6, 2023
ba3ae68
chore(ekf_localizer): typo (#2795)
VRichardJP Feb 6, 2023
cad63f7
fix(freespace_planning_algorithms): throw error when no waypoints sto…
HiroIshida Feb 6, 2023
c1c4ab5
refactor(detection_by_tracker): remove unnecessary statement (#2823)
YoshiRi Feb 7, 2023
a00e671
fix(motion_velocity_smoother): resample making empty path (#2827)
TakaHoribe Feb 7, 2023
d3918e7
fix(ground_segmentation): fix unuse_time_series_filter bug (#2824)
badai-nguyen Feb 7, 2023
8684d2a
build(freespace_planning_algorithms): add nlohmann-json3-dev dependen…
esteve Feb 7, 2023
fb9b453
chore: update CODEOWNERS (#2821)
awf-autoware-bot[bot] Feb 7, 2023
650a35b
ci(pre-commit): autoupdate (#2819)
pre-commit-ci[bot] Feb 7, 2023
26944a3
chore(motion_velocity_smoother): add maintainer (#2816)
rej55 Feb 7, 2023
2a93ee3
fix(behavior_path_planner): replace deprecated function (#2817)
tkimura4 Feb 7, 2023
0324e05
fix(behavior_path_planner): fix geometric pull out lane id for overla…
kosuke55 Feb 7, 2023
e1069e1
feat(behavior_path_planner): deal with non rectangle object avoidance…
takayuki5168 Feb 7, 2023
eb782af
fix(behavior_path_planner): fix path distortion of no back pull out (…
kosuke55 Feb 7, 2023
298b224
ci(pre-commit): disable autoupdate (#2838)
awf-autoware-bot[bot] Feb 8, 2023
4269291
refactor(ekf_localizer): add a function to check the delay step (#2657)
IshitaTakeshi Feb 8, 2023
1e90380
refactor(ekf_localizer): add a function to erase a slash from the beg…
IshitaTakeshi Feb 8, 2023
14979d0
fix(behavior_path_planner): fix drivable area for long backawrd avoid…
takayuki5168 Feb 8, 2023
ff9d064
feat(behavior_path_planner): add option to disable path update (#2831)
takayuki5168 Feb 9, 2023
a052556
fix(lane_change): get sorted lane ids (#2847)
zulfaqar-azmi-t4 Feb 9, 2023
6a8f2a6
fix(lane_change): safe intervehicle distance in collision check (#2807)
zulfaqar-azmi-t4 Feb 9, 2023
fe32cd5
fix(lane_change): checks only shifted path for isInLanelet check (#2853)
zulfaqar-azmi-t4 Feb 9, 2023
9c632a5
feat(behavior_path_planner): fix z of extracted drivable area (#2856)
takayuki5168 Feb 10, 2023
a7f20aa
feat(operation_mode_transition_manager): add guard to invalid paramet…
tkimura4 Feb 10, 2023
95be33e
feat(simple_planning_sim): publish sensing interface imu data (#2843)
TakaHoribe Feb 10, 2023
d30616f
fix(behavior_path_planner): fix drivable area expansion method outsid…
takayuki5168 Feb 10, 2023
5907db6
fix(behavior_path_planner): fix overlapping checker (#2855)
purewater0901 Feb 10, 2023
d034c09
fix(behavior_path_planner): fix geometric parallel parking guard (#2857)
kosuke55 Feb 10, 2023
efd61ea
fix(behavior_path_planner): fix the reason of behind threshold (#2851)
takayuki5168 Feb 10, 2023
93fbdb9
feat(image_projection_based_fusion): add trust distance to fusion (#2…
kaancolak Feb 11, 2023
a8caf21
refactor(tier4_planning_rviz_plugin): create abstract class for footp…
takayuki5168 Feb 11, 2023
fb2bb6d
refactor(tier4_planning_rviz_plugin): clean up the code of path (#2871)
takayuki5168 Feb 11, 2023
00b97e4
feat(tier4_perception_launch): update cam/lidar detection architectur…
kaancolak Feb 12, 2023
b850b25
perf(detection_area): point and polygon inclusion check by minimum en…
veqcc Feb 13, 2023
58ee5e4
fix(behavior_path_planner): fix lane change path validation logic (#2…
rej55 Feb 13, 2023
b0b0b7a
fix(behavior_velocity_planner): continue collision checking after pas…
soblin Feb 13, 2023
a18de91
fix(behavior_velocity_planner): keep intersection module for lanes wi…
soblin Feb 13, 2023
501309b
fix(behavior_path_planner): fix drivable area expansion method outsid…
takayuki5168 Feb 13, 2023
f63d7d4
build(lidar_centerpoint): use APT version of python3-open3d as depend…
esteve Feb 13, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
common/autoware_ad_api_specs/** isamu.takagi@tier4.jp kahhooi.tan@tier4.jp kenji.miyake@tier4.jp makoto.yabuta@tier4.jp @autowarefoundation/autoware-global-codeowners
common/autoware_auto_common/** opensource@apex.ai @autowarefoundation/autoware-global-codeowners
common/autoware_auto_geometry/** opensource@apex.ai @autowarefoundation/autoware-global-codeowners
common/autoware_auto_perception_rviz_plugin/** opensource@apex.ai satoshi.tanaka@tier4.jp taiki.tanaka@tier4.jp @autowarefoundation/autoware-global-codeowners
common/autoware_auto_perception_rviz_plugin/** opensource@apex.ai satoshi.tanaka@tier4.jp taiki.tanaka@tier4.jp takeshi.miura@tier4.jp @autowarefoundation/autoware-global-codeowners
common/autoware_auto_tf2/** jit.ray.c@gmail.com @autowarefoundation/autoware-global-codeowners
common/autoware_point_types/** taichi.higashide@tier4.jp @autowarefoundation/autoware-global-codeowners
common/autoware_testing/** adam.dabrowski@robotec.ai @autowarefoundation/autoware-global-codeowners
Expand All @@ -17,14 +17,14 @@ common/fake_test_node/** opensource@apex.ai @autowarefoundation/autoware-global-
common/global_parameter_loader/** kenji.miyake@tier4.jp @autowarefoundation/autoware-global-codeowners
common/goal_distance_calculator/** taiki.tanaka@tier4.jp @autowarefoundation/autoware-global-codeowners
common/grid_map_utils/** maxime.clement@tier4.jp @autowarefoundation/autoware-global-codeowners
common/interpolation/** fumiya.watanabe@tier4.jp takayuki.murooka@tier4.jp @autowarefoundation/autoware-global-codeowners
common/interpolation/** fumiya.watanabe@tier4.jp takayuki.murooka@tier4.jp yutaka.shimizu@tier4.jp @autowarefoundation/autoware-global-codeowners
common/kalman_filter/** koji.minoda@tier4.jp takeshi.ishita@tier4.jp yukihiro.saito@tier4.jp @autowarefoundation/autoware-global-codeowners
common/motion_utils/** fumiya.watanabe@tier4.jp kosuke.takeuchi@tier4.jp satoshi.ota@tier4.jp taiki.tanaka@tier4.jp takamasa.horibe@tier4.jp takayuki.murooka@tier4.jp tomoya.kimura@tier4.jp yutaka.shimizu@tier4.jp @autowarefoundation/autoware-global-codeowners
common/osqp_interface/** fumiya.watanabe@tier4.jp maxime.clement@tier4.jp satoshi.ota@tier4.jp takayuki.murooka@tier4.jp @autowarefoundation/autoware-global-codeowners
common/path_distance_calculator/** isamu.takagi@tier4.jp kahhooi.tan@tier4.jp makoto.yabuta@tier4.jp @autowarefoundation/autoware-global-codeowners
common/perception_utils/** satoshi.tanaka@tier4.jp shunsuke.miura@tier4.jp takayuki.murooka@tier4.jp yusuke.muramatsu@tier4.jp @autowarefoundation/autoware-global-codeowners
common/polar_grid/** yukihiro.saito@tier4.jp @autowarefoundation/autoware-global-codeowners
common/rtc_manager_rviz_plugin/** taiki.tanaka@tier4.jp @autowarefoundation/autoware-global-codeowners
common/rtc_manager_rviz_plugin/** taiki.tanaka@tier4.jp tomoya.kimura@tier4.jp @autowarefoundation/autoware-global-codeowners
common/signal_processing/** ali.boyali@tier4.jp takayuki.murooka@tier4.jp @autowarefoundation/autoware-global-codeowners
common/tensorrt_common/** daisuke.nishimatsu@tier4.jp manato.hirabayashi@tier4.jp @autowarefoundation/autoware-global-codeowners
common/tier4_api_utils/** isamu.takagi@tier4.jp kahhooi.tan@tier4.jp kenji.miyake@tier4.jp makoto.yabuta@tier4.jp @autowarefoundation/autoware-global-codeowners
Expand Down Expand Up @@ -117,8 +117,8 @@ planning/behavior_path_planner/** fumiya.watanabe@tier4.jp kosuke.takeuchi@tier4
planning/behavior_velocity_planner/** kosuke.takeuchi@tier4.jp kyoichi.sugahara@tier4.jp makoto.kurihara@tier4.jp mamoru.sobue@tier4.jp satoshi.ota@tier4.jp shumpei.wakabayashi@tier4.jp taiki.tanaka@tier4.jp takayuki.murooka@tier4.jp tomohito.ando@tier4.jp tomoya.kimura@tier4.jp yutaka.shimizu@tier4.jp @autowarefoundation/autoware-global-codeowners
planning/costmap_generator/** kosuke.takeuchi@tier4.jp takamasa.horibe@tier4.jp takayuki.murooka@tier4.jp yutaka.shimizu@tier4.jp @autowarefoundation/autoware-global-codeowners
planning/external_velocity_limit_selector/** satoshi.ota@tier4.jp shinnosuke.hirakawa@tier4.jp shumpei.wakabayashi@tier4.jp tomohito.ando@tier4.jp tomoya.kimura@tier4.jp @autowarefoundation/autoware-global-codeowners
planning/freespace_planner/** takamasa.horibe@tier4.jp @autowarefoundation/autoware-global-codeowners
planning/freespace_planning_algorithms/** takamasa.horibe@tier4.jp @autowarefoundation/autoware-global-codeowners
planning/freespace_planner/** kosuke.takeuchi@tier4.jp takamasa.horibe@tier4.jp takayuki.murooka@tier4.jp yutaka.shimizu@tier4.jp @autowarefoundation/autoware-global-codeowners
planning/freespace_planning_algorithms/** kosuke.takeuchi@tier4.jp takamasa.horibe@tier4.jp takayuki.murooka@tier4.jp yutaka.shimizu@tier4.jp @autowarefoundation/autoware-global-codeowners
planning/mission_planner/** isamu.takagi@tier4.jp ryohsuke.mitsudome@tier4.jp takamasa.horibe@tier4.jp takayuki.murooka@tier4.jp @autowarefoundation/autoware-global-codeowners
planning/motion_velocity_smoother/** fumiya.watanabe@tier4.jp @autowarefoundation/autoware-global-codeowners
planning/obstacle_avoidance_planner/** kosuke.takeuchi@tier4.jp takayuki.murooka@tier4.jp @autowarefoundation/autoware-global-codeowners
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/deploy-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- main
- galactic
paths:
- mkdocs.yaml
- "**/*.md"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pre-commit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:

jobs:
pre-commit:
if: ${{ github.event.repository.private }}
if: ${{ github.event.repository.private }} # Use pre-commit.ci for public repositories
runs-on: ubuntu-latest
steps:
- name: Generate token
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config-optional.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/tcort/markdown-link-check
rev: v3.10.0
rev: v3.10.3
hooks:
- id: markdown-link-check
args: [--config=.markdown-link-check.json]
25 changes: 12 additions & 13 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
ci:
autofix_commit_msg: "ci(pre-commit): autofix"
autoupdate_commit_msg: "ci(pre-commit): autoupdate"
autofix_commit_msg: "style(pre-commit): autofix"

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
rev: v4.4.0
hooks:
- id: check-json
- id: check-merge-conflict
Expand All @@ -19,23 +18,23 @@ repos:
args: [--markdown-linebreak-ext=md]

- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.32.1
rev: v0.33.0
hooks:
- id: markdownlint
args: [-c, .markdownlint.yaml, --fix]

- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.7.1
rev: v3.0.0-alpha.4
hooks:
- id: prettier

- repo: https://github.com/adrienverge/yamllint
rev: v1.27.1
rev: v1.29.0
hooks:
- id: yamllint

- repo: https://github.com/tier4/pre-commit-hooks-ros
rev: v0.7.1
rev: v0.8.0
hooks:
- id: flake8-ros
- id: prettier-xacro
Expand All @@ -45,35 +44,35 @@ repos:
- id: sort-package-xml

- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.8.0.4
rev: v0.9.0.2
hooks:
- id: shellcheck

- repo: https://github.com/scop/pre-commit-shfmt
rev: v3.5.1-1
rev: v3.6.0-1
hooks:
- id: shfmt
args: [-w, -s, -i=4]

- repo: https://github.com/pycqa/isort
rev: 5.10.1
rev: 5.12.0
hooks:
- id: isort

- repo: https://github.com/psf/black
rev: 22.6.0
rev: 23.1.0
hooks:
- id: black
args: [--line-length=100]

- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v14.0.6
rev: v15.0.7
hooks:
- id: clang-format
types_or: [c++, c, cuda]

- repo: https://github.com/cpplint/cpplint
rev: 1.6.0
rev: 1.6.1
hooks:
- id: cpplint
args: [--quiet]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,12 @@ get_shape_marker_ptr(
const geometry_msgs::msg::Point & centroid, const geometry_msgs::msg::Quaternion & orientation,
const std_msgs::msg::ColorRGBA & color_rgba, const double & line_width);

AUTOWARE_AUTO_PERCEPTION_RVIZ_PLUGIN_PUBLIC visualization_msgs::msg::Marker::SharedPtr
get_2d_shape_marker_ptr(
const autoware_auto_perception_msgs::msg::Shape & shape_msg,
const geometry_msgs::msg::Point & centroid, const geometry_msgs::msg::Quaternion & orientation,
const std_msgs::msg::ColorRGBA & color_rgba, const double & line_width);

/// \brief Convert the given polygon into a marker representing the shape in 3d
/// \param centroid Centroid position of the shape in Object.header.frame_id frame
/// \return Marker ptr. Id and header will have to be set by the caller
Expand Down Expand Up @@ -120,7 +126,7 @@ AUTOWARE_AUTO_PERCEPTION_RVIZ_PLUGIN_PUBLIC visualization_msgs::msg::Marker::Sha
get_predicted_path_marker_ptr(
const autoware_auto_perception_msgs::msg::Shape & shape,
const autoware_auto_perception_msgs::msg::PredictedPath & predicted_path,
const std_msgs::msg::ColorRGBA & predicted_path_color);
const std_msgs::msg::ColorRGBA & predicted_path_color, const bool is_simple = false);

AUTOWARE_AUTO_PERCEPTION_RVIZ_PLUGIN_PUBLIC visualization_msgs::msg::Marker::SharedPtr
get_path_confidence_marker_ptr(
Expand All @@ -131,10 +137,18 @@ AUTOWARE_AUTO_PERCEPTION_RVIZ_PLUGIN_PUBLIC void calc_bounding_box_line_list(
const autoware_auto_perception_msgs::msg::Shape & shape,
std::vector<geometry_msgs::msg::Point> & points);

AUTOWARE_AUTO_PERCEPTION_RVIZ_PLUGIN_PUBLIC void calc_2d_bounding_box_bottom_line_list(
const autoware_auto_perception_msgs::msg::Shape & shape,
std::vector<geometry_msgs::msg::Point> & points);

AUTOWARE_AUTO_PERCEPTION_RVIZ_PLUGIN_PUBLIC void calc_cylinder_line_list(
const autoware_auto_perception_msgs::msg::Shape & shape,
std::vector<geometry_msgs::msg::Point> & points);

AUTOWARE_AUTO_PERCEPTION_RVIZ_PLUGIN_PUBLIC void calc_2d_cylinder_bottom_line_list(
const autoware_auto_perception_msgs::msg::Shape & shape,
std::vector<geometry_msgs::msg::Point> & points);

AUTOWARE_AUTO_PERCEPTION_RVIZ_PLUGIN_PUBLIC void calc_circle_line_list(
const geometry_msgs::msg::Point center, const double radius,
std::vector<geometry_msgs::msg::Point> & points, const int n);
Expand All @@ -143,9 +157,13 @@ AUTOWARE_AUTO_PERCEPTION_RVIZ_PLUGIN_PUBLIC void calc_polygon_line_list(
const autoware_auto_perception_msgs::msg::Shape & shape,
std::vector<geometry_msgs::msg::Point> & points);

AUTOWARE_AUTO_PERCEPTION_RVIZ_PLUGIN_PUBLIC void calc_2d_polygon_bottom_line_list(
const autoware_auto_perception_msgs::msg::Shape & shape,
std::vector<geometry_msgs::msg::Point> & points);

AUTOWARE_AUTO_PERCEPTION_RVIZ_PLUGIN_PUBLIC void calc_path_line_list(
const autoware_auto_perception_msgs::msg::PredictedPath & paths,
std::vector<geometry_msgs::msg::Point> & points);
std::vector<geometry_msgs::msg::Point> & points, const bool is_simple = false);

/// \brief Convert Point32 to Point
/// \param val Point32 to be converted
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
#ifndef OBJECT_DETECTION__OBJECT_POLYGON_DISPLAY_BASE_HPP_
#define OBJECT_DETECTION__OBJECT_POLYGON_DISPLAY_BASE_HPP_

#include "rviz_common/properties/enum_property.hpp"

#include <common/color_alpha_property.hpp>
#include <object_detection/object_polygon_detail.hpp>
#include <rviz_common/display.hpp>
Expand Down Expand Up @@ -59,8 +61,7 @@ class AUTOWARE_AUTO_PERCEPTION_RVIZ_PLUGIN_PUBLIC ObjectPolygonDisplayBase

explicit ObjectPolygonDisplayBase(const std::string & default_topic)
: m_marker_common(this),
m_display_3d_property{
"Display 3d polygon", true, "Enable/disable height visualization of the polygon", this},
// m_display_type_property{"Polygon Type", "3d", "Type of the polygon to display object", this},
m_display_label_property{"Display Label", true, "Enable/disable label visualization", this},
m_display_uuid_property{"Display UUID", true, "Enable/disable uuid visualization", this},
m_display_pose_with_covariance_property{
Expand All @@ -79,6 +80,18 @@ class AUTOWARE_AUTO_PERCEPTION_RVIZ_PLUGIN_PUBLIC ObjectPolygonDisplayBase
m_line_width_property{"Line Width", 0.03, "Line width of object-shape", this},
m_default_topic{default_topic}
{
m_display_type_property = new rviz_common::properties::EnumProperty(
"Polygon Type", "3d", "Type of the polygon to display object.", this, SLOT(updatePalette()));
// Option values here must correspond to indices in palette_textures_ array in onInitialize()
// below.
m_display_type_property->addOption("3d", 0);
m_display_type_property->addOption("2d", 1);
m_display_type_property->addOption("Disable", 2);
m_simple_visualize_mode_property = new rviz_common::properties::EnumProperty(
"Visualization Type", "Normal", "Simplicity of the polygon to display object.", this,
SLOT(updatePalette()));
m_simple_visualize_mode_property->addOption("Normal", 0);
m_simple_visualize_mode_property->addOption("Simple", 1);
// iterate over default values to create and initialize the properties.
for (const auto & map_property_it : detail::kDefaultObjectPropertyValues) {
const auto & class_property_values = map_property_it.second;
Expand Down Expand Up @@ -150,14 +163,22 @@ class AUTOWARE_AUTO_PERCEPTION_RVIZ_PLUGIN_PUBLIC ObjectPolygonDisplayBase
const ClassificationContainerT & labels, const double & line_width) const
{
const std_msgs::msg::ColorRGBA color_rgba = get_color_rgba(labels);

if (m_display_3d_property.getBool()) {
if (m_display_type_property->getOptionInt() == 0) {
return detail::get_shape_marker_ptr(shape_msg, centroid, orientation, color_rgba, line_width);
} else if (m_display_type_property->getOptionInt() == 1) {
return detail::get_2d_shape_marker_ptr(
shape_msg, centroid, orientation, color_rgba, line_width);
} else {
return std::nullopt;
}
}

template <typename ClassificationContainerT>
visualization_msgs::msg::Marker::SharedPtr get_2d_shape_marker_ptr(
const autoware_auto_perception_msgs::msg::Shape & shape_msg,
const geometry_msgs::msg::Point & centroid, const geometry_msgs::msg::Quaternion & orientation,
const std_msgs::msg::ColorRGBA & color_rgba, const double & line_width);

/// \brief Convert given shape msg into a Marker to visualize label name
/// \tparam ClassificationContainerT List type with ObjectClassificationMsg
/// \param centroid Centroid position of the shape in Object.header.frame_id frame
Expand Down Expand Up @@ -246,7 +267,9 @@ class AUTOWARE_AUTO_PERCEPTION_RVIZ_PLUGIN_PUBLIC ObjectPolygonDisplayBase
if (m_display_predicted_paths_property.getBool()) {
const std::string uuid_str = uuid_to_string(uuid);
const std_msgs::msg::ColorRGBA predicted_path_color = get_color_from_uuid(uuid_str);
return detail::get_predicted_path_marker_ptr(shape, predicted_path, predicted_path_color);
return detail::get_predicted_path_marker_ptr(
shape, predicted_path, predicted_path_color,
m_simple_visualize_mode_property->getOptionInt() == 1);
} else {
return std::nullopt;
}
Expand Down Expand Up @@ -366,8 +389,10 @@ class AUTOWARE_AUTO_PERCEPTION_RVIZ_PLUGIN_PUBLIC ObjectPolygonDisplayBase
std::list<rviz_common::properties::Property> m_class_group_properties;
// Map to store class labels and its corresponding properties
PolygonPropertyMap m_polygon_properties;
// Property to enable/disable height visualization of the polygon
rviz_common::properties::BoolProperty m_display_3d_property;
// Property to choose type of visualization polygon
rviz_common::properties::EnumProperty * m_display_type_property;
// Property to choose simplicity of visualization polygon
rviz_common::properties::EnumProperty * m_simple_visualize_mode_property;
// Property to enable/disable label visualization
rviz_common::properties::BoolProperty m_display_label_property;
// Property to enable/disable uuid visualization
Expand Down
2 changes: 2 additions & 0 deletions common/autoware_auto_perception_rviz_plugin/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
<maintainer email="opensource@apex.ai">Apex.AI, Inc.</maintainer>
<maintainer email="satoshi.tanaka@tier4.jp">Satoshi Tanaka</maintainer>
<maintainer email="taiki.tanaka@tier4.jp">Taiki Tanaka</maintainer>
<maintainer email="takeshi.miura@tier4.jp">Takeshi Miura</maintainer>

<license>Apache 2.0</license>

<buildtool_depend>ament_cmake</buildtool_depend>
Expand Down
Loading