-
Notifications
You must be signed in to change notification settings - Fork 251
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
minimal c++ API test #451
minimal c++ API test #451
Conversation
Signed-off-by: Karsten Knese <karsten@openrobotics.org>
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.
This is a good project. That's a lot of lines code to just write a single message into a bagfile.
GH actions are showing the linters being fixed. Merging. |
The Windows CI build shows a compiler warning (https://ci.ros2.org/job/ci_windows/11319/msbuild/) which is also present in the last nightly builds. |
This pull request has been mentioned on ROS Discourse. There might be relevant details there: https://discourse.ros.org/t/ros-2-tsc-meeting-minutes-2020-07-16/15468/1 |
* minimal c++ API test Signed-off-by: Karsten Knese <karsten@openrobotics.org> * linters Signed-off-by: Karsten Knese <karsten@openrobotics.org>
* minimal c++ API test Signed-off-by: Karsten Knese <karsten@openrobotics.org> * linters Signed-off-by: Karsten Knese <karsten@openrobotics.org>
That's a first step into improving the general C++ API for writing and reading rosbags.
The set of API calls in the test are the minimal set I could come up with in order to write a MessageT into the bag file. IMHO, there's quite some room for making this more user friendly.
SequentialReader
andSequentialWriter
the default implementation. That would allow forrosbag2_cpp::Writer writer;
to simply work.open
with only specifying theStorageOptions
should suffice and the converter functionality should be bypassed as such.unknown file: Failure C++ exception with description "unordered_map::at: key not found" thrown in the test body.
I've addressed that in this PR.malloc: *** error for object 0x7ffeefbfdc88: pointer being freed was not allocated
).