-
Notifications
You must be signed in to change notification settings - Fork 248
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
Add jump/seek API for Player class #826
Add jump/seek API for Player class #826
Conversation
MichaelOrlov
commented
Jul 28, 2021
- Closes Add jump/seek API for the Player class #821
Signed-off-by: Michael Orlov <michael.orlov@apex.ai>
Signed-off-by: Michael Orlov <michael.orlov@apex.ai>
3cef05b
to
e943710
Compare
Signed-off-by: Michael Orlov <michael.orlov@apex.ai>
Signed-off-by: Michael Orlov <michael.orlov@apex.ai>
… number of messages in bag. Signed-off-by: Michael Orlov <michael.orlov@apex.ai>
Signed-off-by: Michael Orlov <michael.orlov@apex.ai>
…tFixture class Signed-off-by: Michael Orlov <michael.orlov@apex.ai>
…estamp Signed-off-by: Michael Orlov <michael.orlov@apex.ai>
I am considering to add one more unit test and probably switch to the real rosbag2 file instead of mock reader. |
…ests for these cases Signed-off-by: Michael Orlov <michael.orlov@apex.ai>
Signed-off-by: Michael Orlov <michael.orlov@apex.ai>
ac3d8e1
to
07e33e9
Compare
Ready for review. |
Thanks for the update. I was on vacation last week but will review it this week |
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.
Overall this looks fine - a few non-blocking comments that you can address if you like
Gist: |
@emersonknapp CI fails with errors in
Should I modify |
* Protect reader with mutex Signed-off-by: Michael Orlov <michael.orlov@apex.ai> * Add seek API to the Player class Signed-off-by: Michael Orlov <michael.orlov@apex.ai> * Add unit tests for player seek API with mock reader Signed-off-by: Michael Orlov <michael.orlov@apex.ai> * Fix copyright in test_play_next.cpp Signed-off-by: Michael Orlov <michael.orlov@apex.ai> * Modify unit tests to cover cases when message queue size smaller than number of messages in bag. Signed-off-by: Michael Orlov <michael.orlov@apex.ai> * Move mock_player to the separate header file Signed-off-by: Michael Orlov <michael.orlov@apex.ai> * Segregate repeating variables in unit tests to the RosBag2PlaySeekTestFixture class Signed-off-by: Michael Orlov <michael.orlov@apex.ai> * Add checks in unit tests for seek backward and forward with exact timestamp Signed-off-by: Michael Orlov <michael.orlov@apex.ai> * Properly handle seek operation from the end of the bag and add unit tests for these cases Signed-off-by: Michael Orlov <michael.orlov@apex.ai> * Replace MockReader with real bag for tests Signed-off-by: Michael Orlov <michael.orlov@apex.ai> Signed-off-by: Wojciech Jaworski <wojciech.jaworski@robotec.ai>