Skip to content

Commit

Permalink
feat: use new srv to capture screen shot and movie (#121)
Browse files Browse the repository at this point in the history
* feat: add new type srv

Signed-off-by: satoshi-ota <[email protected]>

* feat: use new type srv

Signed-off-by: satoshi-ota <[email protected]>

* fix: remove unused process

Signed-off-by: satoshi-ota <[email protected]>

* fix: don't apply linter check for idl files

Signed-off-by: satoshi-ota <[email protected]>

---------

Signed-off-by: satoshi-ota <[email protected]>
  • Loading branch information
satoshi-ota authored Oct 8, 2024
1 parent 2185b71 commit 990ac48
Show file tree
Hide file tree
Showing 6 changed files with 277 additions and 203 deletions.
19 changes: 16 additions & 3 deletions common/tier4_screen_capture_rviz_plugin/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,30 @@ include_directories(
${OpenCV_INCLUDE_DIRS}
)

ament_auto_add_library(${PROJECT_NAME} SHARED
ament_auto_find_build_dependencies()
rosidl_generate_interfaces(${PROJECT_NAME}
"srv/Capture.srv"
DEPENDENCIES
std_msgs
)

ament_auto_add_library(${PROJECT_NAME}_lib SHARED
src/screen_capture_panel.hpp
src/screen_capture_panel.cpp
)
target_link_libraries(${PROJECT_NAME}

rosidl_get_typesupport_target(
cpp_typesupport_target ${PROJECT_NAME} "rosidl_typesupport_cpp")
target_link_libraries(${PROJECT_NAME}_lib "${cpp_typesupport_target}")

target_link_libraries(${PROJECT_NAME}_lib
${QT_LIBRARIES}
${OpenCV_LIBRARIES}
)

pluginlib_export_plugin_description_file(rviz_common plugins/plugin_description.xml)

ament_auto_package(
INSTALL_TO_SHARE
plugins
plugins
)
6 changes: 6 additions & 0 deletions common/tier4_screen_capture_rviz_plugin/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
<buildtool_depend>ament_cmake_auto</buildtool_depend>
<buildtool_depend>autoware_cmake</buildtool_depend>

<build_depend>rosidl_default_generators</build_depend>

<depend>libopencv-dev</depend>
<depend>libqt5-core</depend>
<depend>libqt5-gui</depend>
Expand All @@ -24,6 +26,10 @@
<test_depend>ament_lint_auto</test_depend>
<test_depend>autoware_lint_common</test_depend>

<exec_depend>rosidl_default_runtime</exec_depend>

<member_of_group>rosidl_interface_packages</member_of_group>

<export>
<build_type>ament_cmake</build_type>
<rviz plugin="${prefix}/plugins/plugin_description.xml"/>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<library path="tier4_screen_capture_rviz_plugin">
<library path="tier4_screen_capture_rviz_plugin_lib">

<class
type="AutowareScreenCapturePanel"
name="rviz_plugins/AutowareScreenCapturePanel"
type="rviz_plugins::AutowareScreenCapturePanel"
base_class_type="rviz_common::Panel">
<description>AutowareScreenCapturePanel</description>
</class>
Expand Down
Loading

0 comments on commit 990ac48

Please sign in to comment.