Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FindResource no longer works when running binaries directly #7593

Closed
avalenzu opened this issue Dec 13, 2017 · 4 comments
Closed

FindResource no longer works when running binaries directly #7593

avalenzu opened this issue Dec 13, 2017 · 4 comments

Comments

@avalenzu
Copy link
Contributor

FindResource() and friends appear not to be happy about the hoist:

Before #7575

$ git checkout 7f23076
$ bazel run //drake/examples/kuka_iiwa_arm:iiwa_controller
<snip>
INFO: Running command line: bazel-bin/drake/examples/kuka_iiwa_arm/iiwa_controller
[2017-12-13 10:54:31.693] [console] [info] Welding joint iiwa_joint_ee
[2017-12-13 10:54:31.693] [console] [info] Welding joint tool0_joint
[2017-12-13 10:54:31.700] [console] [info] controller started
^C
Bazel caught interrupt signal; shutting down.
$ bazel-bin/drake/examples/kuka_iiwa_arm/iiwa_controller
[2017-12-13 10:55:08.554] [console] [info] Welding joint iiwa_joint_ee
[2017-12-13 10:55:08.555] [console] [info] Welding joint tool0_joint
[2017-12-13 10:55:08.558] [console] [info] controller started
^C

After #7575

$ git checkout c84bceb
$ bazel run //examples/kuka_iiwa_arm:iiwa_controller
<snip>
INFO: Running command line: bazel-bin/examples/kuka_iiwa_arm/iiwa_controller
[2017-12-13 10:50:42.587] [console] [info] Welding joint iiwa_joint_ee
[2017-12-13 10:50:42.587] [console] [info] Welding joint tool0_joint
[2017-12-13 10:50:42.595] [console] [info] controller started
^C
Bazel caught interrupt signal; shutting down.
$ bazel-bin/examples/kuka_iiwa_arm/iiwa_controller
terminate called after throwing an instance of 'std::runtime_error'
  what():  could not find resource: drake/manipulation/models/iiwa_description/urdf/iiwa14_polytope_collision.urdf
[1]    2175 abort (core dumped)  bazel-bin/examples/kuka_iiwa_arm/iiwa_controller

@avalenzu
Copy link
Contributor Author

Apparently this issue only appears if your Drake checkout is named something other than drake. drake-distro was a common name for such checkouts in the past. Renaming the checkout is a workaround, but ultimately, FindResource() shouldn't care what your checkout is named.

@rdeits
Copy link
Contributor

rdeits commented Dec 14, 2017

That seems like a somewhat unfriendly requirement, especially for those of us with lots of copies of drake floating around.

@jwnimmer-tri
Copy link
Collaborator

Yup, this is a regression and we'll fix it soon.

@rdeits
Copy link
Contributor

rdeits commented Dec 14, 2017

Awesome, thank you :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants