Skip to content

Conversation

@emersonknapp
Copy link
Contributor

@emersonknapp emersonknapp commented May 3, 2025

Closes #805
Closes robograph-project/planning#12
Replaces #790
Related to #868

Allow passing pathlib.Path objects directly into contexts expecting a Substitution, for more natural modern pythonic usage. For example IncludeLaunchDescription(Path(__file__).parent / 'file_in_this_dir_launch.yaml'))

As part of this change, stop doing str(Path) casts everywhere it's done for this reason.

@emersonknapp emersonknapp marked this pull request as ready for review May 3, 2025 22:26
@christophebedard christophebedard self-requested a review May 3, 2025 22:47
@christophebedard
Copy link
Member

@InvincibleRMC FYI. Feel free to review too.

Copy link
Contributor

@InvincibleRMC InvincibleRMC left a comment

Choose a reason for hiding this comment

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

Besides @christophebedard comment lgtm.

@emersonknapp
Copy link
Contributor Author

Rebased after #868 and resolved conflicts

@christophebedard christophebedard self-requested a review May 6, 2025 18:43
@emersonknapp emersonknapp force-pushed the allow-pathlib-in-substitution branch from c32fe49 to 6106d28 Compare May 14, 2025 23:54
@emersonknapp
Copy link
Contributor Author

Pulls: #873
Gist: https://gist.githubusercontent.com/emersonknapp/b133773d33cf670eaa28d2c7fbb71ee4/raw/cd724f16568db541eebe5e3ec67a2504f201bb63/ros2.repos
BUILD args:
TEST args:
ROS Distro: rolling
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/15993

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

Co-authored-by: Christophe Bedard <[email protected]>
Signed-off-by: Emerson Knapp <[email protected]>
@emersonknapp
Copy link
Contributor Author

emersonknapp commented May 15, 2025

Pulls: #873
Gist: https://gist.githubusercontent.com/emersonknapp/58af91da3b88f54c8f3948f34cb1ea0d/raw/cd724f16568db541eebe5e3ec67a2504f201bb63/ros2.repos
BUILD args: --packages-above-and-dependencies launch
TEST args: --packages-above launch
ROS Distro: rolling
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/15999

  • Linux Build Status
    • jenkins error, retriggered Build Status
  • Linux-aarch64 Build Status
    • jenkins error, retrigger Build Status
  • Linux-rhel Build Status
  • Windows Build Status

@christophebedard christophebedard merged commit 49bcf2d into ros2:rolling May 19, 2025
3 checks passed
@emersonknapp
Copy link
Contributor Author

@Mergifyio backport humble jazzy kilted

@mergify
Copy link

mergify bot commented Nov 11, 2025

backport humble jazzy kilted

✅ Backports have been created

mergify bot pushed a commit that referenced this pull request Nov 11, 2025
Signed-off-by: Emerson Knapp <[email protected]>
(cherry picked from commit 49bcf2d)

# Conflicts:
#	launch/launch/substitutions/python_expression.py
#	launch_xml/test/launch_xml/test_executable.py
mergify bot pushed a commit that referenced this pull request Nov 11, 2025
Signed-off-by: Emerson Knapp <[email protected]>
(cherry picked from commit 49bcf2d)

# Conflicts:
#	launch_xml/test/launch_xml/test_executable.py
emersonknapp added a commit that referenced this pull request Nov 14, 2025
[kilted] Allow Path in substitutions, instead of requiring cast to str (backport #873)
ahcorde pushed a commit that referenced this pull request Dec 1, 2025
… (backport #873) (#927)

* Allow Path in substitutions, instead of requiring cast to str (#873)

Signed-off-by: Emerson Knapp <[email protected]>
(cherry picked from commit 49bcf2d)
Signed-off-by: Emerson Knapp <[email protected]>
Co-authored-by: Emerson Knapp <[email protected]>
Co-authored-by: Emerson Knapp <[email protected]>
ahcorde pushed a commit that referenced this pull request Dec 1, 2025
…r (backport #873) (#926)

* Allow Path in substitutions, instead of requiring cast to str (#873)

Signed-off-by: Emerson Knapp <[email protected]>
(cherry picked from commit 49bcf2d)


Signed-off-by: Emerson Knapp <[email protected]>
Co-authored-by: Emerson Knapp <[email protected]>
Co-authored-by: Emerson Knapp <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

4 participants