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

Get package path with rospy [closed]

asked 2013-05-25 07:53:19 -0500

XNor gravatar image

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

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Procópio
close date 2017-03-16 05:00:58.327193

1 Answer

Sort by » oldest newest most voted
11

answered 2013-05-25 12:40:53 -0500

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

edit flag offensive delete link more

Comments

Thank you so much, I was searching about it but I didn't find anything. I knew there sould be a way.

XNor gravatar image XNor  ( 2013-05-26 03:38:25 -0500 )edit

Question Tools

Stats

Asked: 2013-05-25 07:53:19 -0500

Seen: 20,105 times

Last updated: May 26 '13