Hello everyone,
I have some problem.
I want to set camera configurations with 320*240 and 60 fps.
So, I used :
astra::Astra::initialize();
astra::StreamSet streamSet;
astra::StreamReader reader = streamSet.create_reader();
astra::ImageStreamMode colorMode;
colorMode.set_width(320);
colorMode.set_height(240);
colorMode.set_pixelFormat(astra_pixel_formats::ASTRA_PIXEL_FORMAT_RGB888);
colorMode.set_fps(60);
astra::ImageStreamMode depthMode;
depthMode.set_width(320);
depthMode.set_height(240);
depthMode.set_pixelFormat(astra_pixel_formats::ASTRA_PIXEL_FORMAT_DEPTH_MM);
depthMode.set_fps(60);
auto colorStream=reader.streamastra::ColorStream();
auto depthStream = reader.streamastra::DepthStream();
colorStream.set_mode(colorMode);
depthStream.set_mode(depthMode);
colorStream.start();
depthStream.start();
And then, for checking fps, I used listener class and astra_temp_update() function with check_fps() provided by example.
FrameChecker watch;
reader.addListener(watch);
while (true)
{
astra_temp_update();
}
However, this program always returned around 30 fps, not 60 fps, even though I confirmed mode change in console window.
I did nothing in this program, except for the check_fps().
Is this a limitation of astra_temp_update() or a problem of my program?
Please let me know how I can get the fps I want.
Thank you.