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

package:// Usage

asked 2011-04-26 10:43:08 -0600

David Lu gravatar image

updated 2011-09-03 15:26:58 -0600

kwc gravatar image

I vaguely recall being able to use package:// to access files in packages, but I can't find the documentation and it turns out to be the kind of thing that is impossible to search for.

Can you actually access files in this manner? Is there a Wiki page about how to do it?

edit retag flag offensive close merge delete

3 Answers

Sort by » oldest newest most voted
4

answered 2011-04-26 16:28:30 -0600

I think you're looking for this wiki page.

edit flag offensive delete link more

Comments

That's what I was looking for! But alas, it's only for C++, so I made a Python version. https://code.ros.org/trac/ros-pkg/ticket/4951
David Lu gravatar image David Lu  ( 2011-05-12 05:39:06 -0600 )edit
1

answered 2011-04-26 16:23:59 -0600

joq gravatar image

Not a general answer, but camera_info_manager supports that syntax for accessing camera calibration files. I suppose other packages do, too.

edit flag offensive delete link more
0

answered 2011-04-26 21:02:20 -0600

You can also use the "package://" syntax in URDF files, where a filename is required.

For example, the file

pr2_description/urdf/tilting_laser_v0/tilting_laser.urdf.xacro

contains the line:

<mesh filename="package://pr2_description/meshes/tilting_laser_v0/tilting_hokuyo.dae" />

This also works for the texture tag, which also needs a filename. I guess that internally, the resource_retriever package mentioned by Patrick is used. However, I cannot find any documentation on this.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2011-04-26 10:43:08 -0600

Seen: 807 times

Last updated: Apr 26 '11