Skip to content

Commit

Permalink
feat: add awviz as executable
Browse files Browse the repository at this point in the history
Signed-off-by: ktro2828 <[email protected]>
  • Loading branch information
ktro2828 committed Jul 28, 2024
1 parent 756f353 commit 964b7e5
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 1,084 deletions.
34 changes: 9 additions & 25 deletions awviz/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,8 @@ endif()
find_package(ament_cmake_auto REQUIRED)
ament_auto_find_build_dependencies()

# download rerun
include(FetchContent)
FetchContent_Declare(rerun_sdk URL https://github.com/rerun-io/rerun/releases/latest/download/rerun_cpp_sdk.zip)
FetchContent_MakeAvailable(rerun_sdk)

# Ensure rerun_sdk is compiled with -fPIC
set_target_properties(rerun_sdk PROPERTIES POSITION_INDEPENDENT_CODE ON)

# setup targets
file(GLOB SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp)
ament_auto_add_library(${PROJECT_NAME} SHARED ${SOURCES})

# setup dependencies
target_include_directories(${PROJECT_NAME} PUBLIC include)
target_link_libraries(${PROJECT_NAME} ${OpenCV_LIBS} rerun_sdk)
ament_target_dependencies(${PROJECT_NAME} rclcpp rclcpp_components sensor_msgs cv_bridge tf2_ros)

rclcpp_components_register_node(${PROJECT_NAME}
PLUGIN "awviz::RerunLoggerNode"
EXECUTABLE ${PROJECT_NAME}_exec
)
# executable
add_executable(${PROJECT_NAME} src/main.cpp)

if(BUILD_TESTING)
find_package(ament_lint_auto REQUIRED)
Expand All @@ -38,8 +19,11 @@ if(BUILD_TESTING)
ament_lint_auto_find_test_dependencies()
endif()

ament_auto_package(
INSTALL_TO_SHARE
launch
config
# Install executable
install(TARGETS
${PROJECT_NAME}
DESTINATION bin
DESTINATION lib/${PROJECT_NAME}
)

ament_auto_package()
65 changes: 0 additions & 65 deletions awviz/config/awviz.param.yaml

This file was deleted.

105 changes: 0 additions & 105 deletions awviz/include/awviz/rerun_ros_interface.hpp

This file was deleted.

143 changes: 0 additions & 143 deletions awviz/include/awviz/topic_option.hpp

This file was deleted.

Loading

0 comments on commit 964b7e5

Please sign in to comment.