-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Deprecate ParseMultiRobotPose with launch.actions.ForEach
#5000
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
Deprecate ParseMultiRobotPose with launch.actions.ForEach
#5000
Conversation
|
@SteveMacenski I am not sure why |
|
@leander-dsouza are you on the latest version of the |
SteveMacenski
left a comment
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.
Thanks for much for this, I love using new features in ROS 2 😄
| import yaml | ||
|
|
||
|
|
||
| def count_robots(context: LaunchContext) -> list[LogInfo]: |
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.
It's kind of unfortunate that you have to do this and parse the config string yourself. What if the ForEach action itself logged the number of iterations?
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.
That would be great!
Signed-off-by: Leander Stephen D'Souza <leanderdsouza1234@gmail.com>
Signed-off-by: Leander Stephen D'Souza <leanderdsouza1234@gmail.com>
Signed-off-by: Leander Stephen D'Souza <leanderdsouza1234@gmail.com>
SteveMacenski
left a comment
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.
Waiting on CI!
Codecov ReportAll modified and coverable lines are covered by tests ✅ see 1 file with indirect coverage changes 🚀 New features to boost your workflow:
|
…vigation#5000) * Removed ParseMultiRobotPose and introduced ForEach instead. Signed-off-by: Leander Stephen D'Souza <leanderdsouza1234@gmail.com> * Deprecated ParseMultiRobotPose throughout the codebase. Signed-off-by: Leander Stephen D'Souza <leanderdsouza1234@gmail.com> * Bump version to break cache. Signed-off-by: Leander Stephen D'Souza <leanderdsouza1234@gmail.com> --------- Signed-off-by: Leander Stephen D'Souza <leanderdsouza1234@gmail.com> Signed-off-by: stevedanomodolor <stevedan.o.omodolor@gmail.com>
…vigation#5000) * Removed ParseMultiRobotPose and introduced ForEach instead. Signed-off-by: Leander Stephen D'Souza <leanderdsouza1234@gmail.com> * Deprecated ParseMultiRobotPose throughout the codebase. Signed-off-by: Leander Stephen D'Souza <leanderdsouza1234@gmail.com> * Bump version to break cache. Signed-off-by: Leander Stephen D'Souza <leanderdsouza1234@gmail.com> --------- Signed-off-by: Leander Stephen D'Souza <leanderdsouza1234@gmail.com> Signed-off-by: Sakshay Mahna <sakshum19@gmail.com>
Basic Info
Description of contribution in a few bullet points
Modified multi-robot string to add a
nameandposekey for each robot.From:
To:
I have taken inspiration from the boilerplate code in #802.
Deprecated
ParseMultiRobotPosethroughout the codebase and have usedlaunch.actions.ForEachinstead.Added a function to calculate the number of robots in the string to preserve the earlier behaviour.
Description of documentation updates required from your changes
Description of how this change was tested
colcon testlocally and found no errors.Future work that may be required in bullet points
For Maintainers: