forked from RobotLocomotion/drake
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD.bazel
113 lines (103 loc) · 2.17 KB
/
BUILD.bazel
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
# -*- python -*-
load(
"@drake//tools/skylark:drake_cc.bzl",
"drake_cc_binary",
"drake_cc_googletest",
"drake_cc_library",
)
load("//tools/install:install_data.bzl", "install_data")
load("//tools/lint:lint.bzl", "add_lint_tests")
drake_cc_library(
name = "frame_cache",
srcs = [
"frame_cache.cc",
],
hdrs = [
"frame_cache.h",
],
deps = [
"//common:essential",
"@eigen",
],
)
drake_cc_library(
name = "sdf_helpers",
srcs = [
"sdf_helpers.cc",
],
hdrs = [
"sdf_helpers.h",
],
deps = [
":frame_cache",
"//attic/multibody:rigid_body_tree",
"//common:essential",
"@eigen",
"@sdformat",
],
)
drake_cc_binary(
name = "double_pendulum_demo",
srcs = [
"double_pendulum_demo.cc",
],
add_test_rule = 1,
data = [
":models",
"//tools:drake_visualizer",
],
test_rule_args = ["--simulation_time=0.01"],
deps = [
":sdf_helpers",
"//attic/multibody:rigid_body_tree",
"//attic/multibody/rigid_body_plant",
"//attic/multibody/rigid_body_plant:drake_visualizer",
"//common:essential",
"//common:find_resource",
"//common:text_logging_gflags",
"//lcm",
"//systems/analysis",
"//systems/framework",
"@sdformat",
],
)
# === test/ ===
drake_cc_library(
name = "rigid_body_types_compare",
testonly = 1,
srcs = [
"test/rigid_body_types_compare.cc",
],
hdrs = [
"test/rigid_body_types_compare.h",
],
deps = [
"//attic/multibody:rigid_body",
"//attic/multibody/shapes",
"@gtest//:without_main",
],
)
drake_cc_googletest(
name = "frame_cache_test",
data = [
":models",
],
deps = [
":frame_cache",
],
)
drake_cc_googletest(
name = "sdf_helpers_test",
data = [
":models",
],
deps = [
":rigid_body_types_compare",
":sdf_helpers",
"//attic/multibody:rigid_body_tree",
"//attic/multibody/joints",
"//common:find_resource",
],
)
install_data()
add_lint_tests()