Skip to content

Commit

Permalink
feat(map_tf_generator): accelerate the 'viewer' coordinate calculation (
Browse files Browse the repository at this point in the history
autowarefoundation#890)

* add random point sampling function to quickly calculate the 'viewer' coordinate

Signed-off-by: IshitaTakeshi <ishitah.takeshi@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Kenji Miyake <31987104+kenji-miyake@users.noreply.github.com>
  • Loading branch information
3 people authored and swiftfile committed Mar 16, 2023
1 parent 8146c87 commit e7eeb3e
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions map/map_tf_generator/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,23 @@ rclcpp_components_register_node(vector_map_tf_generator_node
EXECUTABLE vector_map_tf_generator
)

if(BUILD_TESTING)
function(add_testcase filepath)
get_filename_component(filename ${filepath} NAME)
string(REGEX REPLACE ".cpp" "" test_name ${filename})

ament_add_gmock(${test_name} ${filepath})
target_include_directories(${test_name} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include)
ament_target_dependencies(${test_name} ${${PROJECT_NAME}_FOUND_BUILD_DEPENDS})
endfunction()

find_package(ament_lint_auto REQUIRED)
ament_lint_auto_find_test_dependencies()

add_testcase(test/test_uniform_random.cpp)
endif()


if(BUILD_TESTING)
function(add_testcase filepath)
get_filename_component(filename ${filepath} NAME)
Expand Down

0 comments on commit e7eeb3e

Please sign in to comment.