Skip to content

EricCousineau-TRI/drake_external

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Info

This shows how to incorporate drake as an external Bazel project, with the necessary changes made to drake.

Testing

To quickly test this out with code:

# Does not work under /tmp, use ~/tmp/${DATE}
cur="${HOME}/tmp/$(date -Im | sed 's#:#-#g')"
mkdir -p $cur && cd $cur

git clone https://github.com/EricCousineau-TRI/drake_external.git
cd drake_external
# We don't need submodules in drake, at least for this test. Shallow init.
git submodule update --init
# This consumes @drake//solvers:mathematical_program as a C++ dependency, but
# also consumes @drake//drake:libdrake.so to require as much to be built as
# possible (as a test).
bazel run //example

Unittests

You may also run most of drake's unittests externally:

bazel test @drake//drake/...

Please note that bazel test @drake//... will cause bazel to puke if:

  • The snopt BUILD setup does not work (which it most likely won't),
  • You have invoked bazel directly in drake-distro, in which it will try to crawl the generated bazel-drake-distro symlink folder, and/or
  • If you have not provided a path to an existing CMake installation path with drake-visualizer.

About

Trying to port this to stonier/shambhala.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published