forked from RobotLocomotion/drake
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBUILD.bazel
More file actions
115 lines (106 loc) · 3.04 KB
/
BUILD.bazel
File metadata and controls
115 lines (106 loc) · 3.04 KB
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
114
115
load("//bindings/pydrake:pydrake.bzl", "add_lint_tests_pydrake")
load("//tools/install:install.bzl", "install")
load(
"//tools/skylark:drake_py.bzl",
"drake_py_library",
"drake_py_unittest",
)
load(
"//tools/skylark:pybind.bzl",
"drake_pybind_library",
"get_drake_py_installs",
"get_pybind_package_info",
)
package(default_visibility = [
"//bindings/pydrake:__subpackages__",
])
# This determines how `PYTHONPATH` is configured, and how to install the
# bindings.
PACKAGE_INFO = get_pybind_package_info("//bindings")
drake_pybind_library(
name = "manipulation",
cc_deps = [
"//bindings/generated_docstrings:manipulation_franka_panda",
"//bindings/generated_docstrings:manipulation_kuka_iiwa",
"//bindings/generated_docstrings:manipulation_schunk_wsg",
"//bindings/generated_docstrings:manipulation_util",
"//bindings/pydrake/common:eigen_pybind",
"//bindings/pydrake/common:ref_cycle_pybind",
"//bindings/pydrake/common:serialize_pybind",
"//bindings/pydrake/systems:builder_life_support_pybind",
],
cc_so_name = "__init__",
cc_srcs = [
"manipulation_py.h",
"manipulation_py.cc",
"manipulation_py_kuka_iiwa.cc",
"manipulation_py_franka_panda.cc",
"manipulation_py_schunk_wsg.cc",
"manipulation_py_util.cc",
],
package_info = PACKAGE_INFO,
py_deps = [
"//bindings/pydrake/multibody:parsing_py",
"//bindings/pydrake/systems:framework_py",
"//bindings/pydrake/systems:primitives_py",
],
py_srcs = [
"_manipulation_extra.py",
],
)
drake_py_unittest(
name = "kuka_iiwa_test",
data = [
"//manipulation/util:test_directives",
"@drake_models//:iiwa_description",
"@drake_models//:wsg_50_description",
],
deps = [
":manipulation",
"//bindings/pydrake/common/test_utilities",
"//bindings/pydrake/multibody",
"//bindings/pydrake/systems",
"//bindings/pydrake/systems:test_util_py",
],
)
drake_py_unittest(
name = "franka_panda_test",
deps = [
":manipulation",
"//bindings/pydrake/systems",
],
)
drake_py_unittest(
name = "schunk_wsg_test",
data = [
"//manipulation/util:test_directives",
"@drake_models//:iiwa_description",
"@drake_models//:wsg_50_description",
],
deps = [
":manipulation",
"//bindings/pydrake/multibody",
"//bindings/pydrake/systems",
],
)
drake_py_unittest(
name = "util_test",
data = [
"//manipulation/util:test_directives",
"//multibody/benchmarks/acrobot:models",
"@drake_models//:iiwa_description",
"@drake_models//:wsg_50_description",
],
deps = [
":manipulation",
"//bindings/pydrake/multibody",
"//bindings/pydrake/systems",
],
)
install(
name = "install",
targets = [":manipulation"],
py_dest = PACKAGE_INFO.py_dest,
deps = get_drake_py_installs([":manipulation"]),
)
add_lint_tests_pydrake()