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 tier4/autoware.universe:awf-latest #1153

Merged
merged 126 commits into from
Feb 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
126 commits
Select commit Hold shift + click to select a range
a1df4a6
fix(object_range_splitter): delete default param in src (#6312)
scepter914 Feb 7, 2024
069fb5e
chore(object_velocity_splitter): fix README (#6259)
scepter914 Feb 7, 2024
6405516
chore(radar_fusion_to_detected_object): fix README (#6261)
scepter914 Feb 7, 2024
7e53f30
chore(planning/control/vehicle): declare ROS params in yaml files (#6…
yuki-takagi-66 Feb 7, 2024
9710828
feat(intersection): use different expected deceleration for bike/car …
soblin Feb 7, 2024
b574523
chore(object_type_panel): update rosparam name config (#6347)
TakaHoribe Feb 7, 2024
3a10282
chore(intersection): add const to member functions, replace enum with…
soblin Feb 7, 2024
9df0ff9
chore(map_loader): rework parameters of map_loader (#6199)
anhnv3991 Feb 7, 2024
0ed18a4
feat: update vehicle overlay plugin (#6323)
KhalilSelyan Feb 7, 2024
e6df544
chore(ndt scan matcher): rename config path (#6333)
YamatoAndo Feb 7, 2024
58695bd
style(update): autoware tools icons (#6351)
KhalilSelyan Feb 7, 2024
9f1ae6d
feat(start/goal_planner): remove unused param and update time horizon…
kyoichi-sugahara Feb 7, 2024
ae6485f
feat: remove use_pointcloud_container (#6115)
kminoda Feb 8, 2024
ded60c6
feat(avoidance): consider objects on shift side lane (#6252)
satoshi-ota Feb 8, 2024
27895a0
fix(lane_change): orientation check when constructing path (#6339)
zulfaqar-azmi-t4 Feb 8, 2024
42ce747
chore(intersection): target type param (#6325)
soblin Feb 8, 2024
488fca5
chore(tier4_localization_launch): add maintainer (#6350)
YamatoAndo Feb 8, 2024
cab9d31
fix(multi_object_tracker): tune parameters for pedestrian tracker (#6…
technolojin Feb 8, 2024
63fb160
fix(map_based_prediction): fix typo for filename (#6316)
h-ohta Feb 8, 2024
444a73a
fix(readme): add acknowledgement for material icons in tool plugins (…
KhalilSelyan Feb 8, 2024
4bb003d
fix(static_drivable_area_expansion): fix invalid z-pos (#6357)
satoshi-ota Feb 8, 2024
b95367b
chore(radar_object_clustering): fix README (#6260)
scepter914 Feb 8, 2024
77ad201
build(tier4_metrics_rviz_plugin): add missing dependency (#6321)
esteve Feb 8, 2024
af2bc53
fix(front_vehicle_velocity): delete package (#6258)
scepter914 Feb 8, 2024
eef501e
chore(radar_crossing_objects_noise_filter): fix README (#6262)
scepter914 Feb 8, 2024
7112a5b
fix(AEB): check empty path at low speed (#6346)
soblin Feb 8, 2024
ad834d6
feat(traffic_light_ssd_fine_detector): remove package (#6360)
kminoda Feb 8, 2024
4409d20
fix(control_validator): process died for an empty trajectory (#6365)
TakaHoribe Feb 8, 2024
14fca2d
fix(object_velocity_splitter): refactor CMakeLists (#6270)
scepter914 Feb 8, 2024
1e45683
fix(radar_tracks_noise_filter): refactor CMakeLists (#6269)
scepter914 Feb 8, 2024
a78a875
fix(radar_object_clustering): refactor CMakeLists (#6265)
scepter914 Feb 8, 2024
49289b6
fix(radar_crossing_objects_noise_filter): refactor CMakeLists (#6263)
scepter914 Feb 8, 2024
81605c1
feat(heatmap_visualizer): remove package (#6359)
kminoda Feb 8, 2024
c8628bf
fix(gnss_poser): no conversion when projection type is local (#6356)
isamu-takagi Feb 9, 2024
309deea
feat(tier4_adapi_rviz_plugin): add change button to the route panel (…
isamu-takagi Feb 9, 2024
5b18c25
fix(dynamic_avoidance): fix minor bugs and comment (#6358)
yuki-takagi-66 Feb 9, 2024
1c54d43
feat(map based prediction, crosswalk)!: transplantation of pedestrian…
yuki-takagi-66 Feb 9, 2024
83f698d
feat(perception): add pipeline_latency_ms publisher (#6181)
kminoda Feb 9, 2024
7917330
feat(dynamic_avoidance): change magic number (#6368)
yuki-takagi-66 Feb 9, 2024
f13f354
feat(map_based_prediction): fix object flipping via update function (…
YoshiRi Feb 9, 2024
40d3889
fix(out_of_lane): ignore overlaps over all lanelets crossed by the eg…
maxime-clem Feb 9, 2024
8fc1558
chore(bytetrack): rework parameters (#6171)
kminoda Feb 9, 2024
a1d8321
chore(radar_object_tracker): move tracker config directory to paramet…
YoshiRi Feb 9, 2024
8992d05
chore(object_merger): rework parameters (#6160)
kminoda Feb 9, 2024
1af9352
chore(traffic_light_fine_detector_and_classifier): rework parameters …
tzhong518 Feb 9, 2024
7ebf71a
feat(pid_longitudinal_controller): improve delay and slope compensati…
brkay54 Feb 9, 2024
024f9dd
fix(vehicle_cmd_gate): fix the problems while transition from/to stop…
brkay54 Feb 9, 2024
98e3034
fix(object_velocity_splitter): delete default param in src (#6313)
scepter914 Feb 10, 2024
80c2488
fix(simple_object_merger): delete default param in src (#6311)
scepter914 Feb 10, 2024
648b68f
fix(radar_tracks_noise_filter): delete default param in src (#6310)
scepter914 Feb 10, 2024
91276c1
fix(radar_tracks_msgs_converter): delete default param in src (#6309)
scepter914 Feb 10, 2024
ca772a1
fix(radar_threshold_filter): delete default param in src (#6308)
scepter914 Feb 10, 2024
f55d777
fix(radar_crossing_objects_noise_filter): delete default param in src…
scepter914 Feb 10, 2024
ff0488a
feat(tensorrt_yolo): remove package (#6361)
kminoda Feb 10, 2024
1121f3b
chore(traffic_light_map_based_detector): rework parameters (#6200)
tzhong518 Feb 10, 2024
dcd29d3
refactor(start_planner): separate debug and info marker for rviz visu…
kyoichi-sugahara Feb 11, 2024
8bb9aff
fix: remove `tensorrt_yolo` from package dependencies in launcher (#6…
ktro2828 Feb 12, 2024
a10f9c4
fix(start_planner): remove front of shift start pose from collision c…
kyoichi-sugahara Feb 12, 2024
99c8b32
fix(log-messages): reduce excessive log messages (#5971)
ahmeddesokyebrahim Feb 12, 2024
d381585
fix(avoidance): fix bug in minimum overhang distance calculation (#6372)
satoshi-ota Feb 13, 2024
5244c95
refactor(tier4_perception_msgs): rename traffic_signal to traffic_lig…
miursh Feb 13, 2024
cd00f79
chore(avoidance): add maintainer (#6387)
satoshi-ota Feb 13, 2024
346a90c
chore: update CODEOWNERS (#6341)
awf-autoware-bot[bot] Feb 13, 2024
615d232
fix(static_drivable_area_expansion): remove process to make drivable …
satoshi-ota Feb 13, 2024
bd30a66
feat(goal_planne): check objects within the area between ego edge and…
soblin Feb 13, 2024
f812ea8
feat(map_height_fitter): fitting by vector_map (#6340)
SakodaShintaro Feb 13, 2024
c8790ab
chore(crosswalk): change LATER param (#6371)
yuki-takagi-66 Feb 13, 2024
19f36ac
fix(map_loader): fix warnings with single point cloud map metadata (#…
xmfcx Feb 13, 2024
d6ddbe1
fix(avoidance): safety check target lanes (#6324)
satoshi-ota Feb 13, 2024
76c365e
chore(lanelet2_map_preprocessor): add maintainers (#6332)
YamatoAndo Feb 13, 2024
4162d5e
fix(ar_tag_based_localizer): add ar tag based localizer param (#6390)
SakodaShintaro Feb 13, 2024
b68cdd6
fix(tracker_object_merger): add sanity check for tracker merger (#6386)
YoshiRi Feb 13, 2024
bc1868b
fix(pid_longitudinal_controller): fixed nearest/target index before/a…
soblin Feb 13, 2024
c686800
chore(emergency_handler): add maintainer (#6367)
veqcc Feb 14, 2024
78eea31
fix(bpp-common): use polygon area to check overlap lanelet (#6291)
satoshi-ota Feb 14, 2024
7d8ee41
feat(motion_velocity_smoother): use common max_vel (#6388)
takayuki5168 Feb 14, 2024
b09bf92
feat(planning_validator): add validation for trajectory length and re…
TakaHoribe Feb 14, 2024
1dac00b
fix(image_projection_based_fusion): fix bug (#6411)
kminoda Feb 14, 2024
28154f6
fix(radar_tracks_msgs_converter): add a missing parameter 'new_frame_…
technolojin Feb 14, 2024
4f0564f
fix(map_based_prediction): suppress spell check failure (#6403)
h-ohta Feb 14, 2024
5b6b722
chore(cspell): update .cspell-partial.json (#6409)
HansRobo Feb 15, 2024
c9e6dda
fix(external_velocity_limit_selector): fix parameter name (#6415)
satoshi-ota Feb 15, 2024
b2cd2aa
fix(obstacle_stop_planner): fix null object_ptr access when use_predi…
soblin Feb 15, 2024
5015007
refactor(blind_spot): find first_conflicting_lane just as intersectio…
soblin Feb 15, 2024
866a346
fix(pose_instability_detector): changed the interval_sec value of pos…
SakodaShintaro Feb 15, 2024
148721c
fix(tracking_object_merger): fix spell check (#6424)
h-ohta Feb 15, 2024
ace0596
fix(radar_object_tracker): fix spell check (#6422)
h-ohta Feb 15, 2024
0dc88f5
fix(motion_velocity_smoother): calc first point front_wheel_angle_rad…
VRichardJP Feb 15, 2024
e6de0f6
fix(perception): fix typo (#6420)
h-ohta Feb 15, 2024
dcf38f9
docs(intersection): add upstream feature explanation (#6426)
soblin Feb 15, 2024
e1356ed
fix(avoidance): limit drivable lane only when the ego in on original …
satoshi-ota Feb 15, 2024
1be4afd
chore(lane_change): add maintainer (#6425)
zulfaqar-azmi-t4 Feb 15, 2024
6b1a459
docs(start_planner): update collision_check_distance_from_end (#6417)
shmpwk Feb 15, 2024
ff50d8f
feat(compare_map_segmentation): change height downsize logic (#6429)
YoshiRi Feb 16, 2024
13b8bdc
feat(tier4_control_launch): run control_validator out of main control…
soblin Feb 16, 2024
54d25a8
fix(behavior_path_planner): catch exception when calculating curvatur…
maxime-clem Feb 16, 2024
edff19e
chore(gnss_poser): add maintainer (#6407)
YamatoAndo Feb 16, 2024
b56f132
docs(planning): add dynamic_obstacle_stop to the list of modules (#6389)
maxime-clem Feb 16, 2024
dcd3c07
fix(obstacle_stop_planner): change the nearest_collision_point calcul…
brkay54 Feb 16, 2024
1ebea2f
chore(image_projection_based_fusion): rename debug topics (#6418)
badai-nguyen Feb 16, 2024
32073c0
chore: update CODEOWNERS (#6396)
awf-autoware-bot[bot] Feb 16, 2024
7938920
feat(safety_check): add option to use polygon along path in safety ch…
satoshi-ota Feb 16, 2024
e595755
refactor(obstacle_stop_planner): update package.xml (#6437)
beyzanurkaya Feb 16, 2024
9530c8a
fix(goal_planner): fix updateCollisionCheckDebugMap timing in checkSa…
kosuke55 Feb 17, 2024
3f21683
chore(pointcloud_preprocessor): add maintainer (#6442)
kyoichi-sugahara Feb 19, 2024
edd0422
feat!: move tools to autoware_tools repository (#6444)
takayuki5168 Feb 19, 2024
e329fda
fix(lane_change): fix dynamic reconfigure and add parameters (#6276)
zulfaqar-azmi-t4 Feb 19, 2024
14e016f
chore(tier4_control_launch): fix control validator name duplication (…
soblin Feb 19, 2024
695547d
fix(blockage_diag): output blockage angle range bug fix (#6445)
badai-nguyen Feb 19, 2024
9727299
feat(traffic_light_multi_camera_fusion): take confidence into conside…
tzhong518 Feb 19, 2024
4792e2c
fix: revert accel_brake_map_calibrator (#6453)
takayuki5168 Feb 19, 2024
19e7bc7
chore(detection): add maintainer (#6450)
kminoda Feb 19, 2024
640fa80
refactor(mission_planner): add comment functions/remove unused stuff/…
soblin Feb 19, 2024
dd52489
chore: update CODEOWNERS (#6441)
awf-autoware-bot[bot] Feb 19, 2024
c67bbe7
feat(lidar_apollo_instance_segmentation): add build_only option (#6454)
kosuke55 Feb 20, 2024
757d656
feat(traffic_light_arbiter): add signal match validator (#6423)
TomohitoAndo Feb 20, 2024
2036e2f
chore: added a missing link in a comment in the pointpainting launche…
knzo25 Feb 20, 2024
618532f
feat(strat_planner): add a prepare time for blinker before taking act…
soblin Feb 20, 2024
82864fb
fix(tracking_object_merger): merge velocity base on target object coo…
technolojin Feb 20, 2024
829c2aa
feat(ndt_scan_matcher): smooth ndt map update (#6394)
anhnv3991 Feb 20, 2024
f7dcc4e
refactor(lanelet2_map_preprocessor): rework parameter (#6218)
Motsu-san Feb 20, 2024
d73d0f6
fix(mission_planner): fix marker color (#6458)
satoshi-ota Feb 20, 2024
3e12d13
feat(simple_planning_simulator): add enable_road_slope_simulation par…
maxime-clem Feb 20, 2024
bad6680
feat(goal_planner): change pull over path candidate priority with sof…
kosuke55 Feb 20, 2024
5d17128
feat(hazard_status_converter): add package (#6428)
isamu-takagi Feb 20, 2024
871f8f2
fix(gnss_poser): fix tf transform (#6404)
YamatoAndo Feb 20, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .cspell-partial.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
"perception/bytetrack/lib/**"
],
"ignoreRegExpList": [],
"words": ["dltype", "tvmgen", "quantizer", "imageio", "mimsave"]
"words": ["dltype", "tvmgen"]
}
39 changes: 17 additions & 22 deletions .github/CODEOWNERS

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.5)
project(rviz_2d_overlay_msgs)
project(autoware_overlay_msgs)

if (NOT CMAKE_CXX_STANDARD)
set(CMAKE_CXX_STANDARD 17)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
<package format="3">
<name>rviz_2d_overlay_msgs</name>
<name>autoware_overlay_msgs</name>
<version>1.3.0</version>
<description>Messages describing 2D overlays for RVIZ, extracted/derived from the jsk_visualization package.</description>
<maintainer email="[email protected]">Team Spatzenhirn</maintainer>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.8)
project(awf_2d_overlay_vehicle)
project(autoware_overlay_rviz_plugin)

# find dependencies
find_package(ament_cmake_auto REQUIRED)
Expand All @@ -9,7 +9,7 @@ find_package(tier4_planning_msgs REQUIRED)
find_package(autoware_perception_msgs REQUIRED)
ament_auto_find_build_dependencies()

find_package(rviz_2d_overlay_msgs REQUIRED)
find_package(autoware_overlay_msgs REQUIRED)

find_package(rviz_common REQUIRED)
find_package(rviz_rendering REQUIRED)
Expand Down Expand Up @@ -90,7 +90,7 @@ ament_target_dependencies(
PUBLIC
rviz_common
rviz_rendering
rviz_2d_overlay_msgs
autoware_overlay_msgs
autoware_auto_vehicle_msgs
tier4_planning_msgs
autoware_perception_msgs
Expand Down Expand Up @@ -136,5 +136,5 @@ install(
add_definitions(-DQT_NO_KEYWORDS)

ament_package(
CONFIG_EXTRAS "awf_2d_overlay_vehicle-extras.cmake"
CONFIG_EXTRAS "autoware_overlay_rviz_plugin-extras.cmake"
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# autoware_overlay_rviz_plugin

Plugin for displaying 2D overlays over the RViz2 3D scene.

Based on the [jsk_visualization](https://github.com/jsk-ros-pkg/jsk_visualization)
package, under the 3-Clause BSD license.

## Purpose

This plugin provides a visual and easy-to-understand display of vehicle speed, turn signal, steering status and gears.

## Inputs / Outputs

### Input

| Name | Type | Description |
| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------ |
| `/vehicle/status/velocity_status` | `autoware_auto_vehicle_msgs::msg::VelocityReport` | The topic is vehicle velocity |
| `/vehicle/status/turn_indicators_status` | `autoware_auto_vehicle_msgs::msg::TurnIndicatorsReport` | The topic is status of turn signal |
| `/vehicle/status/hazard_status` | `autoware_auto_vehicle_msgs::msg::HazardReport` | The topic is status of hazard |
| `/vehicle/status/steering_status` | `autoware_auto_vehicle_msgs::msg::SteeringReport` | The topic is status of steering |
| `/vehicle/status/gear_status` | `autoware_auto_vehicle_msgs::msg::GearReport` | The topic is status of gear |
| `/planning/scenario_planning/current_max_velocity` | `tier4_planning_msgs::msg::VelocityLimit` | The topic is velocity limit |
| `/perception/traffic_light_recognition/traffic_signals` | `autoware_perception_msgs::msg::TrafficSignalArray` | The topic is status of traffic light |

## Parameter

### Core Parameters

#### SignalDisplay

| Name | Type | Default Value | Description |
| ------------------------ | ------ | -------------------- | --------------------------------- |
| `property_width_` | int | 128 | Width of the plotter window [px] |
| `property_height_` | int | 128 | Height of the plotter window [px] |
| `property_left_` | int | 128 | Left of the plotter window [px] |
| `property_top_` | int | 128 | Top of the plotter window [px] |
| `property_signal_color_` | QColor | QColor(25, 255, 240) | Turn Signal color |

## Assumptions / Known limits

TBD.

## Usage

1. Start `rviz2` and click `Add` button under the `Displays` panel.

![select_add](./assets/images/select_add.png)

2. Under `By display type` tab, select `autoware_overlay_rviz_plugin/SignalDisplay` and press OK.

3. Enter the names of the topics if necessary.

![select_topic_name](./assets/images/select_topic_name.png)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#include <OgreMaterial.h>
#include <OgreTexture.h>

namespace awf_2d_overlay_vehicle
namespace autoware_overlay_rviz_plugin
{

class GearDisplay
Expand All @@ -44,6 +44,6 @@ class GearDisplay
QColor gray = QColor(194, 194, 194);
};

} // namespace awf_2d_overlay_vehicle
} // namespace autoware_overlay_rviz_plugin

#endif // GEAR_DISPLAY_HPP_
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
#ifndef OVERLAY_TEXT_DISPLAY_HPP_
#define OVERLAY_TEXT_DISPLAY_HPP_

#include "rviz_2d_overlay_msgs/msg/overlay_text.hpp"
#include "autoware_overlay_msgs/msg/overlay_text.hpp"
#ifndef Q_MOC_RUN
#include "overlay_utils.hpp"

Expand All @@ -69,18 +69,18 @@
#include <string>
#endif

namespace awf_2d_overlay_vehicle
namespace autoware_overlay_rviz_plugin
{
class OverlayTextDisplay
: public rviz_common::RosTopicDisplay<rviz_2d_overlay_msgs::msg::OverlayText>
: public rviz_common::RosTopicDisplay<autoware_overlay_msgs::msg::OverlayText>
{
Q_OBJECT
public:
OverlayTextDisplay();
virtual ~OverlayTextDisplay();

protected:
awf_2d_overlay_vehicle::OverlayObject::SharedPtr overlay_;
autoware_overlay_rviz_plugin::OverlayObject::SharedPtr overlay_;

int texture_width_;
int texture_height_;
Expand Down Expand Up @@ -150,8 +150,8 @@ protected Q_SLOTS:
void updateLineWidth();

private:
void processMessage(rviz_2d_overlay_msgs::msg::OverlayText::ConstSharedPtr msg) override;
void processMessage(autoware_overlay_msgs::msg::OverlayText::ConstSharedPtr msg) override;
};
} // namespace awf_2d_overlay_vehicle
} // namespace autoware_overlay_rviz_plugin

#endif // OVERLAY_TEXT_DISPLAY_HPP_
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
#include <QColor>
#include <QImage>

#include "rviz_2d_overlay_msgs/msg/overlay_text.hpp"
#include "autoware_overlay_msgs/msg/overlay_text.hpp"

#include <OgreHardwarePixelBuffer.h>
#include <OgreMaterialManager.h>
Expand All @@ -70,7 +70,7 @@
#include <memory>
#include <string>

namespace awf_2d_overlay_vehicle
namespace autoware_overlay_rviz_plugin
{
class OverlayObject;

Expand All @@ -90,15 +90,15 @@ class ScopedPixelBuffer
};

enum class VerticalAlignment : uint8_t {
CENTER = rviz_2d_overlay_msgs::msg::OverlayText::CENTER,
TOP = rviz_2d_overlay_msgs::msg::OverlayText::TOP,
BOTTOM = rviz_2d_overlay_msgs::msg::OverlayText::BOTTOM,
CENTER = autoware_overlay_msgs::msg::OverlayText::CENTER,
TOP = autoware_overlay_msgs::msg::OverlayText::TOP,
BOTTOM = autoware_overlay_msgs::msg::OverlayText::BOTTOM,
};

enum class HorizontalAlignment : uint8_t {
LEFT = rviz_2d_overlay_msgs::msg::OverlayText::LEFT,
RIGHT = rviz_2d_overlay_msgs::msg::OverlayText::RIGHT,
CENTER = rviz_2d_overlay_msgs::msg::OverlayText::CENTER
LEFT = autoware_overlay_msgs::msg::OverlayText::LEFT,
RIGHT = autoware_overlay_msgs::msg::OverlayText::RIGHT,
CENTER = autoware_overlay_msgs::msg::OverlayText::CENTER
};

/**
Expand Down Expand Up @@ -136,6 +136,6 @@ class OverlayObject
Ogre::MaterialPtr panel_material_;
Ogre::TexturePtr texture_;
};
} // namespace awf_2d_overlay_vehicle
} // namespace autoware_overlay_rviz_plugin

#endif // OVERLAY_UTILS_HPP_
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
#include <mutex>
#endif

namespace awf_2d_overlay_vehicle
namespace autoware_overlay_rviz_plugin
{
class SignalDisplay : public rviz_common::Display
{
Expand Down Expand Up @@ -70,7 +70,7 @@ private Q_SLOTS:

private:
std::mutex mutex_;
awf_2d_overlay_vehicle::OverlayObject::SharedPtr overlay_;
autoware_overlay_rviz_plugin::OverlayObject::SharedPtr overlay_;
rviz_common::properties::IntProperty * property_width_;
rviz_common::properties::IntProperty * property_height_;
rviz_common::properties::IntProperty * property_left_;
Expand All @@ -84,7 +84,8 @@ private Q_SLOTS:
std::unique_ptr<rviz_common::properties::RosTopicProperty> traffic_topic_property_;
std::unique_ptr<rviz_common::properties::RosTopicProperty> speed_limit_topic_property_;

void drawBackground(QPainter & painter, const QRectF & backgroundRect);
void drawHorizontalRoundedRectangle(QPainter & painter, const QRectF & backgroundRect);
void drawVerticalRoundedRectangle(QPainter & painter, const QRectF & backgroundRect);
void setupRosSubscriptions();

std::unique_ptr<SteeringWheelDisplay> steering_wheel_display_;
Expand Down Expand Up @@ -119,6 +120,6 @@ private Q_SLOTS:
const autoware_perception_msgs::msg::TrafficSignalArray::ConstSharedPtr msg);
void drawWidget(QImage & hud);
};
} // namespace awf_2d_overlay_vehicle
} // namespace autoware_overlay_rviz_plugin

#endif // SIGNAL_DISPLAY_HPP_
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#include <OgreMaterial.h>
#include <OgreTexture.h>

namespace awf_2d_overlay_vehicle
namespace autoware_overlay_rviz_plugin
{

class SpeedDisplay
Expand All @@ -44,6 +44,6 @@ class SpeedDisplay
QColor gray = QColor(194, 194, 194);
};

} // namespace awf_2d_overlay_vehicle
} // namespace autoware_overlay_rviz_plugin

#endif // SPEED_DISPLAY_HPP_
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,14 @@
#include <rviz_common/properties/int_property.hpp>
#include <rviz_common/ros_topic_display.hpp>

#include "autoware_auto_vehicle_msgs/msg/velocity_report.hpp"
#include <tier4_planning_msgs/msg/velocity_limit.hpp>

#include <OgreColourValue.h>
#include <OgreMaterial.h>
#include <OgreTexture.h>

namespace awf_2d_overlay_vehicle
namespace autoware_overlay_rviz_plugin
{

class SpeedLimitDisplay
Expand All @@ -38,12 +39,14 @@ class SpeedLimitDisplay
SpeedLimitDisplay();
void drawSpeedLimitIndicator(QPainter & painter, const QRectF & backgroundRect);
void updateSpeedLimitData(const tier4_planning_msgs::msg::VelocityLimit::ConstSharedPtr msg);
void updateSpeedData(const autoware_auto_vehicle_msgs::msg::VelocityReport::ConstSharedPtr & msg);

private:
float current_limit; // Internal variable to store current gear
float current_limit; // Internal variable to store current gear
float current_speed_; // Internal variable to store current speed
QColor gray = QColor(194, 194, 194);
};

} // namespace awf_2d_overlay_vehicle
} // namespace autoware_overlay_rviz_plugin

#endif // SPEED_LIMIT_DISPLAY_HPP_
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#include <OgreMaterial.h>
#include <OgreTexture.h>

namespace awf_2d_overlay_vehicle
namespace autoware_overlay_rviz_plugin
{

class SteeringWheelDisplay
Expand All @@ -49,6 +49,6 @@ class SteeringWheelDisplay
QImage coloredImage(const QImage & source, const QColor & color);
};

} // namespace awf_2d_overlay_vehicle
} // namespace autoware_overlay_rviz_plugin

#endif // STEERING_WHEEL_DISPLAY_HPP_
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#include <OgreMaterial.h>
#include <OgreTexture.h>

namespace awf_2d_overlay_vehicle
namespace autoware_overlay_rviz_plugin
{

class TrafficDisplay
Expand All @@ -45,18 +45,15 @@ class TrafficDisplay

private:
QImage traffic_light_image_;
// yellow #CFC353
QColor yellow = QColor(207, 195, 83);
// red #CF5353
QColor red = QColor(207, 83, 83);
// green #53CF5F
QColor green = QColor(83, 207, 95);
// gray #C2C2C2
QColor gray = QColor(194, 194, 194);

const QColor tl_red_;
const QColor tl_yellow_;
const QColor tl_green_;
const QColor tl_gray_;

QImage coloredImage(const QImage & source, const QColor & color);
};

} // namespace awf_2d_overlay_vehicle
} // namespace autoware_overlay_rviz_plugin

#endif // TRAFFIC_DISPLAY_HPP_
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

#include <chrono>

namespace awf_2d_overlay_vehicle
namespace autoware_overlay_rviz_plugin
{

class TurnSignalsDisplay
Expand All @@ -47,7 +47,7 @@ class TurnSignalsDisplay

private:
QImage arrowImage;
QColor gray = QColor(194, 194, 194);
QColor gray = QColor(46, 46, 46);

int current_turn_signal_; // Internal variable to store turn signal state
int current_hazard_lights_; // Internal variable to store hazard lights state
Expand All @@ -58,6 +58,6 @@ class TurnSignalsDisplay
const std::chrono::milliseconds blink_interval_{500}; // Blink interval in milliseconds
};

} // namespace awf_2d_overlay_vehicle
} // namespace autoware_overlay_rviz_plugin

#endif // TURN_SIGNALS_DISPLAY_HPP_
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
<package format="3">
<name>awf_2d_overlay_vehicle</name>
<name>autoware_overlay_rviz_plugin</name>
<version>0.0.1</version>
<description>
RViz2 plugin for 2D overlays in the 3D view. Mainly a port of the JSK overlay plugin
Expand All @@ -12,9 +12,9 @@
<license>BSD-3-Clause</license>

<depend>autoware_auto_vehicle_msgs</depend>
<depend>autoware_overlay_msgs</depend>
<depend>autoware_perception_msgs</depend>
<depend>boost</depend>
<depend>rviz_2d_overlay_msgs</depend>
<depend>rviz_common</depend>
<depend>rviz_ogre_vendor</depend>
<depend>rviz_rendering</depend>
Expand Down
Loading
Loading