-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
fix: Changed cloned_multi_tb3_simulation_launch.py file to conform with common ROS 2 launch syntax #4811
fix: Changed cloned_multi_tb3_simulation_launch.py file to conform with common ROS 2 launch syntax #4811
Conversation
5e6024e
to
d843e30
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅ |
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.
I'm not sure this is the best way to handle the problem. I think what makes more sense is to have the parsing nav2_common
utility be a proper launch substitution https://github.com/ros2/launch_ros/tree/rolling/launch_ros/launch_ros/substitutions. I think that would make this work better and be in the intended launch file's declarative style (rather than trying to get around it using opaque functions). If we're going to try to circumnavigate declarative programming, I think we might be better off using the current styling instead since its more clear to new developers and is equally as circumnavigated
I'll have a look at this. Thanks for the feedback |
dd71279
to
9b31d75
Compare
@TannerGilbert, your PR has failed to build. Please check CI outputs and resolve issues. |
9460f4c
to
a4f19d7
Compare
@TannerGilbert, your PR has failed to build. Please check CI outputs and resolve issues. |
@SteveMacenski sorry for the delay. I had a look at how to write a custom substitution class and tried to refactor the ParseMultiRobotPose accordingly. Still, as a dict is needed in the launchfile to the bringup_cmd_group list I wasn't fully able to remove the OpaqueFunction. Maybe my ROS knowledge is insufficient. I would be glad for any feedback and sorry for the inconvenience. |
OK - we can use the opaque function method! |
Please rebase / pull in main and that should make CI turn over. TF2 had some API changes we fixed over the weekend |
…mmon ROS 2 launch syntax and thereby allow for including it in other launch files as expected Signed-off-by: Tanner, Gilbert <gilbertta@edu.aau.at>
Signed-off-by: Tanner, Gilbert <gilbertta@edu.aau.at> chore: Changed formatting to conform to flake8 linting rules II Signed-off-by: Tanner, Gilbert <gilbertta@edu.aau.at> chore: Changed formatting to conform to flake8 linting rules III Signed-off-by: Tanner, Gilbert <gilbertta@edu.aau.at> chore: Changed formatting to conform to flake8 linting rules IV Signed-off-by: Tanner, Gilbert <gilbertta@edu.aau.at>
Signed-off-by: Tanner, Gilbert <gilbertta@edu.aau.at>
Signed-off-by: Tanner, Gilbert <gilbertta@edu.aau.at>
Signed-off-by: Tanner, Gilbert <gilbertta@edu.aau.at>
5e06fdf
to
9f4ef45
Compare
@TannerGilbert, your PR has failed to build. Please check CI outputs and resolve issues. |
…rgument_for_cloned_multi_tb3
I updated the PR based on the change request. Thanks for all the feedback and patience. |
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.
Very minor changes, but LGTM!
Last thing is to add this to our migration guide so people know about these changes! https://docs.nav2.org/migration/Jazzy.html
Signed-off-by: Tanner, Gilbert <gilbertta@edu.aau.at>
@TannerGilbert just sanity check me that you tested that the default works now after the updates & that it works when you specify some other robot parameters? We don't have system tests that run the multirobot case, so I just want to have that verified explicitly before I merge. |
Yes I checked after doing the changes that the behaviour didn't change. For a bit more detail when running
When supplying a custom position like
|
Thanks for the efforts and getting this to completion! I pride myself that Nav2 is generally a 'best practices' ROS 2 codebase as an example, so its really good to fix this up to be in line with the best practices. Thanks for your time! |
…th common ROS 2 launch syntax (ros-navigation#4811) * Changed cloned_multi_tb3_simulation_launch.py file to conform with common ROS 2 launch syntax and thereby allow for including it in other launch files as expected Signed-off-by: Tanner, Gilbert <gilbertta@edu.aau.at> * chore: Changed formatting to conform to flake8 linting rules Signed-off-by: Tanner, Gilbert <gilbertta@edu.aau.at> chore: Changed formatting to conform to flake8 linting rules II Signed-off-by: Tanner, Gilbert <gilbertta@edu.aau.at> chore: Changed formatting to conform to flake8 linting rules III Signed-off-by: Tanner, Gilbert <gilbertta@edu.aau.at> chore: Changed formatting to conform to flake8 linting rules IV Signed-off-by: Tanner, Gilbert <gilbertta@edu.aau.at> * Changed ParseMultiRobotPose to be a launch substitution class Signed-off-by: Tanner, Gilbert <gilbertta@edu.aau.at> * chore: Changed formatting to conform to flake8 linting rules II Signed-off-by: Tanner, Gilbert <gilbertta@edu.aau.at> * Changed formatting based on PR feedback Signed-off-by: Tanner, Gilbert <gilbertta@edu.aau.at> * Undo removal of position parsing options Signed-off-by: Tanner, Gilbert <gilbertta@edu.aau.at> --------- Signed-off-by: Tanner, Gilbert <gilbertta@edu.aau.at> Signed-off-by: RBT22 <rozgonyibalint@gmail.com>
Basic Info
Description of contribution in a few bullet points
Description of documentation updates required from your changes
None
Future work that may be required in bullet points
I would prefer that the headless and SLAM options are added to this script similar to how it's handled in the tb3_simulation_launch.py file
For Maintainers: