0
$\begingroup$

Rosanswers logo

Hi,

I'm using ROS with rospy and I need to get the package path to load some data files, because I can't use relative paths while it's not always expected to run the nodes from any fixed location.

So, does anyone know how could I get the absolute path of a package?

Thank you in advance,

XNor


Originally posted by XNor on ROS Answers with karma: 61 on 2013-05-25

Post score: 6

$\endgroup$

1 Answer 1

0
$\begingroup$

Rosanswers logo

How to do that is documented here: ROS Filesystem Concepts/Packages


Originally posted by Stefan Kohlbrecher with karma: 24361 on 2013-05-25

This answer was ACCEPTED on the original site

Post score: 11


Original comments

Comment by XNor on 2013-05-26:
Thank you so much, I was searching about it but I didn't find anything. I knew there sould be a way.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.