Skip to content
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

Potential Python binding issue #1545

Closed
jimmy82 opened this issue Apr 16, 2018 · 7 comments
Closed

Potential Python binding issue #1545

jimmy82 opened this issue Apr 16, 2018 · 7 comments
Assignees

Comments

@jimmy82
Copy link

jimmy82 commented Apr 16, 2018

  • Before opening a new issue, we wanted to provide you with some useful suggestions (Click "Preview" above for a better view):

  • All users are welcomed to report bugs, ask questions, suggest or request enhancements and generally feel free to open new issue, even if they haven't followed any of the suggestions above :)


Required Info
Camera Model SR300
Firmware Version (Open RealSense Viewer --> Click info)
Operating System & Version Linux (Ubuntu 14/16/17) / MacOS
Kernel Version (Linux Only) 4.14.13
Platform PC
SDK Version 2.10.3

Issue Description

I was trying to call the 'seek' function in rs2::playback to control the playback of .bag files.

However, PyBind issue a critical error as it was unable to translate the float parameter into the Chrono object. It suggested me to re-check the compilation of the PyBind headers.

Is this implementation incomplete? Alternative, is there an easier way to seek a .bag file and also be notified at the end of the playback?

Thanks.

@jimmy82
Copy link
Author

jimmy82 commented Apr 16, 2018

Hi, thanks for the support.

Is there a Python example where I can use a playback device context to read all video frames without frame drop?

@dorodnic
Copy link
Contributor

Hi @jimmy82
At the moment, no, but we will try to add such an example (@lramati / @AnnaRomanov could you please assist?)

@jimmy82
Copy link
Author

jimmy82 commented Apr 16, 2018 via email

@dorodnic
Copy link
Contributor

I'm closing the seek issue. We are looking into adding the python code snippet you requested. You can open a separate issue on this for follow-up if you'd like.

@jimmy82
Copy link
Author

jimmy82 commented Apr 18, 2018 via email

@soarwing52
Copy link

soarwing52 commented Sep 4, 2019

Hi, I haven't found any functioning example of playback.seek in python

I can get playback. [current_status,file_name,get_duration,get_position,pause, resume, set_real_time] all working

but seek still throws back error

TypeError: seek(): incompatible function arguments. The following argument types are supported:
    1. (self: pyrealsense2.pyrealsense2.playback, Sets the playback to a specified time point of the played data.time: datetime.timedelta) -> None

Invoked with: <pyrealsense2.device: Intel RealSense D435 (S/N: 817512071792)>, 0

in which the type of my playback is <class 'pyrealsense2.pyrealsense2.playback'>
it should be correct, I would like to ask if you can also answer this

thank you

@lramati
Copy link
Contributor

lramati commented Sep 4, 2019

Can you please open a new issue for your problem and indicate when version of the SDK you are using and what the line you tried to run is?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants