librealsense icon indicating copy to clipboard operation
librealsense copied to clipboard

realsense_viewer with automatic control

Open TAREK-ELOUARET opened this issue 8 years ago • 5 comments

Hello Everyone,

As I am a new in field of programming and c++, all what I want is, what's the differents changes to make in order to open realsense_viewer programm cpp with an fixed control and record ( to save a bag) ( without interacting by users).

Thanks in advance.

TAREK-ELOUARET avatar Jul 19 '18 13:07 TAREK-ELOUARET

I don't really see the point of opening the RealSense Viewer if you don't want to change the parameters, so I assume you mean "rendering a stream with fixed parameters" instead, am I right ?

I would recommend you check out the examples codes : https://github.com/IntelRealSense/librealsense/tree/master/examples

Maybe try combining : https://github.com/IntelRealSense/librealsense/blob/master/wrappers/opencv/imshow/rs-imshow.cpp with https://github.com/IntelRealSense/librealsense/blob/master/examples/save-to-disk/rs-save-to-disk.cpp to render the stream and save a file (again, I'm assuming that's what you want to do).

And if you are beginning, take a look at : https://github.com/IntelRealSense/librealsense/wiki/API-How-To

AntoineWefit avatar Jul 19 '18 15:07 AntoineWefit

Hi @TAREK-ELOUARET Thank you for your input. Writing dedicated C++ / python code is probably better long term solution. Opening the Viewer to limited automation is an interesting idea (that we also explore in need for better testing). We will consider it.

dorodnic avatar Jul 19 '18 16:07 dorodnic

Hi @AntoineWefit I made some modifications in record-playback file so I could resolve my problem, instead, I have tried to implement opencv with realsense ( as libraries ) but the result is less reliable (very slow in record and streaming ) than using and exploit realsense parameters.

So thank's for your help Sir.

@dorodnic I would like to appreciate your time and consideration, you helped me in lot of issues, so thanks' in advance

TAREK-ELOUARET avatar Jul 20 '18 09:07 TAREK-ELOUARET

[Realsense Customer Engineering Team Comment] @TAREK-ELOUARET If the issue is solved and no further question, please help to close the ticket, thank you.

@RealSense-Customer-Engineering I'd like to keep this is open as enhancement request.

dorodnic avatar Jul 23 '18 08:07 dorodnic