BUILD 3.6 KB
Newer Older
1
load("@rules_cc//cc:defs.bzl", "cc_library", "cc_test")
Z
zhuweicheng 已提交
2 3 4 5 6 7 8 9 10 11 12 13 14 15
load("//tools:cpplint.bzl", "cpplint")

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

cc_library(
    name = "chi_squared_cdf",
    hdrs = [
        "chi_squared_cdf_1_0.0500_0.999900.h",
        "chi_squared_cdf_2_0.0500_0.999900.h",
    ],
)

cc_library(
    name = "hm_tracks_objects_match",
16 17
    srcs = ["hm_tracks_objects_match.cc"],
    hdrs = ["hm_tracks_objects_match.h"],
Z
zhuweicheng 已提交
18 19
    deps = [
        ":track_object_distance",
A
Aaron Xiao 已提交
20
        "//modules/perception/common/graph:gated_hungarian_bigraph_matcher",
Z
zhuweicheng 已提交
21 22
        "//modules/perception/common/graph:secure_matrix",
        "//modules/perception/fusion/base:scene",
A
Aaron Xiao 已提交
23
        "//modules/perception/fusion/lib/interface",
Z
zhuweicheng 已提交
24 25 26 27 28
    ],
)

cc_library(
    name = "probabilities",
29 30
    srcs = ["probabilities.cc"],
    hdrs = ["probabilities.h"],
Z
zhuweicheng 已提交
31 32 33 34
)

cc_library(
    name = "projection_cache",
35
    hdrs = ["projection_cache.h"],
Z
zhuweicheng 已提交
36 37 38 39
)

cc_library(
    name = "track_object_distance",
40 41
    srcs = ["track_object_distance.cc"],
    hdrs = ["track_object_distance.h"],
Z
zhuweicheng 已提交
42
    deps = [
A
Aaron Xiao 已提交
43 44 45 46 47 48
        ":chi_squared_cdf",
        ":probabilities",
        ":projection_cache",
        ":track_object_similarity",
        "//modules/perception/base:base_type",
        "//modules/perception/base:camera",
A
Aaron Xiao 已提交
49
        "//modules/perception/base:point_cloud",
A
Aaron Xiao 已提交
50
        "//modules/perception/common/geometry:camera_homography",
A
Aaron Xiao 已提交
51
        "//modules/perception/common/sensor_manager",
Z
zhuweicheng 已提交
52 53
        "//modules/perception/fusion/base:fusion_log",
        "//modules/perception/fusion/base:sensor",
A
Aaron Xiao 已提交
54
        "//modules/perception/fusion/base:sensor_data_manager",
Z
zhuweicheng 已提交
55 56 57 58 59 60 61
        "//modules/perception/fusion/base:track",
        "//modules/perception/fusion/common:camera_util",
    ],
)

cc_library(
    name = "track_object_similarity",
62 63
    srcs = ["track_object_similarity.cc"],
    hdrs = ["track_object_similarity.h"],
Z
zhuweicheng 已提交
64 65
    deps = [
        ":chi_squared_cdf",
A
Aaron Xiao 已提交
66 67
        ":probabilities",
        ":projection_cache",
Z
zhuweicheng 已提交
68 69
        "//modules/perception/fusion/base:fusion_log",
        "//modules/perception/fusion/base:sensor",
A
Aaron Xiao 已提交
70
        "//modules/perception/fusion/common:camera_util",
Z
zhuweicheng 已提交
71 72 73
    ],
)

Z
zhuweicheng 已提交
74 75 76
cc_test(
    name = "hm_data_association_test",
    size = "small",
77
    srcs = ["hm_data_association_test.cc"],
Z
zhuweicheng 已提交
78
    deps = [
A
Aaron Xiao 已提交
79 80 81 82
        ":probabilities",
        ":projection_cache",
        ":track_object_distance",
        ":track_object_similarity",
Z
zhuweicheng 已提交
83
        "//modules/perception/base:frame",
A
Aaron Xiao 已提交
84
        "//modules/perception/common/sensor_manager",
Z
zhuweicheng 已提交
85 86
        "//modules/perception/fusion/base:sensor",
        "//modules/perception/fusion/base:track",
87
        "@com_google_googletest//:gtest_main",
Z
zhuweicheng 已提交
88 89 90 91 92 93
    ],
)

cc_test(
    name = "track_object_distance_test",
    size = "small",
94
    srcs = ["track_object_distance_test.cc"],
Z
zhuweicheng 已提交
95
    deps = [
A
Aaron Xiao 已提交
96 97 98
        ":projection_cache",
        ":track_object_distance",
        ":track_object_similarity",
Z
zhuweicheng 已提交
99 100
        "//modules/perception/base:frame",
        "//modules/perception/base:point_cloud",
A
Aaron Xiao 已提交
101
        "//modules/perception/common/sensor_manager",
Z
zhuweicheng 已提交
102 103
        "//modules/perception/fusion/base:sensor",
        "//modules/perception/fusion/base:track",
104
        "@com_google_googletest//:gtest_main",
Z
zhuweicheng 已提交
105 106 107 108 109 110
    ],
)

cc_test(
    name = "track_object_test",
    size = "small",
111
    srcs = ["track_object_test.cc"],
Z
zhuweicheng 已提交
112
    deps = [
A
Aaron Xiao 已提交
113
        ":hm_tracks_objects_match",
Z
zhuweicheng 已提交
114 115
        "//modules/perception/base:frame",
        "//modules/perception/base:point_cloud",
A
Aaron Xiao 已提交
116
        "//modules/perception/common/sensor_manager",
Z
zhuweicheng 已提交
117 118
        "//modules/perception/fusion/base:sensor",
        "//modules/perception/fusion/base:track",
119
        "@com_google_googletest//:gtest_main",
Z
zhuweicheng 已提交
120 121 122
    ],
)

Z
zhuweicheng 已提交
123
cpplint()