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

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
0

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

CodeFinder gravatar image

Maybe the following can help you:

https://github.com/CodeFinder2/roslau...

(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

2 followers

Stats

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

Seen: 206 times

Last updated: Jun 23 '20