Deprecate ParseMultiRobotPose with launch.actions.ForEach#5000
Deprecate ParseMultiRobotPose with launch.actions.ForEach#5000SteveMacenski merged 3 commits intoros-navigation:mainfrom leander-dsouza:migrate_to_launch_for_each
ParseMultiRobotPose with launch.actions.ForEach#5000Conversation
|
@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.
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.
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?
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>
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: