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

Semantics of AMENT_PREFIX_PATH variable? #1520

Closed
traversaro opened this issue Aug 31, 2021 · 7 comments
Closed

Semantics of AMENT_PREFIX_PATH variable? #1520

traversaro opened this issue Aug 31, 2021 · 7 comments
Assignees

Comments

@traversaro
Copy link
Contributor

In #1358 and #1359, for supporting ROS2 the feature of reading from the AMENT_PREFIX_PATH variable was added, treating it as it contained the same directories contained in ROS_PACKAGE_PATH .

However, debugging another problem, I investigated this and it seems that while ROS_PACKAGE_PATH contains the directories in the form <install_prefix>/share, AMENT_PREFIX_PATH instead contains directories in the form <install_prefix> .

I am not sure what is the best thing to do in this case, but I wonder if the share subdirectory should be added to the values obtained from AMENT_PREFIX_PATH.

Related issue: robotology/robotology-superbuild#832 .

@jcarpent
Copy link
Contributor

@traversaro Thanks for raising this issue.
As I'm not a ROS expert, I let @wxmerkt providing his thoughts.
@wxmerkt Could you provide your feedback on this issue?

@jcarpent
Copy link
Contributor

jcarpent commented Sep 1, 2021

I've just checked robotology/robotology-superbuild#832, and the solution sounds fine for me.
@traversaro Could you translate your change to Pinocchio?

@traversaro
Copy link
Contributor Author

Sure, let's wait to see if @wxmerkt has any feedback as I will be interested in it even for iDynTree/iCub's models. I wonder if @olivier-stasse may have any comment as he is the one that originally created #1358 .

@wxmerkt
Copy link
Member

wxmerkt commented Sep 1, 2021

Hi @traversaro and @jcarpent,
Apologies for the slow response to this; yesterday and today are filled with meetings. I haven't used ROS2 myself and hence not tested the AMENT_PREFIX_PATH - but what you wrote about changing to <install-prefix> sounds familiar. It may be worth testing in a Docker with a commonly used/binary-available robot description package to confirm any fixes

@olivier-stasse
Copy link
Member

Dear all, the solution implemented in robotology/robotology-superbuild#832 sounds fine for me too.

@jcarpent
Copy link
Contributor

@proyan Could you handle it?

@proyan
Copy link
Member

proyan commented Dec 7, 2021

Fixed with #1568.

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

5 participants