This pulls in a downloaded or installed binary build of Drake via the Bazel workspace mechanism.
For an introduction to Bazel, refer to Getting Started with Bazel.
First, run the install_prereqs script to download the Drake binary package to
$HOME/drake/. This also runs Drake's setup script to install the required
Ubuntu packages:
setup/install_prereqsAdditionally, if you don't already have bazel or bazelisk installed, then
install bazelisk:
setup/install_bazeliskThen, to build and test all apps:
bazel test //...As an example to run a binary directly:
bazel run //apps:simple_logging_exampleYou may also run the binary directly per the bazel-bin/... path that the
above command prints out; however, be aware that your working directories may
cause differences. This is important when using tools like
drake::FindResource / pydrake.common.FindResource.
You may generally want to stick to using bazel run when able.