Conversation
|
TBH: I feel like the multiple types of rewrites available here chafes a bit against the "Distinct substitutions that can be composed make the most sense to me." that @mjcarroll articulated here, but I also haven't written a lot of uses for |
|
Related: ros-teleop/twist_mux#65 |
|
This is sometimes useful, for sure. But I've noticed in the wild that a lot of uses of it aren't actually necessary, resulting in a no-op, and it's only there because the user copy-pasted a Nav2 python launchfile as their starting point. We could consider having it raise a Warning when the result is a no-op just to make it clear to users that they've cargo-culted something unnecessary. Also we should try really hard to make sure that all Actions and Substitutions are exposed to launch frontend (so they can be used in YAML/XML). I had started on this one before parental leave but don't think I finished it. I think the interface is complex enough that the Nothing I've said is a blocker, but food for thought. |
|
Any particular reason why this goes to launch_ros and not to launch? I don't see anything ROS-specific here... |
|
@DLu when you get a moment, do you have any thoughts on these two comments? |
This is a bigger question, and maybe something that people with more Nav2 experience than I should address. I fall into the category of people who mostly copy-paste it.
I concur, but was starting by just porting what exists in the Nav2 repo.
That's basically what I was getting at with the "Yaml Operations" patterns I discussed in my original post here: #517
A) The original ticket was here #258 in this repo. I'm happy to change it as needed. |
Description
Straight port of RewrittenYaml from Nav2
Fixes #258
Is this user-facing behavior change?
Yes, adds a new substitution.
Did you use Generative AI?
No
Additional Information
This is the exact implementation and test code from Nav2, with the exception of modifying the imports in the second two commits. No other improvements were attempted.