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

how does my program find the file system path to a package?

asked 2011-04-05 04:44:20 -0500

joq gravatar image

When reading data files, it is often necessary for a program to find the file system path name for the containing ROS package. That may differ depending on where the package is installed on the system.

rospack find solves this problem from the command line and in shell scripts.

How do I find the correct path in a C++ or Python program?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2011-04-05 04:51:05 -0500

joq gravatar image

I already knew the answer, but a colleague recently mentioned that it is somewhat buried in the ROS documentation. There are good answers on the Packages page, however:

edit flag offensive delete link more

Question Tools


Asked: 2011-04-05 04:44:20 -0500

Seen: 23,883 times

Last updated: Apr 05 '11