forked from pz4kybsvg/Conception
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
112 lines
2.7 KiB
112 lines
2.7 KiB
2 years ago
|
load("@drake//tools/install:install.bzl", "install")
|
||
|
load(
|
||
|
"@drake//tools/skylark:pybind.bzl",
|
||
|
"add_pybind_coverage_data",
|
||
|
"drake_pybind_library",
|
||
|
"get_drake_py_installs",
|
||
|
"get_pybind_package_info",
|
||
|
)
|
||
|
load(
|
||
|
"@drake//tools/skylark:drake_py.bzl",
|
||
|
"drake_py_library",
|
||
|
"drake_py_unittest",
|
||
|
)
|
||
|
load("//bindings/pydrake:pydrake.bzl", "add_lint_tests_pydrake")
|
||
|
|
||
|
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/pydrake:documentation_pybind",
|
||
|
"//bindings/pydrake/common:eigen_pybind",
|
||
|
"//bindings/pydrake/common:serialize_pybind",
|
||
|
],
|
||
|
cc_so_name = "__init__",
|
||
|
cc_srcs = [
|
||
|
"manipulation_py.h",
|
||
|
"manipulation_py.cc",
|
||
|
"manipulation_py_kuka_iiwa.cc",
|
||
|
"manipulation_py_schunk_wsg.cc",
|
||
|
"manipulation_py_util.cc",
|
||
|
],
|
||
|
package_info = PACKAGE_INFO,
|
||
|
py_deps = [
|
||
|
"//bindings/pydrake/systems:framework_py",
|
||
|
# 2023-06-01 Remove this dependency upon completion of deprecation.
|
||
|
"//bindings/pydrake/multibody:inverse_kinematics_py",
|
||
|
],
|
||
|
py_srcs = [
|
||
|
"_manipulation_extra.py",
|
||
|
# 2023-06-01 Remove this target upon completion of deprecation.
|
||
|
"planner.py",
|
||
|
# TODO(jwnimmer-tri) On 2023-06-01 add deprecation for these modules.
|
||
|
# See #18683 for an example of what to do.
|
||
|
"kuka_iiwa.py",
|
||
|
"schunk_wsg.py",
|
||
|
"util.py",
|
||
|
],
|
||
|
)
|
||
|
|
||
|
drake_py_unittest(
|
||
|
name = "kuka_iiwa_test",
|
||
|
data = [
|
||
|
"//manipulation/models/iiwa_description:models",
|
||
|
"//manipulation/util:test_directives",
|
||
|
],
|
||
|
deps = [
|
||
|
":manipulation",
|
||
|
"//bindings/pydrake/multibody",
|
||
|
"//bindings/pydrake/systems",
|
||
|
],
|
||
|
)
|
||
|
|
||
|
drake_py_unittest(
|
||
|
name = "planner_deprecated_test",
|
||
|
deps = [
|
||
|
":manipulation",
|
||
|
"//bindings/pydrake/common/test_utilities:deprecation_py",
|
||
|
],
|
||
|
)
|
||
|
|
||
|
drake_py_unittest(
|
||
|
name = "schunk_wsg_test",
|
||
|
data = [
|
||
|
"//manipulation/util:test_directives",
|
||
|
],
|
||
|
deps = [
|
||
|
":manipulation",
|
||
|
"//bindings/pydrake/multibody",
|
||
|
"//bindings/pydrake/systems",
|
||
|
],
|
||
|
)
|
||
|
|
||
|
drake_py_unittest(
|
||
|
name = "util_test",
|
||
|
data = [
|
||
|
"//manipulation/util:test_directives",
|
||
|
],
|
||
|
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_pybind_coverage_data()
|
||
|
|
||
|
add_lint_tests_pydrake()
|