BUILD 1.9 KB
Newer Older
1
load("@rules_cc//cc:defs.bzl", "cc_library", "cc_test")
2 3 4 5 6 7
load("//tools:cpplint.bzl", "cpplint")

package(default_visibility = ["//visibility:public"])

cc_library(
    name = "ndt_lidar_locator",
8
    srcs = ["lidar_locator_ndt.cc"],
9 10 11 12 13 14 15 16
    hdrs = [
        "lidar_locator_ndt.h",
        "ndt_solver.h",
        "ndt_solver.hpp",
        "ndt_voxel_grid_covariance.h",
        "ndt_voxel_grid_covariance.hpp",
    ],
    deps = [
X
 
Xiangquan Xiao 已提交
17
        "//cyber",
18 19
        "//modules/common/math",
        "//modules/common/monitor_log",
20
        "//modules/common/time",
21 22
        "//modules/localization/common:localization_common",
        "//modules/localization/msf/common/util:localization_msf_common_util",
23 24
        "//modules/localization/msf/local_pyramid_map/ndt_map:localization_pyramid_map_ndt_map",
        "//modules/localization/msf/local_pyramid_map/ndt_map:localization_pyramid_map_ndt_map_pool",
25
        "@com_github_jbeder_yaml_cpp//:yaml-cpp",
26
        "@com_google_glog//:glog",
27 28
        "@eigen",
        "@pcl",
29 30 31 32 33 34 35
    ],
)

filegroup(
    name = "ndt_lidar_locator_test_data",
    srcs = glob([
        "ndt/test_data/**",
36
    ]),
37 38 39 40 41 42 43 44 45 46 47
)

cc_test(
    name = "ndt_lidar_locator_test",
    size = "small",
    timeout = "short",
    srcs = ["lidar_locator_ndt_test.cc"],
    data = [":ndt_lidar_locator_test_data"],
    deps = [
        "//cyber",
        "//modules/localization/msf/common/io:localization_msf_common_io",
48
        "//modules/localization/ndt/ndt_locator:ndt_lidar_locator",
49
        "@com_google_googletest//:gtest_main",
50 51 52 53 54 55 56 57 58
    ],
)

cc_test(
    name = "ndt_solver_test",
    size = "small",
    timeout = "short",
    srcs = ["ndt_solver_test.cc"],
    data = [":ndt_lidar_locator_test_data"],
59 60 61
    linkopts = [
        "-llz4",
    ],
62 63 64
    deps = [
        "//cyber",
        "//modules/localization/msf/common/io:localization_msf_common_io",
65
        "//modules/localization/ndt/ndt_locator:ndt_lidar_locator",
66
        "@com_google_googletest//:gtest_main",
67 68 69 70
    ],
)

cpplint()