Skip to content

Conversation

@rgzntrade
Copy link
Contributor

The extra comma here causes the type of launch_dir to change, resulting in an error.

Description

This PR fixes an issue where an extra comma in the definition of launch_dir caused it to be interpreted as a tuple instead of the intended PathJoinSubstitution object. This type mismatch led to a TypeError during launch file parsing, as the ROS 2 framework expects a substitution object or string for path resolution.

Key changes:

  • Removed the trailing comma after the PathJoinSubstitution assignment to ensure launch_dir remains a single object.
  • Verified that the corrected code properly constructs the file path using ROS 2's substitution mechanism, resolving the type error.

Fixes #<issue_number> (replace with the actual issue number if available).

Did you use Generative AI?

No.

Additional Information

This change ensures the launch file adheres to Python syntax rules for variable assignment, maintaining the intended behavior of dynamically constructing file paths for ROS 2 components. The fix is minimal and targets the specific line identified in the error traceback, ensuring compatibility with existing workflows.

The extra comma here causes the type of `launch_dir` to change, resulting in an error.

Signed-off-by: today <[email protected]>
@ahcorde
Copy link
Contributor

ahcorde commented Jun 12, 2025

https://github.com/Mergifyio backport kilted jazzy rolling

@mergify
Copy link
Contributor

mergify bot commented Jun 12, 2025

backport kilted jazzy rolling

✅ Backports have been created

@ahcorde ahcorde merged commit 36dd34e into ros2:humble Jun 12, 2025
5 checks passed
mergify bot pushed a commit that referenced this pull request Jun 12, 2025
The extra comma here causes the type of `launch_dir` to change, resulting in an error.

Signed-off-by: today <[email protected]>
(cherry picked from commit 36dd34e)
mergify bot pushed a commit that referenced this pull request Jun 12, 2025
The extra comma here causes the type of `launch_dir` to change, resulting in an error.

Signed-off-by: today <[email protected]>
(cherry picked from commit 36dd34e)
mergify bot pushed a commit that referenced this pull request Jun 12, 2025
The extra comma here causes the type of `launch_dir` to change, resulting in an error.

Signed-off-by: today <[email protected]>
(cherry picked from commit 36dd34e)
ahcorde pushed a commit that referenced this pull request Jun 12, 2025
The extra comma here causes the type of `launch_dir` to change, resulting in an error.


(cherry picked from commit 36dd34e)

Signed-off-by: today <[email protected]>
Co-authored-by: today <[email protected]>
ahcorde pushed a commit that referenced this pull request Jun 12, 2025
The extra comma here causes the type of `launch_dir` to change, resulting in an error.


(cherry picked from commit 36dd34e)

Signed-off-by: today <[email protected]>
Co-authored-by: today <[email protected]>
ahcorde pushed a commit that referenced this pull request Jun 12, 2025
The extra comma here causes the type of `launch_dir` to change, resulting in an error.


(cherry picked from commit 36dd34e)

Signed-off-by: today <[email protected]>
Co-authored-by: today <[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

Development

Successfully merging this pull request may close these issues.

2 participants