-
Notifications
You must be signed in to change notification settings - Fork 260
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
Rosbag2 py #638
Rosbag2 py #638
Conversation
* Initialize new package rosbag2_py Signed-off-by: Jacob Perron <[email protected]> (cherry picked from commit f2ec0b7) * Proof-of-concept implementation using pybind11 Expose the sequential reader to iterate over messages from Python. Signed-off-by: Jacob Perron <[email protected]> (cherry picked from commit dc68894) * pybind StorageOptions and ConverterOptions; linter fixes Signed-off-by: Mabel Zhang <[email protected]> (cherry picked from commit 91f6763) * return timestamp Signed-off-by: Mabel Zhang <[email protected]> (cherry picked from commit deafbf8) * simplify binding of structs Signed-off-by: Mabel Zhang <[email protected]> (cherry picked from commit da561cc) * pybind TopicMetadata Signed-off-by: Mabel Zhang <[email protected]> (cherry picked from commit 4a4e1b8) * namespace rosbag2 -> rosbag2_cpp Signed-off-by: Mabel Zhang <[email protected]> * small fixes Signed-off-by: Mabel Zhang <[email protected]> * initial pytests Signed-off-by: Mabel Zhang <[email protected]> * wrap Reader instead of SequentialReader Signed-off-by: Mabel Zhang <[email protected]> * small fixes for PR comments Signed-off-by: Mabel Zhang <[email protected]> * change workflow to autotest feature branch Signed-off-by: Mabel Zhang <[email protected]> * revert workflow Signed-off-by: Mabel Zhang <[email protected]> * added writer and writer tests Signed-off-by: Mabel Zhang <[email protected]> * fix test path setup Signed-off-by: Mabel Zhang <[email protected]> * fix and make more rigorous writer test Signed-off-by: Mabel Zhang <[email protected]> * wrapper and test for topic filter Signed-off-by: Mabel Zhang <[email protected]> * linters. change pybind package Signed-off-by: Mabel Zhang <[email protected]> * simplify verbose import Signed-off-by: Mabel Zhang <[email protected]> * tidy up Signed-off-by: Mabel Zhang <[email protected]> * explicit subclasses of Reader and Writer Signed-off-by: Mabel Zhang <[email protected]> * Use template specialization instead of inheritence This makes the implementation slightly more compact. And adding a new specialization should be more straight forward as we only have to modify the cpp file in one place. Signed-off-by: Jacob Perron <[email protected]> * Remove temporary variable Signed-off-by: Jacob Perron <[email protected]> * Remove unused member variable Signed-off-by: Jacob Perron <[email protected]> * Move to initializer list Signed-off-by: Jacob Perron <[email protected]> * refactor into reader writer storage Signed-off-by: Mabel Zhang <[email protected]> * cleanup includes Signed-off-by: Mabel Zhang <[email protected]> * switch back to pybind11_vendor Signed-off-by: Mabel Zhang <[email protected]> * Packages dependency for CI Signed-off-by: Mabel Zhang <[email protected]> * printout to debug CI test failure Signed-off-by: Mabel Zhang <[email protected]> * use tempfile for writer test, add exec_depend Signed-off-by: Mabel Zhang <[email protected]> * remove exec_depend Signed-off-by: Mabel Zhang <[email protected]> * use pytest fixture tmp_path; add rosbag2_py to rosbag2 Signed-off-by: Mabel Zhang <[email protected]> * add makedirs back to see CI result Signed-off-by: Mabel Zhang <[email protected]> * fix import error Signed-off-by: Mabel Zhang <[email protected]> * cleanup Signed-off-by: Mabel Zhang <[email protected]> * add modules explicitly for windows CI Signed-off-by: Mabel Zhang <[email protected]> * cleanup Signed-off-by: Mabel Zhang <[email protected]> * try more <test_depend>s for mac test failure Signed-off-by: Mabel Zhang <[email protected]> * wrap structs with named arguments for Python keyword params Signed-off-by: Mabel Zhang <[email protected]> * add pytest.ini Signed-off-by: Mabel Zhang <[email protected]> * add rosbag db3-shm and db3-wal files for macOS test Signed-off-by: Mabel Zhang <[email protected]> Co-authored-by: Jacob Perron <[email protected]> Co-authored-by: Andreas Klintberg <[email protected]> Signed-off-by: Alexander Gutenkunst <alex.gutenkunst+github.com>
* AMENT_IGNORE rosbag2_py Signed-off-by: Mabel Zhang <[email protected]> * remove rosbag2_py from meta package Signed-off-by: Mabel Zhang <[email protected]> Signed-off-by: Alexander Gutenkunst <alex.gutenkunst+github.com>
2551134
to
593f526
Compare
There is also #625, which is proposing a full backport |
Do you suggest a close of this draft PR in favor of #625 or are the PRs complementary such that this PR could be merged first? The buildfarm seems to have a warning
not sure what to make of it.... |
Yes, the suggestion is closing this PR in favor of #625, which contains everything currently on |
Ok closing |
Considering that Foxy is supposed to stay until May 2023 I think adding rosbag2_py could help a lot of users.
This PR is primarly intented to open the discussion.
Previously discussed in: #308 (comment)
I think the opinion of @mabelzhang @jacobperron @mjeronimo @ros2/tooling-approvers is valueable here.