Skip to content

Commit 07119ab

Browse files
authored
Merge branch 'main' into refactor/lidar_centerpoint-add-training-docs
2 parents 018f222 + e329fda commit 07119ab

File tree

881 files changed

+34912
-29471
lines changed

Some content is hidden

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

881 files changed

+34912
-29471
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

+34-33
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/spell-check-differential.yaml

-16
This file was deleted.

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>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2+
Changelog for package rviz_2d_overlay_msgs
3+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4+
5+
1.3.0 (2023-05-18)
6+
------------------
7+
* Removed old position message fields
8+
* Contributors: Dominik, Jonas Otto
9+
10+
1.2.1 (2022-09-30)
11+
------------------
12+
13+
1.2.0 (2022-09-27)
14+
------------------
15+
* Rename package from overlay_rviz_msgs to rviz_2d_overlay_msgs
16+
* Contributors: Jonas Otto
17+
18+
1.1.0 (2022-09-11)
19+
------------------
20+
21+
1.0.0 (2022-08-30)
22+
------------------
23+
* Create OverlayText message (currently same as jsk_rviz_plugins)
24+
* Contributors: Jonas Otto, Dominik Authaler
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
cmake_minimum_required(VERSION 3.5)
2+
project(autoware_overlay_msgs)
3+
4+
if (NOT CMAKE_CXX_STANDARD)
5+
set(CMAKE_CXX_STANDARD 17)
6+
endif ()
7+
8+
9+
# find dependencies
10+
find_package(ament_cmake REQUIRED)
11+
find_package(rosidl_default_generators REQUIRED)
12+
find_package(std_msgs REQUIRED)
13+
rosidl_generate_interfaces(${PROJECT_NAME}
14+
"msg/OverlayText.msg"
15+
DEPENDENCIES
16+
std_msgs
17+
)
18+
19+
ament_package()
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
uint8 ADD = 0
2+
uint8 DELETE = 1
3+
4+
# constants for the horizontal and vertical alignment
5+
uint8 LEFT = 0
6+
uint8 RIGHT = 1
7+
uint8 CENTER = 2
8+
uint8 TOP = 3
9+
uint8 BOTTOM = 4
10+
11+
uint8 action
12+
13+
int32 width
14+
int32 height
15+
# Position: Positive values move the overlay towards the center of the window,
16+
# for center alignment positive values move the overlay towards the bottom right
17+
int32 horizontal_distance # Horizontal distance from left/right border or center, depending on alignment
18+
int32 vertical_distance # Vertical distance between from top/bottom border or center, depending on alignment
19+
20+
# Alignment of the overlay withing RVIZ
21+
uint8 horizontal_alignment # one of LEFT, CENTER, RIGHT
22+
uint8 vertical_alignment # one of TOP, CENTER, BOTTOM
23+
24+
std_msgs/ColorRGBA bg_color
25+
26+
int32 line_width
27+
float32 text_size
28+
string font
29+
std_msgs/ColorRGBA fg_color
30+
31+
string text
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?xml version="1.0"?>
2+
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
3+
<package format="3">
4+
<name>autoware_overlay_msgs</name>
5+
<version>1.3.0</version>
6+
<description>Messages describing 2D overlays for RVIZ, extracted/derived from the jsk_visualization package.</description>
7+
<maintainer email="team-spatzenhirn@uni-ulm.de">Team Spatzenhirn</maintainer>
8+
<license>BSD-3-Clause</license>
9+
10+
<buildtool_depend>ament_cmake</buildtool_depend>
11+
<buildtool_depend>rosidl_default_generators</buildtool_depend>
12+
13+
<depend>autoware_auto_vehicle_msgs</depend>
14+
<depend>autoware_perception_msgs</depend>
15+
<depend>std_msgs</depend>
16+
<depend>unique_identifier_msgs</depend>
17+
<exec_depend>rosidl_default_runtime</exec_depend>
18+
19+
<member_of_group>rosidl_interface_packages</member_of_group>
20+
21+
<export>
22+
<build_type>ament_cmake</build_type>
23+
</export>
24+
</package>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,140 @@
1+
cmake_minimum_required(VERSION 3.8)
2+
project(autoware_overlay_rviz_plugin)
3+
4+
# find dependencies
5+
find_package(ament_cmake_auto REQUIRED)
6+
find_package(ament_cmake REQUIRED)
7+
find_package(autoware_auto_vehicle_msgs REQUIRED)
8+
find_package(tier4_planning_msgs REQUIRED)
9+
find_package(autoware_perception_msgs REQUIRED)
10+
ament_auto_find_build_dependencies()
11+
12+
find_package(autoware_overlay_msgs REQUIRED)
13+
14+
find_package(rviz_common REQUIRED)
15+
find_package(rviz_rendering REQUIRED)
16+
find_package(rviz_ogre_vendor REQUIRED)
17+
find_package(std_msgs REQUIRED)
18+
19+
set(
20+
headers_to_moc
21+
include/overlay_text_display.hpp
22+
include/signal_display.hpp
23+
24+
)
25+
26+
set(
27+
headers_to_not_moc
28+
include/steering_wheel_display.hpp
29+
include/gear_display.hpp
30+
include/speed_display.hpp
31+
include/turn_signals_display.hpp
32+
include/traffic_display.hpp
33+
include/speed_limit_display.hpp
34+
)
35+
36+
37+
38+
foreach(header "${headers_to_moc}")
39+
qt5_wrap_cpp(display_moc_files "${header}")
40+
endforeach()
41+
42+
set(
43+
display_source_files
44+
src/overlay_text_display.cpp
45+
src/overlay_utils.cpp
46+
src/signal_display.cpp
47+
src/steering_wheel_display.cpp
48+
src/gear_display.cpp
49+
src/speed_display.cpp
50+
src/turn_signals_display.cpp
51+
src/traffic_display.cpp
52+
src/speed_limit_display.cpp
53+
54+
)
55+
56+
add_library(
57+
${PROJECT_NAME} SHARED
58+
${display_moc_files}
59+
${headers_to_not_moc}
60+
${display_source_files}
61+
)
62+
63+
set_property(TARGET ${PROJECT_NAME} PROPERTY CXX_STANDARD 17)
64+
target_compile_options(${PROJECT_NAME} PRIVATE -Wall -Wextra -Wpedantic)
65+
66+
target_include_directories(
67+
${PROJECT_NAME} PUBLIC
68+
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
69+
$<INSTALL_INTERFACE:include>
70+
${Qt5Widgets_INCLUDE_DIRS}
71+
${OpenCV_INCLUDE_DIRS}
72+
)
73+
74+
target_link_libraries(
75+
${PROJECT_NAME} PUBLIC
76+
rviz_ogre_vendor::OgreMain
77+
rviz_ogre_vendor::OgreOverlay
78+
)
79+
80+
81+
target_compile_definitions(${PROJECT_NAME} PRIVATE "${PROJECT_NAME}_BUILDING_LIBRARY")
82+
83+
# prevent pluginlib from using boost
84+
target_compile_definitions(${PROJECT_NAME} PUBLIC "PLUGINLIB__DISABLE_BOOST_FUNCTIONS")
85+
86+
pluginlib_export_plugin_description_file(rviz_common plugins_description.xml)
87+
88+
ament_target_dependencies(
89+
${PROJECT_NAME}
90+
PUBLIC
91+
rviz_common
92+
rviz_rendering
93+
autoware_overlay_msgs
94+
autoware_auto_vehicle_msgs
95+
tier4_planning_msgs
96+
autoware_perception_msgs
97+
)
98+
99+
ament_export_include_directories(include)
100+
ament_export_targets(${PROJECT_NAME} HAS_LIBRARY_TARGET)
101+
ament_export_dependencies(
102+
rviz_common
103+
rviz_ogre_vendor
104+
)
105+
106+
if(BUILD_TESTING)
107+
find_package(ament_lint_auto REQUIRED)
108+
ament_lint_auto_find_test_dependencies()
109+
endif()
110+
111+
install(
112+
TARGETS ${PROJECT_NAME}
113+
EXPORT ${PROJECT_NAME}
114+
ARCHIVE DESTINATION lib
115+
LIBRARY DESTINATION lib
116+
RUNTIME DESTINATION bin
117+
INCLUDES DESTINATION include
118+
)
119+
120+
install(
121+
DIRECTORY include/
122+
DESTINATION include
123+
)
124+
125+
install(
126+
TARGETS
127+
DESTINATION lib/${PROJECT_NAME}
128+
)
129+
130+
# Copy the assets directory to the installation directory
131+
install(
132+
DIRECTORY assets/
133+
DESTINATION share/${PROJECT_NAME}/assets
134+
)
135+
136+
add_definitions(-DQT_NO_KEYWORDS)
137+
138+
ament_package(
139+
CONFIG_EXTRAS "autoware_overlay_rviz_plugin-extras.cmake"
140+
)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
Copyright (c) 2022, Team Spatzenhirn
2+
Copyright (c) 2014, JSK Lab
3+
4+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
5+
6+
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
7+
8+
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
9+
10+
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
11+
12+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
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)

0 commit comments

Comments
 (0)