forked from autowarefoundation/autoware.universe
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Port traffic light visualization (autowarefoundation#121)
* Port Signed-off-by: Servando German Serrano <servando.german.serrano@linaro.org> * Fix package.xml Signed-off-by: Servando German Serrano <servando.german.serrano@linaro.org> * Removed unused mutex Signed-off-by: Servando German Serrano <servando.german.serrano@linaro.org>
- Loading branch information
1 parent
aca4a60
commit f326b4f
Showing
8 changed files
with
89 additions
and
217 deletions.
There are no files selected for viewing
78 changes: 17 additions & 61 deletions
78
perception/util/visualizer/traffic_light_visualization/CMakeLists.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,85 +1,41 @@ | ||
cmake_minimum_required(VERSION 3.0.2) | ||
cmake_minimum_required(VERSION 3.5) | ||
project(traffic_light_visualization) | ||
|
||
add_compile_options(-std=c++14) | ||
if(NOT CMAKE_CXX_STANDARD) | ||
set(CMAKE_CXX_STANDARD 14) | ||
endif() | ||
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") | ||
add_compile_options(-Wall -Wextra -Wpedantic) | ||
add_compile_options(-Wno-unused-parameter) | ||
endif() | ||
|
||
find_package(catkin REQUIRED COMPONENTS | ||
autoware_perception_msgs | ||
cv_bridge | ||
image_transport | ||
message_filters | ||
roscpp | ||
sensor_msgs | ||
nodelet | ||
) | ||
find_package(ament_cmake_auto REQUIRED) | ||
ament_auto_find_build_dependencies() | ||
|
||
find_package(OpenCV REQUIRED) | ||
|
||
|
||
catkin_package( | ||
CATKIN_DEPENDS | ||
) | ||
|
||
include_directories( | ||
include | ||
${catkin_INCLUDE_DIRS} | ||
${OpenCV_INCLUDE_DIRS} | ||
) | ||
|
||
########### | ||
## Build ## | ||
########### | ||
|
||
add_library(traffic_light_roi_visualizer_nodelet SHARED | ||
ament_auto_add_library(traffic_light_roi_visualizer_nodelet SHARED | ||
src/nodelet.cpp | ||
) | ||
|
||
add_dependencies(traffic_light_roi_visualizer_nodelet | ||
${${PROJECT_NAME}_EXPORTED_TARGETS} | ||
${catkin_EXPORTED_TARGETS} | ||
) | ||
|
||
target_link_libraries(traffic_light_roi_visualizer_nodelet | ||
${catkin_LIBRARIES} | ||
${OpenCV_LIBRARIES} | ||
) | ||
|
||
add_executable(traffic_light_roi_visualizer_node | ||
src/node.cpp | ||
) | ||
|
||
add_dependencies(traffic_light_roi_visualizer_node | ||
${${PROJECT_NAME}_EXPORTED_TARGETS} | ||
${catkin_EXPORTED_TARGETS} | ||
) | ||
|
||
target_link_libraries(traffic_light_roi_visualizer_node | ||
traffic_light_roi_visualizer_nodelet | ||
${catkin_LIBRARIES} | ||
${OpenCV_LIBRARIES} | ||
rclcpp_components_register_node(traffic_light_roi_visualizer_nodelet | ||
PLUGIN "traffic_light::TrafficLightRoiVisualizerNodelet" | ||
EXECUTABLE traffic_light_visualization_node | ||
) | ||
|
||
############# | ||
## Install ## | ||
############# | ||
|
||
install( | ||
TARGETS | ||
traffic_light_roi_visualizer_node | ||
traffic_light_roi_visualizer_nodelet | ||
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION} | ||
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION} | ||
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION} | ||
) | ||
|
||
install( | ||
FILES | ||
traffic_light_roi_visualizer.xml | ||
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION} | ||
) | ||
|
||
install( | ||
DIRECTORY | ||
launch | ||
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION} | ||
ament_auto_package( | ||
INSTALL_TO_SHARE | ||
launch | ||
) |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 0 additions & 32 deletions
32
perception/util/visualizer/traffic_light_visualization/src/node.cpp
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.