-
Notifications
You must be signed in to change notification settings - Fork 261
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
Expose reading selective topic to command line playback #342
Labels
enhancement
New feature or request
Comments
mabelzhang
added a commit
that referenced
this issue
Apr 15, 2020
* add filter for selecting topics to read Signed-off-by: Mabel Zhang <[email protected]> * add StorageFilter Signed-off-by: Mabel Zhang <[email protected]> * add safety check for storage pointer; add reset_filter Signed-off-by: Mabel Zhang <[email protected]> * add set_filter and reset_filter to Reader Signed-off-by: Mabel Zhang <[email protected]> * fix mock sequential reader for rosbag2_transport test Signed-off-by: Mabel Zhang <[email protected]> * add topic filter to transport play options Signed-off-by: Mabel Zhang <[email protected]> * add selective topics to cmd line Signed-off-by: Mabel Zhang <[email protected]> * fix cpplint Signed-off-by: Mabel Zhang <[email protected]> * end to end read test Signed-off-by: Mabel Zhang <[email protected]> * fix cmd line args Signed-off-by: Mabel Zhang <[email protected]> * add play end to end test for filter topic Signed-off-by: Mabel Zhang <[email protected]> * remove read test Signed-off-by: Mabel Zhang <[email protected]> * remove read test in CMakeList Signed-off-by: Mabel Zhang <[email protected]> * fix flake8 Signed-off-by: Mabel Zhang <[email protected]> * address PR comments Signed-off-by: Mabel Zhang <[email protected]> * revert rosbag2_cpp Reader Signed-off-by: Mabel Zhang <[email protected]> * unrevert rosbag2_cpp Reader Signed-off-by: Mabel Zhang <[email protected]> * address PR comments Signed-off-by: Mabel Zhang <[email protected]> * vector initialization Signed-off-by: Mabel Zhang <[email protected]> * remove line break Signed-off-by: Mabel Zhang <[email protected]> * fix merge errors Signed-off-by: Mabel Zhang <[email protected]> * style Signed-off-by: Mabel Zhang <[email protected]> * alpha order Signed-off-by: Mabel Zhang <[email protected]>
Probably need to do a test robustness pass before closing this ticket |
This functionality has been implemented |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
Expose the functionality in #302, reading a selective set of topics, to the command line as options under
ros2 bag play
.The specific command format is up to suggestion. I did not find such a playback flag in the ROS 1 bag tutorial, but there was such a format for recording:
where
-O
specifies the output file, and the remaining arguments are the topics to record.Maybe playback can use
-I
for the input file? That flag is free right now.Related Issues
Depends on #302
Completion Criteria
User is able to specify a subset of topics on the command line to play back.
If no topics are specified, all topics should be played back as normal.
Implementation Notes / Suggestions
Command line args should be added to
ros2bag/ros2bag/verb/play.py
.Topic list should be added to
rosbag2_transport/include/rosbag2_transport/play_options.hpp
.Functionality should be added to
rosbag2_transport/src/rosbag2_transport/player.cpp
.Testing Notes / Suggestions
End-to-end tests should be added to
rosbag2_tests/test/rosbag2_tests/test_rosbag2_play_end_to_end.cpp
.See
rosbag2_storage_default_plugins/test/rosbag2_storage_default_plugins/sqlite/test_sqlite_storage.cpp
for existing tests for the filtering functionality.The text was updated successfully, but these errors were encountered: