Closed rdeits closed 6 years ago
I can't immediately reproduce this error. My steps:
git checkout master
(at 741ac01ad963759d3de88611479faf80ecc99c15
)throw std::runtime_error("Gurobi solver not available.");
in qp_inverse_dynamics.cc
bazel build //examples/humanoid_controller:valkyrie_balancing_demo
bazel-bin/examples/humanoid_controller/valkyrie_balancing_demo
then I see
[2018-01-25 11:54:55.555] [console] [info] Welding joint left_camera_optical_frame_joint
[2018-01-25 11:54:55.555] [console] [info] Welding joint right_camera_optical_frame_joint
followed by a long pause.
My only guess at the moment is that DRAKE_RESOURCE_ROOT
may be pointing to a problematic copy of the resource, and thus pre-empting use of the copy from the source tree.
I'll come back to this later today and see if there is more debug tracing we can turn on.
I haven't run this code since before the drake
folder hoist. Is there anything special I need to do to account for the hoisting?
Nope, it should just work (without any environment variables). Setting DRAKE_RESOURCE_ROOT
is an override that changes where Drake looks; if you had some old value in your shell environment possibly its confusing things, though.
No, I don't have a DRAKE_RESOURCE_ROOT
environment variable in that shell.
This line looks suspiciously like it's searching up the directory tree for a folder called "drake", which no longer exists: https://github.com/RobotLocomotion/drake/blob/7d805aca8d3636bf343ee824362f2ea237cb8f8a/multibody/parsers/package_map.cc#L175
Confirmed: changing kDrakeFolderName
to drake-distro
fixes the issue. It looks like that constant must be exactly equal to the name under which Drake is cloned.
It appears that this is actually a duplicate of https://github.com/RobotLocomotion/drake/issues/7593 . I'll update the title.
Ah, thanks for diagnosing.
~#7593 fixed the bazel run //examples:foo
form to work; this issue it about fixing the bazel-bin/examples/foo
form.~
Edit: Actually, that wasn't right. #7593 fixed finding URDFs; this issue is about finding sub-resources like OBJs, based on package.xml search heuristics.
@rdeits I am curious if #7864 fixes it for your case. It seems to work in my testing.
Thanks! I'll try it out as soon as possible.
@jwnimmer-tri yes, #7864 seems to fix it for me. Thanks!
Trying to run the humanoid balancing demo currently fails with the following message:
likewise for the simulation:
The mesh file does exist, and it's still at
valkyrie/urdf/model/meshes/pelvis/pelvis.dae
, so it would seem that there's something wrong with the parser's package handling. Any suggestions?Edit: this is because my Drake clone is called
drake-distro
, and the examples only work if the clone is calleddrake