-
Notifications
You must be signed in to change notification settings - Fork 248
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add "--sort" CLI option to the "ros2 bag info" command (#1804)
* sort info output by topic name Signed-off-by: Soenke Prophet <soenke.prophet@gmail.com> * add missing imports Signed-off-by: Soenke Prophet <soenke.prophet@gmail.com> * add sorting to service topics and remove sorting option by serialization format Signed-off-by: Soenke Prophet <soenke.prophet@gmail.com> * add CLI option for sorting output and move sorting methods to enum Signed-off-by: Soenke Prophet <soenke.prophet@gmail.com> * add sorting by name to topic only option of info output Signed-off-by: Soenke Prophet <soenke.prophet@gmail.com> * move InfoSortingMethod and generate sorted idx functions to seprate files; move ServiceInformation and ServiceMetadata struct to storage package for clear include structure Signed-off-by: Soenke Prophet <soenke.prophet@gmail.com> * move ServiceInformation struct to its own header file and rename to ServiceEventInformation; replace if-else by switch-case for differantiating between sorting methods; bugfix sorting method from string resolution and service info verbose not being sorted Signed-off-by: Soenke Prophet <soenke.prophet@gmail.com> * add test-cases for sorted info output Signed-off-by: Soenke Prophet <soenke.prophet@gmail.com> * Fix linker issues - Add missing const qualifier for the generate_sorted_idx(..) version with rosbag2_cpp::rosbag2_service_info_t - Small cleanups Signed-off-by: Michael Orlov <michael.orlov@apex.ai> * Regenerate pyi stub files Signed-off-by: Michael Orlov <michael.orlov@apex.ai> * Small nitpick for using const reference in the for loop Signed-off-by: Michael Orlov <michael.orlov@apex.ai> --------- Signed-off-by: Soenke Prophet <soenke.prophet@gmail.com> Signed-off-by: Michael Orlov <michael.orlov@apex.ai> Co-authored-by: Soenke Prophet <soenke.prophet@gmail.com> Co-authored-by: Michael Orlov <michael.orlov@apex.ai>
- Loading branch information
1 parent
9774138
commit 25304dd
Showing
12 changed files
with
422 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.