Software Archive
Read-only legacy content
17061 Discussions

IR and RGB

Kyle_B_
Beginner
490 Views

Hello, the following pertains to the R200

Using the PXCSenseManager and EnableStreams() I cannot access Color and IR (left or right) at the same time.

	R200manager = PXCSenseManager::CreateInstance();
	
	//success?
	if (!R200manager) return;

	R200manager->EnableStream(PXCCapture::STREAM_TYPE_LEFT, 480, 360, 60.0);
	R200manager->EnableStream(PXCCapture::STREAM_TYPE_COLOR, 640, 480, 60.0);

	R200manager->Init(&R200frameHandler);

As seen below, the RealSense SDK Capture Viewer can stream both at once. When my program tries to Init(), it returns an error saying the combination of streams is unsupported. Why can't my program do what the Capture Viewer does?

0 Kudos
2 Replies
Dmitry_Z_Intel
Employee
490 Views

You can use DF_RawStreams to review supported profile combinations for R200. When you select particular color resolution, you will see all incompatible profiles for Depth and IR greyed out. For Color & Left IR, please also select Depth stream (this is what capture viewer doing internally).

0 Kudos
Kyle_B_
Beginner
490 Views

I have fixed it by supplying an integer for the FPS argument instead of the pxcf32 it asked for. Everything works as it should. On a side note it seems this was a design decision but not particularly enforced.

0 Kudos
Reply