-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Launch-system.rst #4068
Update Launch-system.rst #4068
Conversation
added comments to the code. I think the it is better if we tell beginner what's changed, especially the addition of ``` import os from glob import glob ``` Otherwise, a beginner might not notice this and will take some time to figure out what's not working (happened to me). Other part of documentation followed this. For example: https://docs.ros.org/en/humble/Tutorials/Intermediate/Tf2/Writing-A-Tf2-Broadcaster-Py.html#update-setup-py Signed-off-by: Muhammad Ashfaq <[email protected]>
Co-authored-by: Tomoya Fujita <[email protected]> Signed-off-by: Muhammad Ashfaq <[email protected]>
Signed-off-by: Muhammad Ashfaq <[email protected]>
import os # ADD | ||
from glob import glob # ADD |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Honestly, I'm not a fan of this either. I agree that it is somewhat hard to understand what to change, but I think this is pretty ugly.
Instead, I'd like to think of another way to do this. Elsewhere where we have this pattern (like http://docs.ros.org/en/humble/Tutorials/Beginner-Client-Libraries/Using-Parameters-In-A-Class-Python.html#change-via-a-launch-file), we say something like:
"Add the import statements to the top of the file, and the other new statement to the data_files parameter to include all launch files.".
So I think we should do the same here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is looking better, but we should still remove the # ADD
lines on these lines. Once that is done, I'm happy with this.
also copyedited the hard-to-read text. Signed-off-by: Muhammad Ashfaq <[email protected]>
Signed-off-by: Muhammad Ashfaq <[email protected]>
import os # ADD | ||
from glob import glob # ADD |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is looking better, but we should still remove the # ADD
lines on these lines. Once that is done, I'm happy with this.
Signed-off-by: Muhammad Ashfaq <[email protected]>
Signed-off-by: Muhammad Ashfaq <[email protected]>
it looks fine now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great! Thank you for iterating.
@Mergifyio backport rolling iron |
✅ Backports have been created
|
* Update Launch-system.rst added comments to the code. I think the it is better if we tell beginner what's changed, especially the addition of ``` import os from glob import glob ``` Otherwise, a beginner might not notice this and will take some time to figure out what's not working (happened to me). Other part of documentation followed this. For example: https://docs.ros.org/en/humble/Tutorials/Intermediate/Tf2/Writing-A-Tf2-Broadcaster-Py.html#update-setup-py Signed-off-by: Muhammad Ashfaq <[email protected]> Co-authored-by: Tomoya Fujita <[email protected]> (cherry picked from commit 482dcd2) # Conflicts: # source/Tutorials/Intermediate/Launch/Launch-system.rst
* Update Launch-system.rst added comments to the code. I think the it is better if we tell beginner what's changed, especially the addition of ``` import os from glob import glob ``` Otherwise, a beginner might not notice this and will take some time to figure out what's not working (happened to me). Other part of documentation followed this. For example: https://docs.ros.org/en/humble/Tutorials/Intermediate/Tf2/Writing-A-Tf2-Broadcaster-Py.html#update-setup-py Signed-off-by: Muhammad Ashfaq <[email protected]> Co-authored-by: Tomoya Fujita <[email protected]> (cherry picked from commit 482dcd2) # Conflicts: # source/Tutorials/Intermediate/Launch/Launch-system.rst
* Update Launch-system.rst added comments to the code. I think the it is better if we tell beginner what's changed, especially the addition of ``` import os from glob import glob ``` Otherwise, a beginner might not notice this and will take some time to figure out what's not working (happened to me). Other part of documentation followed this. For example: https://docs.ros.org/en/humble/Tutorials/Intermediate/Tf2/Writing-A-Tf2-Broadcaster-Py.html#update-setup-py Signed-off-by: Muhammad Ashfaq <[email protected]> Co-authored-by: Tomoya Fujita <[email protected]> (cherry picked from commit 482dcd2) # Conflicts: # source/Tutorials/Intermediate/Launch/Launch-system.rst
* Update Launch-system.rst added comments to the code. I think the it is better if we tell beginner what's changed, especially the addition of ``` import os from glob import glob ``` Otherwise, a beginner might not notice this and will take some time to figure out what's not working (happened to me). Other part of documentation followed this. For example: https://docs.ros.org/en/humble/Tutorials/Intermediate/Tf2/Writing-A-Tf2-Broadcaster-Py.html#update-setup-py Signed-off-by: Muhammad Ashfaq <[email protected]> Co-authored-by: Tomoya Fujita <[email protected]> (cherry picked from commit 482dcd2) # Conflicts: # source/Tutorials/Intermediate/Launch/Launch-system.rst
* Update Launch-system.rst added comments to the code. I think the it is better if we tell beginner what's changed, especially the addition of ``` import os from glob import glob ``` Otherwise, a beginner might not notice this and will take some time to figure out what's not working (happened to me). Other part of documentation followed this. For example: https://docs.ros.org/en/humble/Tutorials/Intermediate/Tf2/Writing-A-Tf2-Broadcaster-Py.html#update-setup-py Signed-off-by: Muhammad Ashfaq <[email protected]> Co-authored-by: Tomoya Fujita <[email protected]> (cherry picked from commit 482dcd2) # Conflicts: # source/Tutorials/Intermediate/Launch/Launch-system.rst Co-authored-by: Muhammad Ashfaq <[email protected]>
* Update Launch-system.rst added comments to the code. I think the it is better if we tell beginner what's changed, especially the addition of ``` import os from glob import glob ``` Otherwise, a beginner might not notice this and will take some time to figure out what's not working (happened to me). Other part of documentation followed this. For example: https://docs.ros.org/en/humble/Tutorials/Intermediate/Tf2/Writing-A-Tf2-Broadcaster-Py.html#update-setup-py Signed-off-by: Muhammad Ashfaq <[email protected]> Co-authored-by: Tomoya Fujita <[email protected]> (cherry picked from commit 482dcd2) # Conflicts: # source/Tutorials/Intermediate/Launch/Launch-system.rst Co-authored-by: Muhammad Ashfaq <[email protected]>
added comments to the code.
I think the it is better if we tell beginner what's changed, especially the addition of
Otherwise, a beginner might not notice this and will take some time to figure out what's not working (happened to me).
Other part of documentation followed this. For example: https://docs.ros.org/en/humble/Tutorials/Intermediate/Tf2/Writing-A-Tf2-Broadcaster-Py.html#update-setup-py