Skip to content

Implement Any, All, Equals, and NotEquals substitutions#649

Merged
methylDragon merged 8 commits intorollingfrom
ch3/new-substitutions
Sep 28, 2022
Merged

Implement Any, All, Equals, and NotEquals substitutions#649
methylDragon merged 8 commits intorollingfrom
ch3/new-substitutions

Conversation

@methylDragon
Copy link
Contributor

@methylDragon methylDragon commented Sep 8, 2022

Description

This PR implements new Any and All boolean substitutions. As well as new Equals and NotEquals substitutions.

The equality substitutions deprecate the LaunchConfigurationEquals and LaunchConfigurationNotEquals conditions, because they're more universal and can take in LaunchConfiguration substitutions.

It should be self-explanatory from the included tests (:

@methylDragon methylDragon force-pushed the ch3/new-substitutions branch 30 times, most recently from 87ffd90 to 9b6ec09 Compare September 8, 2022 05:40
Signed-off-by: methylDragon <methylDragon@gmail.com>
Signed-off-by: methylDragon <methylDragon@gmail.com>
Signed-off-by: methylDragon <methylDragon@gmail.com>
Signed-off-by: methylDragon <methylDragon@gmail.com>
Signed-off-by: methylDragon <methylDragon@gmail.com>
Signed-off-by: methylDragon <methylDragon@gmail.com>
@methylDragon
Copy link
Contributor Author

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Windows Build Status

Signed-off-by: methylDragon <methylDragon@gmail.com>
@methylDragon
Copy link
Contributor Author

Flake8 errors. Let's try this again:

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Windows Build Status

@methylDragon
Copy link
Contributor Author

Windows failures seem unrelated, but I'm gonna try again regardless

  • Windows Build Status

Copy link
Member

@jacobperron jacobperron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have one minor unresolved comment above, otherwise LGTM!

Signed-off-by: methylDragon <methylDragon@gmail.com>

Co-authored-by: Jacob Perron <jacob@openrobotics.org>
@methylDragon methylDragon merged commit a15e959 into rolling Sep 28, 2022
@delete-merged-branch delete-merged-branch bot deleted the ch3/new-substitutions branch September 28, 2022 04:20
jacobperron added a commit that referenced this pull request Oct 4, 2022
The LaunchConfigurationEquals and LaunchConfigurationNotEquals conditions were deprecated in #649.
This change captures the expected warnings in their unit tests.

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
jacobperron added a commit that referenced this pull request Oct 5, 2022
The LaunchConfigurationEquals and LaunchConfigurationNotEquals conditions were deprecated in #649.
This change captures the expected warnings in their unit tests.

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
emersonknapp pushed a commit to emersonknapp/launch that referenced this pull request May 1, 2025
* Implement Any and All substitutions

Signed-off-by: methylDragon <methylDragon@gmail.com>

* Implement Equals and NotEquals substitutions

Signed-off-by: methylDragon <methylDragon@gmail.com>

* Implement stringification for equality substitutions

Signed-off-by: methylDragon <methylDragon@gmail.com>

* Fix tests

Signed-off-by: methylDragon <methylDragon@gmail.com>

* Use type utils and add to docstrings

Signed-off-by: methylDragon <methylDragon@gmail.com>

* Check for substitutions on init in Equals substitution

Signed-off-by: methylDragon <methylDragon@gmail.com>

* Fix flake8 errors

Signed-off-by: methylDragon <methylDragon@gmail.com>

* Fix typo in self-description

Signed-off-by: methylDragon <methylDragon@gmail.com>

Co-authored-by: Jacob Perron <jacob@openrobotics.org>

Signed-off-by: methylDragon <methylDragon@gmail.com>
Co-authored-by: Jacob Perron <jacob@openrobotics.org>
emersonknapp pushed a commit to emersonknapp/launch that referenced this pull request May 6, 2025
* Implement Any and All substitutions

Signed-off-by: methylDragon <methylDragon@gmail.com>

* Implement Equals and NotEquals substitutions

Signed-off-by: methylDragon <methylDragon@gmail.com>

* Implement stringification for equality substitutions

Signed-off-by: methylDragon <methylDragon@gmail.com>

* Fix tests

Signed-off-by: methylDragon <methylDragon@gmail.com>

* Use type utils and add to docstrings

Signed-off-by: methylDragon <methylDragon@gmail.com>

* Check for substitutions on init in Equals substitution

Signed-off-by: methylDragon <methylDragon@gmail.com>

* Fix flake8 errors

Signed-off-by: methylDragon <methylDragon@gmail.com>

* Fix typo in self-description

Signed-off-by: methylDragon <methylDragon@gmail.com>

Co-authored-by: Jacob Perron <jacob@openrobotics.org>

Signed-off-by: methylDragon <methylDragon@gmail.com>
Co-authored-by: Jacob Perron <jacob@openrobotics.org>
christophebedard added a commit that referenced this pull request May 18, 2025
…ions (#649) (#871)

Signed-off-by: methylDragon <methylDragon@gmail.com>
Signed-off-by: Emerson Knapp <emerson.b.knapp@gmail.com>
Signed-off-by: Emerson Knapp <537409+emersonknapp@users.noreply.github.com>
Co-authored-by: methylDragon <methylDragon@gmail.com>
Co-authored-by: Jacob Perron <jacob@openrobotics.org>
Co-authored-by: Christophe Bedard <bedard.christophe@gmail.com>
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

Successfully merging this pull request may close these issues.

3 participants