Skip to content

Add section on boolean substitutions#6864

Open
bmagyar wants to merge 4 commits into
ros2:rollingfrom
bmagyar:add-equals-substitution-docs
Open

Add section on boolean substitutions#6864
bmagyar wants to merge 4 commits into
ros2:rollingfrom
bmagyar:add-equals-substitution-docs

Conversation

@bmagyar
Copy link
Copy Markdown
Contributor

@bmagyar bmagyar commented May 26, 2026

Description

I've finally come across the equals functionality and other features from ros2/launch#649 and though it'd be good to have them represented on this documentation.

I wasn't sure if referencing the PR in the docs was a good idea so I didn't do that.

The changes were tested in vanilla Jazzy and Lyrical containers.

Did you use Generative AI?

Claude Opus 4.7

Copy link
Copy Markdown
Collaborator

@fujitatomoya fujitatomoya left a comment

Choose a reason for hiding this comment

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

lgtm with minor comment. i would like to have 2nd approval on this before merge.

- Python class
- Description
* - ``$(equals A B)``
- ``EqualsSubstitution``
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(this does not block the PR) Worth a one-sentence note in the table or just below it: "Comparison is performed on the string representation of each argument."??

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

thank you, this is a very good idea! I've added it as a note above the table hoping it's a better spot to capture some eyes

@fujitatomoya fujitatomoya added backport-jazzy backport at reviewers discretion; from rolling to jazzy backport-kilted backport to kilted at reviewers discretion; from rolling to kilted backport-lyrical labels May 26, 2026
Copy link
Copy Markdown
Collaborator

@kscottz kscottz left a comment

Choose a reason for hiding this comment

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

Made one suggestion. I am sure this will certainly help someone out so let's get it merged.

I will say, man, the syntax for booleans in every type of launch file is absolutely ugly. It hurts my eyes.

Comment thread source/Tutorials/Intermediate/Launch/Using-Substitutions.rst Outdated
Comment thread source/Tutorials/Intermediate/Launch/Using-Substitutions.rst Outdated
bmagyar and others added 2 commits May 27, 2026 11:38
Co-authored-by: Katherine Scott <katherineAScott@gmail.com>
Signed-off-by: Bence Magyar <bence.magyar.robotics@gmail.com>
@bmagyar
Copy link
Copy Markdown
Contributor Author

bmagyar commented May 27, 2026

$(equals A B) reminds me of Lisp, I can get behind that one ;)

I think I've addressed all your points, thank you guys for the snap reviews!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-jazzy backport at reviewers discretion; from rolling to jazzy backport-kilted backport to kilted at reviewers discretion; from rolling to kilted backport-lyrical

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants