Closed fbudin69500 closed 7 years ago
This requires https://github.com/RobotLocomotion/drake/pull/6766 Merged
@patmarion @stonier This is the last requirement to be able to build spartan with drake/bazel
Does this require an environment variable to be defined? Should we add a check for the environment variable to the function _isPyDrakeAvailable()
?
The current solution does require an environment variable. I have added a check in the function isPyDrakeAvailable()
to verify that the environment variable is set.
Cool thanks!
In general I'm not too happy with the current design pattern of the command line args for this. Basically --iiwa-drake
is a shortcut for --director-config=/path/to/drake/examples/kuka_iiwa_arm/director_config.json
. Which is annoying because it means the application has to resolve that pathname when the command line args are declared, instead of resolving it only when the flag is actually used.
…hrow(...)`
pydrake.getDrakePath()
does not work with the install tree of drake built with bazel. Instead, we can rely onpydrake.common.FindResourceOrThrow(...)
once the environment variableDRAKE_RESOURCE_ROOT
is defined.