-
Notifications
You must be signed in to change notification settings - Fork 912
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
[roslaunch] roslaunch-check doesn't respect if/unless #993
Comments
I believe the issue is here: ros_comm/tools/roslaunch/src/roslaunch/depends.py Lines 144 to 148 in 6742631
It needs logic to explicitly check for if/unless, similar to how the args work: ros_comm/tools/roslaunch/src/roslaunch/depends.py Lines 99 to 106 in 6742631
What's mysterious to me is that this works correctly for a normal launch but not for Looks like for a normal launch, this is handled by ros_comm/tools/roslaunch/src/roslaunch/xmlloader.py Lines 69 to 96 in caab9fd
@dirk-thomas It seems like there are some parallel implementation issues going on here, but I don't have the desire or energy to do a wholesale fixup of it. I'd prefer to fix the immediate bug as best I can and at least add a unit test which would help support a future refactoring. Unless you have some particular insight into what the relationship is between xmlloader and these other pieces? |
Addressed by #998. Thank you! |
We're having a case where we have some launch files which optionally include other launch files based on an environment variable being set. These are failing the test created by
roslaunch_add_file_check
, since it doesn't respect the conditional and attempts to resolve all include elements without regard for context.This can be reproduced trivially by a launch file such as this, which launches just fine, but will (wrongly, in my opinion) fail the roslaunch check:
Interestingly,
roslaunch_add_file_check
totally does resolve$(arg)
,$(env)
,$(optenv)
, etc, so this really does seem to be an issue with just the conditionals.The text was updated successfully, but these errors were encountered: