Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prefer package.xml in hybrid packages? #353

Closed
meyerj opened this issue Oct 20, 2014 · 3 comments
Closed

Prefer package.xml in hybrid packages? #353

meyerj opened this issue Oct 20, 2014 · 3 comments

Comments

@meyerj
Copy link

meyerj commented Oct 20, 2014

The current implementation of rosdep and the underlying rospkg prefers the manifest.xml file over the newer package.xml. This is independent from whether it has been invoked with rosdep install <package> or rosdep install --from-path ....
For compatibility reasons the manifest.xml file still exists in some packages of the Orocos Toolchain (https://github.com/orocos-toolchain) as this file is also used by another build tool (Autoproj). Those packages are pure cmake packages and the package.xml was added for ROS compatibility only, as recommended for 3rd party packges released in the ROS ecosystem.

rosdep install --from-path ... only finds packages with a package.xml, but within each package it reads manifest.xml if this file exists.

Relevant code:

The simple question is: What is the reason for rosdep's preference of manifest.xml? Is this intentionally or a leftover/regression from earlier releases?

It is hard to understand how all the tools and libraries (rosdep, rospack, catkin, rospkg, catkin_pkg etc.) are connected. Is there a consistent policy of what defines a catkin package and which tool prefers which file?

ros-infrastructure/rospkg#30 was a related discussion about compile and linker flags of hybrid packages, where the result was to prefer manifest.xml. But this one was about getting the compiler and linker flags in rosbuild and has no direct consequences for rosdep, right?

@wjwwood
Copy link
Contributor

wjwwood commented Oct 20, 2014

Also for reference: ros-controls/ros_control#101

@tfoote
Copy link
Member

tfoote commented Oct 21, 2014

From rospkg#30 and linked ros/rospack#11 we chose to always prioritize dry over wet, and I believe this is consistent across all tools. (Mostly because we've worked hard to reuse code paths so all dry aware tools all bottom out at rospack.)

For this use case where dry is not included would need to propogate a flag through the code paths to avoid the preference if only one is valid. That's quite a few APIs which would need to be extended.

How is this effecting your code base? I presume that you're opening a ticket because it's presenting a problem for you.

@meyerj
Copy link
Author

meyerj commented Oct 21, 2014

Okay, I understand. I just wanted a confirmation that this behavior is intentional.

How is this effecting your code base? I presume that you're opening a ticket because it's presenting a problem for you.

Yes, but there are ways to work around it. See orocos-toolchain/utilrb#5 for further details.

Thanks, @tfoote!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants