Skip to content

Commit 69ac37b

Browse files
committed
Merge remote-tracking branch 'awf/main' into refactor/fix_param_of_pose_initializer
Signed-off-by: Kento Yabuuchi <kento.yabuuchi.2@tier4.jp>
2 parents fab019c + 9120c08 commit 69ac37b

File tree

573 files changed

+8665
-16818
lines changed

Some content is hidden

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

573 files changed

+8665
-16818
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

+17-22
Large diffs are not rendered by default.

.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:

common/awf_vehicle_rviz_plugin/rviz_2d_overlay_msgs/CMakeLists.txt common/autoware_overlay_rviz_plugin/autoware_overlay_msgs/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
cmake_minimum_required(VERSION 3.5)
2-
project(rviz_2d_overlay_msgs)
2+
project(autoware_overlay_msgs)
33

44
if (NOT CMAKE_CXX_STANDARD)
55
set(CMAKE_CXX_STANDARD 17)

common/awf_vehicle_rviz_plugin/rviz_2d_overlay_msgs/package.xml common/autoware_overlay_rviz_plugin/autoware_overlay_msgs/package.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0"?>
22
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
33
<package format="3">
4-
<name>rviz_2d_overlay_msgs</name>
4+
<name>autoware_overlay_msgs</name>
55
<version>1.3.0</version>
66
<description>Messages describing 2D overlays for RVIZ, extracted/derived from the jsk_visualization package.</description>
77
<maintainer email="team-spatzenhirn@uni-ulm.de">Team Spatzenhirn</maintainer>

common/awf_vehicle_rviz_plugin/awf_2d_overlay_vehicle/CMakeLists.txt common/autoware_overlay_rviz_plugin/autoware_overlay_rviz_plugin/CMakeLists.txt

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
cmake_minimum_required(VERSION 3.8)
2-
project(awf_2d_overlay_vehicle)
2+
project(autoware_overlay_rviz_plugin)
33

44
# find dependencies
55
find_package(ament_cmake_auto REQUIRED)
@@ -9,7 +9,7 @@ find_package(tier4_planning_msgs REQUIRED)
99
find_package(autoware_perception_msgs REQUIRED)
1010
ament_auto_find_build_dependencies()
1111

12-
find_package(rviz_2d_overlay_msgs REQUIRED)
12+
find_package(autoware_overlay_msgs REQUIRED)
1313

1414
find_package(rviz_common REQUIRED)
1515
find_package(rviz_rendering REQUIRED)
@@ -90,7 +90,7 @@ ament_target_dependencies(
9090
PUBLIC
9191
rviz_common
9292
rviz_rendering
93-
rviz_2d_overlay_msgs
93+
autoware_overlay_msgs
9494
autoware_auto_vehicle_msgs
9595
tier4_planning_msgs
9696
autoware_perception_msgs
@@ -136,5 +136,5 @@ install(
136136
add_definitions(-DQT_NO_KEYWORDS)
137137

138138
ament_package(
139-
CONFIG_EXTRAS "awf_2d_overlay_vehicle-extras.cmake"
139+
CONFIG_EXTRAS "autoware_overlay_rviz_plugin-extras.cmake"
140140
)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# autoware_overlay_rviz_plugin
2+
3+
Plugin for displaying 2D overlays over the RViz2 3D scene.
4+
5+
Based on the [jsk_visualization](https://github.com/jsk-ros-pkg/jsk_visualization)
6+
package, under the 3-Clause BSD license.
7+
8+
## Purpose
9+
10+
This plugin provides a visual and easy-to-understand display of vehicle speed, turn signal, steering status and gears.
11+
12+
## Inputs / Outputs
13+
14+
### Input
15+
16+
| Name | Type | Description |
17+
| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------ |
18+
| `/vehicle/status/velocity_status` | `autoware_auto_vehicle_msgs::msg::VelocityReport` | The topic is vehicle velocity |
19+
| `/vehicle/status/turn_indicators_status` | `autoware_auto_vehicle_msgs::msg::TurnIndicatorsReport` | The topic is status of turn signal |
20+
| `/vehicle/status/hazard_status` | `autoware_auto_vehicle_msgs::msg::HazardReport` | The topic is status of hazard |
21+
| `/vehicle/status/steering_status` | `autoware_auto_vehicle_msgs::msg::SteeringReport` | The topic is status of steering |
22+
| `/vehicle/status/gear_status` | `autoware_auto_vehicle_msgs::msg::GearReport` | The topic is status of gear |
23+
| `/planning/scenario_planning/current_max_velocity` | `tier4_planning_msgs::msg::VelocityLimit` | The topic is velocity limit |
24+
| `/perception/traffic_light_recognition/traffic_signals` | `autoware_perception_msgs::msg::TrafficSignalArray` | The topic is status of traffic light |
25+
26+
## Parameter
27+
28+
### Core Parameters
29+
30+
#### SignalDisplay
31+
32+
| Name | Type | Default Value | Description |
33+
| ------------------------ | ------ | -------------------- | --------------------------------- |
34+
| `property_width_` | int | 128 | Width of the plotter window [px] |
35+
| `property_height_` | int | 128 | Height of the plotter window [px] |
36+
| `property_left_` | int | 128 | Left of the plotter window [px] |
37+
| `property_top_` | int | 128 | Top of the plotter window [px] |
38+
| `property_signal_color_` | QColor | QColor(25, 255, 240) | Turn Signal color |
39+
40+
## Assumptions / Known limits
41+
42+
TBD.
43+
44+
## Usage
45+
46+
1. Start `rviz2` and click `Add` button under the `Displays` panel.
47+
48+
![select_add](./assets/images/select_add.png)
49+
50+
2. Under `By display type` tab, select `autoware_overlay_rviz_plugin/SignalDisplay` and press OK.
51+
52+
3. Enter the names of the topics if necessary.
53+
54+
![select_topic_name](./assets/images/select_topic_name.png)
Loading

common/awf_vehicle_rviz_plugin/awf_2d_overlay_vehicle/include/gear_display.hpp common/autoware_overlay_rviz_plugin/autoware_overlay_rviz_plugin/include/gear_display.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
#include <OgreMaterial.h>
3030
#include <OgreTexture.h>
3131

32-
namespace awf_2d_overlay_vehicle
32+
namespace autoware_overlay_rviz_plugin
3333
{
3434

3535
class GearDisplay
@@ -44,6 +44,6 @@ class GearDisplay
4444
QColor gray = QColor(194, 194, 194);
4545
};
4646

47-
} // namespace awf_2d_overlay_vehicle
47+
} // namespace autoware_overlay_rviz_plugin
4848

4949
#endif // GEAR_DISPLAY_HPP_

common/awf_vehicle_rviz_plugin/awf_2d_overlay_vehicle/include/overlay_text_display.hpp common/autoware_overlay_rviz_plugin/autoware_overlay_rviz_plugin/include/overlay_text_display.hpp

+6-6
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
#ifndef OVERLAY_TEXT_DISPLAY_HPP_
5151
#define OVERLAY_TEXT_DISPLAY_HPP_
5252

53-
#include "rviz_2d_overlay_msgs/msg/overlay_text.hpp"
53+
#include "autoware_overlay_msgs/msg/overlay_text.hpp"
5454
#ifndef Q_MOC_RUN
5555
#include "overlay_utils.hpp"
5656

@@ -69,18 +69,18 @@
6969
#include <string>
7070
#endif
7171

72-
namespace awf_2d_overlay_vehicle
72+
namespace autoware_overlay_rviz_plugin
7373
{
7474
class OverlayTextDisplay
75-
: public rviz_common::RosTopicDisplay<rviz_2d_overlay_msgs::msg::OverlayText>
75+
: public rviz_common::RosTopicDisplay<autoware_overlay_msgs::msg::OverlayText>
7676
{
7777
Q_OBJECT
7878
public:
7979
OverlayTextDisplay();
8080
virtual ~OverlayTextDisplay();
8181

8282
protected:
83-
awf_2d_overlay_vehicle::OverlayObject::SharedPtr overlay_;
83+
autoware_overlay_rviz_plugin::OverlayObject::SharedPtr overlay_;
8484

8585
int texture_width_;
8686
int texture_height_;
@@ -150,8 +150,8 @@ protected Q_SLOTS:
150150
void updateLineWidth();
151151

152152
private:
153-
void processMessage(rviz_2d_overlay_msgs::msg::OverlayText::ConstSharedPtr msg) override;
153+
void processMessage(autoware_overlay_msgs::msg::OverlayText::ConstSharedPtr msg) override;
154154
};
155-
} // namespace awf_2d_overlay_vehicle
155+
} // namespace autoware_overlay_rviz_plugin
156156

157157
#endif // OVERLAY_TEXT_DISPLAY_HPP_

common/awf_vehicle_rviz_plugin/awf_2d_overlay_vehicle/include/overlay_utils.hpp common/autoware_overlay_rviz_plugin/autoware_overlay_rviz_plugin/include/overlay_utils.hpp

+9-9
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
#include <QColor>
5555
#include <QImage>
5656

57-
#include "rviz_2d_overlay_msgs/msg/overlay_text.hpp"
57+
#include "autoware_overlay_msgs/msg/overlay_text.hpp"
5858

5959
#include <OgreHardwarePixelBuffer.h>
6060
#include <OgreMaterialManager.h>
@@ -70,7 +70,7 @@
7070
#include <memory>
7171
#include <string>
7272

73-
namespace awf_2d_overlay_vehicle
73+
namespace autoware_overlay_rviz_plugin
7474
{
7575
class OverlayObject;
7676

@@ -90,15 +90,15 @@ class ScopedPixelBuffer
9090
};
9191

9292
enum class VerticalAlignment : uint8_t {
93-
CENTER = rviz_2d_overlay_msgs::msg::OverlayText::CENTER,
94-
TOP = rviz_2d_overlay_msgs::msg::OverlayText::TOP,
95-
BOTTOM = rviz_2d_overlay_msgs::msg::OverlayText::BOTTOM,
93+
CENTER = autoware_overlay_msgs::msg::OverlayText::CENTER,
94+
TOP = autoware_overlay_msgs::msg::OverlayText::TOP,
95+
BOTTOM = autoware_overlay_msgs::msg::OverlayText::BOTTOM,
9696
};
9797

9898
enum class HorizontalAlignment : uint8_t {
99-
LEFT = rviz_2d_overlay_msgs::msg::OverlayText::LEFT,
100-
RIGHT = rviz_2d_overlay_msgs::msg::OverlayText::RIGHT,
101-
CENTER = rviz_2d_overlay_msgs::msg::OverlayText::CENTER
99+
LEFT = autoware_overlay_msgs::msg::OverlayText::LEFT,
100+
RIGHT = autoware_overlay_msgs::msg::OverlayText::RIGHT,
101+
CENTER = autoware_overlay_msgs::msg::OverlayText::CENTER
102102
};
103103

104104
/**
@@ -136,6 +136,6 @@ class OverlayObject
136136
Ogre::MaterialPtr panel_material_;
137137
Ogre::TexturePtr texture_;
138138
};
139-
} // namespace awf_2d_overlay_vehicle
139+
} // namespace autoware_overlay_rviz_plugin
140140

141141
#endif // OVERLAY_UTILS_HPP_

common/awf_vehicle_rviz_plugin/awf_2d_overlay_vehicle/include/signal_display.hpp common/autoware_overlay_rviz_plugin/autoware_overlay_rviz_plugin/include/signal_display.hpp

+5-4
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
#include <mutex>
4040
#endif
4141

42-
namespace awf_2d_overlay_vehicle
42+
namespace autoware_overlay_rviz_plugin
4343
{
4444
class SignalDisplay : public rviz_common::Display
4545
{
@@ -70,7 +70,7 @@ private Q_SLOTS:
7070

7171
private:
7272
std::mutex mutex_;
73-
awf_2d_overlay_vehicle::OverlayObject::SharedPtr overlay_;
73+
autoware_overlay_rviz_plugin::OverlayObject::SharedPtr overlay_;
7474
rviz_common::properties::IntProperty * property_width_;
7575
rviz_common::properties::IntProperty * property_height_;
7676
rviz_common::properties::IntProperty * property_left_;
@@ -84,7 +84,8 @@ private Q_SLOTS:
8484
std::unique_ptr<rviz_common::properties::RosTopicProperty> traffic_topic_property_;
8585
std::unique_ptr<rviz_common::properties::RosTopicProperty> speed_limit_topic_property_;
8686

87-
void drawBackground(QPainter & painter, const QRectF & backgroundRect);
87+
void drawHorizontalRoundedRectangle(QPainter & painter, const QRectF & backgroundRect);
88+
void drawVerticalRoundedRectangle(QPainter & painter, const QRectF & backgroundRect);
8889
void setupRosSubscriptions();
8990

9091
std::unique_ptr<SteeringWheelDisplay> steering_wheel_display_;
@@ -119,6 +120,6 @@ private Q_SLOTS:
119120
const autoware_perception_msgs::msg::TrafficSignalArray::ConstSharedPtr msg);
120121
void drawWidget(QImage & hud);
121122
};
122-
} // namespace awf_2d_overlay_vehicle
123+
} // namespace autoware_overlay_rviz_plugin
123124

124125
#endif // SIGNAL_DISPLAY_HPP_

common/awf_vehicle_rviz_plugin/awf_2d_overlay_vehicle/include/speed_display.hpp common/autoware_overlay_rviz_plugin/autoware_overlay_rviz_plugin/include/speed_display.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
#include <OgreMaterial.h>
3030
#include <OgreTexture.h>
3131

32-
namespace awf_2d_overlay_vehicle
32+
namespace autoware_overlay_rviz_plugin
3333
{
3434

3535
class SpeedDisplay
@@ -44,6 +44,6 @@ class SpeedDisplay
4444
QColor gray = QColor(194, 194, 194);
4545
};
4646

47-
} // namespace awf_2d_overlay_vehicle
47+
} // namespace autoware_overlay_rviz_plugin
4848

4949
#endif // SPEED_DISPLAY_HPP_

common/awf_vehicle_rviz_plugin/awf_2d_overlay_vehicle/include/speed_limit_display.hpp common/autoware_overlay_rviz_plugin/autoware_overlay_rviz_plugin/include/speed_limit_display.hpp

+6-3
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,14 @@
2323
#include <rviz_common/properties/int_property.hpp>
2424
#include <rviz_common/ros_topic_display.hpp>
2525

26+
#include "autoware_auto_vehicle_msgs/msg/velocity_report.hpp"
2627
#include <tier4_planning_msgs/msg/velocity_limit.hpp>
2728

2829
#include <OgreColourValue.h>
2930
#include <OgreMaterial.h>
3031
#include <OgreTexture.h>
3132

32-
namespace awf_2d_overlay_vehicle
33+
namespace autoware_overlay_rviz_plugin
3334
{
3435

3536
class SpeedLimitDisplay
@@ -38,12 +39,14 @@ class SpeedLimitDisplay
3839
SpeedLimitDisplay();
3940
void drawSpeedLimitIndicator(QPainter & painter, const QRectF & backgroundRect);
4041
void updateSpeedLimitData(const tier4_planning_msgs::msg::VelocityLimit::ConstSharedPtr msg);
42+
void updateSpeedData(const autoware_auto_vehicle_msgs::msg::VelocityReport::ConstSharedPtr & msg);
4143

4244
private:
43-
float current_limit; // Internal variable to store current gear
45+
float current_limit; // Internal variable to store current gear
46+
float current_speed_; // Internal variable to store current speed
4447
QColor gray = QColor(194, 194, 194);
4548
};
4649

47-
} // namespace awf_2d_overlay_vehicle
50+
} // namespace autoware_overlay_rviz_plugin
4851

4952
#endif // SPEED_LIMIT_DISPLAY_HPP_

common/awf_vehicle_rviz_plugin/awf_2d_overlay_vehicle/include/steering_wheel_display.hpp common/autoware_overlay_rviz_plugin/autoware_overlay_rviz_plugin/include/steering_wheel_display.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
#include <OgreMaterial.h>
3030
#include <OgreTexture.h>
3131

32-
namespace awf_2d_overlay_vehicle
32+
namespace autoware_overlay_rviz_plugin
3333
{
3434

3535
class SteeringWheelDisplay
@@ -49,6 +49,6 @@ class SteeringWheelDisplay
4949
QImage coloredImage(const QImage & source, const QColor & color);
5050
};
5151

52-
} // namespace awf_2d_overlay_vehicle
52+
} // namespace autoware_overlay_rviz_plugin
5353

5454
#endif // STEERING_WHEEL_DISPLAY_HPP_

common/awf_vehicle_rviz_plugin/awf_2d_overlay_vehicle/include/traffic_display.hpp common/autoware_overlay_rviz_plugin/autoware_overlay_rviz_plugin/include/traffic_display.hpp

+7-10
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
#include <OgreMaterial.h>
3232
#include <OgreTexture.h>
3333

34-
namespace awf_2d_overlay_vehicle
34+
namespace autoware_overlay_rviz_plugin
3535
{
3636

3737
class TrafficDisplay
@@ -45,18 +45,15 @@ class TrafficDisplay
4545

4646
private:
4747
QImage traffic_light_image_;
48-
// yellow #CFC353
49-
QColor yellow = QColor(207, 195, 83);
50-
// red #CF5353
51-
QColor red = QColor(207, 83, 83);
52-
// green #53CF5F
53-
QColor green = QColor(83, 207, 95);
54-
// gray #C2C2C2
55-
QColor gray = QColor(194, 194, 194);
48+
49+
const QColor tl_red_;
50+
const QColor tl_yellow_;
51+
const QColor tl_green_;
52+
const QColor tl_gray_;
5653

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

60-
} // namespace awf_2d_overlay_vehicle
57+
} // namespace autoware_overlay_rviz_plugin
6158

6259
#endif // TRAFFIC_DISPLAY_HPP_

common/awf_vehicle_rviz_plugin/awf_2d_overlay_vehicle/include/turn_signals_display.hpp common/autoware_overlay_rviz_plugin/autoware_overlay_rviz_plugin/include/turn_signals_display.hpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
#include <chrono>
3434

35-
namespace awf_2d_overlay_vehicle
35+
namespace autoware_overlay_rviz_plugin
3636
{
3737

3838
class TurnSignalsDisplay
@@ -47,7 +47,7 @@ class TurnSignalsDisplay
4747

4848
private:
4949
QImage arrowImage;
50-
QColor gray = QColor(194, 194, 194);
50+
QColor gray = QColor(46, 46, 46);
5151

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

61-
} // namespace awf_2d_overlay_vehicle
61+
} // namespace autoware_overlay_rviz_plugin
6262

6363
#endif // TURN_SIGNALS_DISPLAY_HPP_

0 commit comments

Comments
 (0)