-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
RealSense error calling rs2_pipeline_wait_for_frames(pipe:0x7f8401b180): Frame didn't arrived within 15000 in jeston TX2 #6518
Comments
I found that the rs2::error is generated when executing the pipe.wait_for_frames() function in another program |
It sounds as though you want the pipeline to close cleanly when the camera is unplugged, and that it closes successfully on Jetson TX2 when unplugging but not in another program. Is that correct, please? Also, is your other program on the Jetson TX2 or a diferent computer? The link below may be a useful C++ reference about creating code to close the pipeline when the camera is detected to be unplugged. |
when I use this test code ,it will not get the rs2::error when I stop the program by Ctrl+C andthen rerun the same program in the same jestonTX2.
static bool flag; };
} RealSenseCamera::~RealSenseCamera() int main()
} |
@shiguangzqz Thanks very much for sharing your code with the RealSense community. Good luck! |
Hello. I think i find something about how to better use realsense in JestonTx2 1.rs2::pipeline.start() /rs2::pipeline.stop() /rs2::pipeline.wait_for_frames will throw exception,so when we use some code about realsense ,we have to try{} catch() them to avoid something error happen. 2.before you use the rs2::pipeline.start(), I suggest you make sure to enum the devices.This will make you program stronger.If you not enum the devices and there is not device in your tx2, start function will wait a few seconds and then throw exception. 3.start() and stop() must use symmetricly.Never stop before start . Thank you for seeing the last |
@shiguangzqz I went over your kindly provided script very carefully. It looks to me as though the way that you have designed it is good. There is a script in the link below provided by a RealSense team member that does the same set of functions (enum device, stream color and depth, catch errors, start and stop streams, etc). It may be worth trying to see if it performs better than your own script. |
Hi @shiguangzqz Do you still require assistance with this case please? Thanks! |
hello,I install the realsense-viewer by But,now I find the version of realSense-viewer in JestonTx2 is 2.28 .Howerver the newest version of realSense-viewer is 2.33 in Windows and X86-linux . |
Hi @shiguangzqz Apologies for the delay in responding further, as I was talking with Intel about the recommended method for installing Librealsense packages on Jetson. They recommended the command below for installing / upgrading Librealsense on Jetson using packages: sudo apt upgrade If you want to check what the current version of the packages are, you can use a two step process. The packages are named after the Librealsense SDK version that they were built from.
|
Hi @shiguangzqz Do you reuire further assistance with this case please, or can it be closed? Thanks! |
Case closed due to no further comments received. |
hello ,I install the librealsense2 by the doc/installation_jetson.md successfully in JestonTx2 ,and I successfully run my program to get photo data and depth data by this realsense2 in JestonTx2.
But now I found when I open the device in my program and after get some framse data ,if I close my program suddenly (ctrl + c) whitout use the pipeline.stop(), it will failed to open device in my another program,it return a rs2::error:RealSense error calling rs2_pipeline_wait_for_frames(pipe:0x7f8401b180): Frame didn't arrived within 15000
But when I remove and reinsert the device in jestonTx2,it can done normally
my realsense so version : librealsense2.so.2.28
my realsense firmware version :05.12.01.00
this is my code :
`rs2::config cfg;
rs2::pipeline pipe;
cfg.enable_stream(RS2_STREAM_COLOR, 640, 480, RS2_FORMAT_BGR8, 30);
cfg.enable_stream(RS2_STREAM_DEPTH, 640, 480, RS2_FORMAT_Z16, 30);
pipe.start(cfg);
auto frames=pipe.wait_for_frames()
//do something
...
pipe.stop()`
The text was updated successfully, but these errors were encountered: