ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Access non-ROS resource from .launch/C++

asked 2017-02-15 22:42:00 -0600

130s gravatar image

(Very similar to this thread (Path to resource files in C++ node) but different.)

For example, OpenCV installs config files in /opt/ros/kinetic/share/OpenCV-3.1.0-dev/haarcascades on Xenial, which is under ros directory but not accessible by rospack. Hardcoding the specific path works for sure, but I'm afraid we'll need to update per every change in the upstream.

Either runtime solution in roslaunch or code C++/Python works.

(Related discussion in `people package.)

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2020-06-23 17:57:15 -0600

CodeFinder gravatar image

Maybe the following can help you:

(I am the author of that package.)

So may be you can use Python code to find the correct path.

edit flag offensive delete link more

Question Tools



Asked: 2017-02-15 22:42:00 -0600

Seen: 191 times

Last updated: Jun 23 '20