Skip to content

Commit 086c736

Browse files
committed
feat(rviz_plugin): move peripheral rviz plugin
Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp>
1 parent eb7cf14 commit 086c736

File tree

90 files changed

+6464
-0
lines changed

Some content is hidden

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

90 files changed

+6464
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
cmake_minimum_required(VERSION 3.14)
2+
project(rtc_manager_rviz_plugin)
3+
4+
find_package(autoware_cmake REQUIRED)
5+
autoware_package()
6+
7+
find_package(Qt5 REQUIRED Core Widgets)
8+
set(QT_LIBRARIES Qt5::Widgets)
9+
set(CMAKE_AUTOMOC ON)
10+
set(CMAKE_INCLUDE_CURRENT_DIR ON)
11+
add_definitions(-DQT_NO_KEYWORDS)
12+
13+
ament_auto_add_library(${PROJECT_NAME} SHARED
14+
src/rtc_manager_panel.cpp
15+
)
16+
17+
target_link_libraries(${PROJECT_NAME}
18+
${QT_LIBRARIES}
19+
)
20+
21+
# Export the plugin to be imported by rviz2
22+
pluginlib_export_plugin_description_file(rviz_common plugins/plugin_description.xml)
23+
24+
ament_auto_package(
25+
INSTALL_TO_SHARE
26+
icons
27+
plugins
28+
)
+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# rtc_manager_rviz_plugin
2+
3+
## Purpose
4+
5+
The purpose of this Rviz plugin is
6+
7+
1. To display each content of RTC status.
8+
9+
2. To switch each module of RTC auto mode.
10+
11+
3. To change RTC cooperate commands by button.
12+
13+
![rtc_manager_panel](./images/rtc_manager_panel.png)
14+
15+
## Inputs / Outputs
16+
17+
### Input
18+
19+
| Name | Type | Description |
20+
| ------------------------------ | ------------------------------------------- | --------------------------------------- |
21+
| `/api/external/get/rtc_status` | `tier4_rtc_msgs::msg::CooperateStatusArray` | The statuses of each Cooperate Commands |
22+
23+
### Output
24+
25+
| Name | Type | Description |
26+
| -------------------------------- | ---------------------------------------- | ---------------------------------------------------- |
27+
| `/api/external/set/rtc_commands` | `tier4_rtc_msgs::src::CooperateCommands` | The Cooperate Commands for each planning |
28+
| `/planning/enable_auto_mode/*` | `tier4_rtc_msgs::src::AutoMode` | The Cooperate Commands mode for each planning module |
29+
30+
## HowToUse
31+
32+
1. Start rviz and select panels/Add new panel.
33+
![select_panel](./images/select_panels.png)
34+
35+
2. tier4_state_rviz_plugin/RTCManagerPanel and press OK.
36+
![select_rtc_panel](./images/rtc_selection.png)
Loading
Loading
Loading
Loading
+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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>rtc_manager_rviz_plugin</name>
5+
<version>0.0.0</version>
6+
<description>The rtc manager rviz plugin package</description>
7+
<maintainer email="taiki.tanaka@tier4.jp">Taiki Tanaka</maintainer>
8+
<maintainer email="tomoya.kimura@tier4.jp">Tomoya Kimura</maintainer>
9+
10+
<license>Apache License 2.0</license>
11+
12+
<buildtool_depend>ament_cmake_auto</buildtool_depend>
13+
<buildtool_depend>autoware_cmake</buildtool_depend>
14+
15+
<depend>libqt5-core</depend>
16+
<depend>libqt5-gui</depend>
17+
<depend>libqt5-widgets</depend>
18+
<depend>qtbase5-dev</depend>
19+
<depend>rclcpp</depend>
20+
<depend>rviz_common</depend>
21+
<depend>tier4_external_api_msgs</depend>
22+
<depend>tier4_planning_msgs</depend>
23+
<depend>tier4_rtc_msgs</depend>
24+
<depend>unique_identifier_msgs</depend>
25+
26+
<test_depend>ament_lint_auto</test_depend>
27+
<test_depend>autoware_lint_common</test_depend>
28+
29+
<export>
30+
<build_type>ament_cmake</build_type>
31+
<rviz plugin="${prefix}/plugins/plugin_description.xml"/>
32+
</export>
33+
</package>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<library path="rtc_manager_rviz_plugin">
2+
3+
<class
4+
type="rviz_plugins::RTCManagerPanel"
5+
base_class_type="rviz_common::Panel">
6+
<description>RTCManagerPanel</description>
7+
</class>
8+
9+
</library>

0 commit comments

Comments
 (0)