Skip to content

Commit

Permalink
Install optitrack_driver
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamie Snape committed Jun 15, 2017
1 parent 6949b53 commit 218306e
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 2 deletions.
1 change: 1 addition & 0 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ install(
"//drake/common:install",
"//tools:install",
"//tools/install/gflags:install",
"//tools/install/optitrack_driver:install",
"@bot_core_lcmtypes//:install",
"@bullet//:install",
"@ccd//:install",
Expand Down
4 changes: 2 additions & 2 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,8 @@ github_archive(
github_archive(
name = "optitrack_driver",
repository = "RobotLocomotion/optitrack-driver",
commit = "3a5da8d7c66c95ca98cda4dc7ca604f681464168",
sha256 = "a4d4c61ed5af59f12a273629eb28fa95ac2349abffe8912468bc5cf6dff34d28",
commit = "b9a59b66cb0627f9f174e11f323fdcf6cb223bb6",
sha256 = "5c9d917fcb9d325ceba75484a2d3f31ea044a090a966ac1ee2c4afd91923039e",
)

github_archive(
Expand Down
40 changes: 40 additions & 0 deletions tools/install/optitrack_driver/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# -*- python -*-

load("//tools:install.bzl", "cmake_config", "install", "install_cmake_config")

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

CMAKE_PACKAGE = "optitrack"

cmake_config(
cps_file_name = CMAKE_PACKAGE + ".cps",
package = CMAKE_PACKAGE,
)

install_cmake_config(
package = CMAKE_PACKAGE,
versioned = 0,
)

OPTITRACK_TARGETS = [
"@optitrack_driver//lcmtypes:lcmtypes_optitrack",
"@optitrack_driver//lcmtypes:optitrack_lcmtypes",
"@optitrack_driver//lcmtypes:py_optitrack_lcmtypes",
"@optitrack_driver//src:optitrack_client",
]

install(
name = "install",
allowed_externals = OPTITRACK_TARGETS,
doc_dest = "share/doc/" + CMAKE_PACKAGE,
doc_strip_prefix = ["**/"],
guess_hdrs = "PACKAGE",
hdr_dest = "include/lcmtypes",
license_docs = ["@optitrack_driver//:LICENSE"],
java_strip_prefix = ["**/"],
py_dest = "lib/python2.7/site-packages/optitrack",
py_strip_prefix = ["**/"],
targets = OPTITRACK_TARGETS,
deps = [":install_cmake_config"],
visibility = ["//:__pkg__"],
)
24 changes: 24 additions & 0 deletions tools/install/optitrack_driver/optitrack.cps
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"Cps-Version": "0.8.0",
"Name": "optitrack",
"Description": "Translates data streamed from the Optitrack Motive software (a.k.a. NatNet) into LCM messages",
"License": "BSD-3-Clause",
"Requires": {
"lcm": {
"Hints": ["@prefix@/lib/cmake/lcm"],
"X-CMake-Find-Args": ["CONFIG"]
}
},
"Default-Components": [":lcmtypes_optitrack-cpp"],
"Components": {
"lcmtypes_optitrack-cpp": {
"Type": "interface",
"Includes": ["@prefix@/include/lcmtypes"]
},
"lcmtypes_optitrack-java": {
"Type": "jar",
"Location": "@prefix@/share/java/liblcmtypes_optitrack.jar",
"Requires": ["lcm:lcm-java"]
}
}
}

0 comments on commit 218306e

Please sign in to comment.