Skip to content

ROS_PACKAGE_PATH does not exist in ros2 #1358

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

Closed
olivier-stasse opened this issue Dec 13, 2020 · 1 comment
Closed

ROS_PACKAGE_PATH does not exist in ros2 #1358

olivier-stasse opened this issue Dec 13, 2020 · 1 comment
Assignees

Comments

@olivier-stasse
Copy link
Member

olivier-stasse commented Dec 13, 2020

return extractPathFromEnvVar("ROS_PACKAGE_PATH");
reads ROS_PACKAGE_PATH which does not exist in ros2.

Instead the line could read AMENT_PREFIX_PATH for ros2.

A strategy could be to test if one or the other variable exists.

@jcarpent jcarpent self-assigned this Dec 14, 2020
@jcarpent jcarpent mentioned this issue Dec 14, 2020
@jcarpent
Copy link
Contributor

Solved by #1359.

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

2 participants