Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit d306954

Browse files
authoredMay 14, 2024··
Merge branch 'main' into feat/downsapmple_perception_input_pointclouds
2 parents 5eb4e02 + b6bd750 commit d306954

File tree

112 files changed

+3446
-1654
lines changed

Some content is hidden

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

112 files changed

+3446
-1654
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
cmake_minimum_required(VERSION 3.8)
2+
project(autoware_mission_details_overlay_rviz_plugin)
3+
4+
find_package(ament_cmake_auto REQUIRED)
5+
ament_auto_find_build_dependencies()
6+
7+
set(
8+
headers_to_moc
9+
include/mission_details_display.hpp
10+
)
11+
12+
set(
13+
headers_to_not_moc
14+
include/remaining_distance_time_display.hpp
15+
)
16+
17+
foreach(header "${headers_to_moc}")
18+
qt5_wrap_cpp(display_moc_files "${header}")
19+
endforeach()
20+
21+
set(
22+
display_source_files
23+
src/overlay_utils.cpp
24+
src/mission_details_display.cpp
25+
src/remaining_distance_time_display.cpp
26+
)
27+
28+
add_library(
29+
${PROJECT_NAME} SHARED
30+
${display_moc_files}
31+
${headers_to_not_moc}
32+
${display_source_files}
33+
)
34+
35+
set_property(TARGET ${PROJECT_NAME} PROPERTY CXX_STANDARD 17)
36+
target_compile_options(${PROJECT_NAME} PRIVATE -Wall -Wextra -Wpedantic)
37+
38+
target_include_directories(
39+
${PROJECT_NAME} PUBLIC
40+
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
41+
$<INSTALL_INTERFACE:include>
42+
${Qt5Widgets_INCLUDE_DIRS}
43+
${OpenCV_INCLUDE_DIRS}
44+
)
45+
46+
target_link_libraries(
47+
${PROJECT_NAME} PUBLIC
48+
rviz_ogre_vendor::OgreMain
49+
rviz_ogre_vendor::OgreOverlay
50+
)
51+
52+
target_compile_definitions(${PROJECT_NAME} PRIVATE "${PROJECT_NAME}_BUILDING_LIBRARY")
53+
54+
# prevent pluginlib from using boost
55+
target_compile_definitions(${PROJECT_NAME} PUBLIC "PLUGINLIB__DISABLE_BOOST_FUNCTIONS")
56+
57+
pluginlib_export_plugin_description_file(rviz_common plugins_description.xml)
58+
59+
ament_target_dependencies(
60+
${PROJECT_NAME}
61+
PUBLIC
62+
rviz_common
63+
rviz_rendering
64+
autoware_internal_msgs
65+
)
66+
67+
ament_export_include_directories(include)
68+
ament_export_targets(${PROJECT_NAME} HAS_LIBRARY_TARGET)
69+
ament_export_dependencies(
70+
rviz_common
71+
rviz_ogre_vendor
72+
)
73+
74+
if(BUILD_TESTING)
75+
find_package(ament_lint_auto REQUIRED)
76+
ament_lint_auto_find_test_dependencies()
77+
endif()
78+
79+
install(
80+
TARGETS ${PROJECT_NAME}
81+
EXPORT ${PROJECT_NAME}
82+
ARCHIVE DESTINATION lib
83+
LIBRARY DESTINATION lib
84+
RUNTIME DESTINATION bin
85+
INCLUDES DESTINATION include
86+
)
87+
88+
install(
89+
DIRECTORY include/
90+
DESTINATION include
91+
)
92+
93+
install(
94+
TARGETS
95+
DESTINATION lib/${PROJECT_NAME}
96+
)
97+
98+
# Copy the assets directory to the installation directory
99+
install(
100+
DIRECTORY assets/
101+
DESTINATION share/${PROJECT_NAME}/assets
102+
)
103+
104+
add_definitions(-DQT_NO_KEYWORDS)
105+
106+
ament_package(
107+
CONFIG_EXTRAS "autoware_mission_details_overlay_rviz_plugin-extras.cmake"
108+
)
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.

0 commit comments

Comments
 (0)
Please sign in to comment.