Skip to content

Commit

Permalink
Add lane_detection_tensorrt submodule
Browse files Browse the repository at this point in the history
  • Loading branch information
leungjch committed Mar 11, 2024
1 parent df8715a commit 0211263
Show file tree
Hide file tree
Showing 40 changed files with 6 additions and 7,536 deletions.
2 changes: 1 addition & 1 deletion modules/docker-compose.perception.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ services:
count: 1
capabilities: [gpu]
volumes:
- /mnt/wato-drive2/perception-weights/tensorrt_model/ultra_fast_lane_detection_v2/resource/model/ufldv2_culane_res34_320x1600.onnx:/home/bolty/ament_ws/build/lane_detection/resource/model/ufldv2_culane_res34_320x1600.onnx
- /mnt/wato-drive2/perception-weights/tensorrt_model/ultra_fast_lane_detection_v2/resource/model/ufldv2_culane_res34_320x1600.onnx:/models/ufldv2_culane_res34_320x1600.onnx

tracking:
build:
Expand Down
8 changes: 4 additions & 4 deletions src/perception/lane_detection/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,20 @@ endif()
### TensorRT model ###

# Select build system and set compile options
include(${CMAKE_CURRENT_LIST_DIR}/src/tensorrt_model/common_helper/cmakes/build_setting.cmake)
include(${CMAKE_CURRENT_LIST_DIR}/src/lane_detection_tensorrt/common_helper/cmakes/build_setting.cmake)

add_executable(lane_detection src/lane_detection_node.cpp)

add_subdirectory(./src/tensorrt_model/ultra_fast_lane_detection_v2/image_processor image_processor)
target_include_directories(${ProjectName} PUBLIC ./src/tensorrt_model/ultra_fast_lane_detection_v2/image_processor)
add_subdirectory(./src/lane_detection_tensorrt/ultra_fast_lane_detection_v2/image_processor image_processor)
target_include_directories(${ProjectName} PUBLIC ./src/lane_detection_tensorrt/ultra_fast_lane_detection_v2/image_processor)
target_link_libraries(${ProjectName} ImageProcessor)

find_package(OpenCV REQUIRED)
target_include_directories(${ProjectName} PUBLIC ${OpenCV_INCLUDE_DIRS})
target_link_libraries(${ProjectName} ${OpenCV_LIBS})

# Copy resouce
add_definitions(-DRESOURCE_DIR="${CMAKE_BINARY_DIR}/resource/")
add_definitions(-DRESOURCE_DIR="/models/")

### End of TensorRT model ###

Expand Down
1 change: 1 addition & 0 deletions src/perception/lane_detection/src/lane_detection_tensorrt
Submodule lane_detection_tensorrt added at ae9178

This file was deleted.

Loading

0 comments on commit 0211263

Please sign in to comment.