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

Package and stacks with the same name

asked 2011-08-02 05:59:58 -0500

adasta gravatar image

Can packages and stacks share the same name? Will having a stack called foo and a package called foo cause problems?

My use case is that I have a stack called foo which contains package foo and package bar.

The local ROS tools are behaving, but I am not sure if this subtly breaks something.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2011-08-02 09:47:06 -0500

tfoote gravatar image

updated 2011-08-02 09:52:04 -0500

This is not a recommended practice. You can have a unary stack where a package is also a stack. Most of the tools are robust to it, however there are several edge cases which this will break. Most obvious is roscd, as well as indexing and documentation will be broken as packages and stacks share a namespace. Getting REP 109 to work was hard. The package and stack are obviously at different scopes, they should be able to be named differently.

edit flag offensive delete link more


Aren't unary stacks a bit different from what he's asking about? In his case there would still be a foo stack directory above the foo package directory vs. a single dir. Incidentally I notice that at it isn't documented that you can roscd <stackname>.
Patrick Bouffard gravatar image Patrick Bouffard  ( 2011-08-02 09:58:01 -0500 )edit

Question Tools


Asked: 2011-08-02 05:59:58 -0500

Seen: 827 times

Last updated: Aug 02 '11