Skip to content

Commit

Permalink
Merge branch 'main' into work_parameter_estimator
Browse files Browse the repository at this point in the history
  • Loading branch information
KeiNakazato authored Oct 8, 2024
2 parents 18679f3 + 990ac48 commit a45277f
Show file tree
Hide file tree
Showing 13 changed files with 719 additions and 308 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ void ManualController::update()
}
GearCommand gear_cmd;
{
gear_cmd.stamp = raw_node_->get_clock()->now();
const double eps = 0.001;
if (control_cmd.longitudinal.velocity > eps && current_velocity > -eps) {
gear_cmd.command = GearCommand::DRIVE;
Expand Down
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 a45277f

Please sign in to comment.