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

A way to to evaluate conditions across launch files at runtime? #422

Closed
ddengster opened this issue May 14, 2020 · 1 comment
Closed

A way to to evaluate conditions across launch files at runtime? #422

ddengster opened this issue May 14, 2020 · 1 comment

Comments

@ddengster
Copy link

ddengster commented May 14, 2020

Feature request

A way to use simple python to evaluate conditions between launch files at runtime.

Feature description

Say I have a launch file upstream.launch.py that invokes IncludeLaunchDescription with downstream.launch.py.

downstream.launch.py has something like a LaunchArgument("moveit_controller_manager") in its LaunchDescription

Then I'd like to be able to evaluate something in downstream.launch.py similar to:
launch.substitutions.LaunchConfiguration("moveit_controller_manager") is 'coffeebot'
Based on this condition I'd be able to set additional variables or perform some conditional logic for my launch file.

Implementation considerations

It doesnt seem to be in the design from what I've read.

@hidmic
Copy link
Contributor

hidmic commented May 14, 2020

Check launch.substitutions.PythonExpression.

@ddengster I encourage you to ask this kind of questions over in answers.ros.org, where the community at large can help you and/or benefit from this exchange. I'll close this issue now.

@hidmic hidmic closed this as completed May 14, 2020
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