Ask Your Question

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

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

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 -0500

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



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

Seen: 142 times

Last updated: Jun 23 '20