I tried to use two Astra mini s sensors using OpenNI2 Extended API.
I need to use Extended APIs to switch on and off lasers during two sensors are started.
But my program was stopped after several readings.
(My dev. platform is Visual Studio 2017 on MS Windows 10 x64)
Is there anyone to know the solution for my application.
Are there any other methods to use multiple Astra reading with laser switching.
Followings are my pseudo codes for multiple reading with laser switching.
…
laser = 1;
device[0].setProperty(openni::OBEXTENSION_ID_LASER_EN,(uint8_t*)&laser,4);
depth[0].readFrame(&depthFrame1);
laser = 0;
device[0].setProperty(openni::OBEXTENSION_ID_LASER_EN,(uint8_t*)&laser,4);
laser = 1;
device[1].setProperty(openni::OBEXTENSION_ID_LASER_EN,(uint8_t*)&laser,4);
depth[1].readFrame(&depthFrame1);
laser = 0;
device[1].setProperty(openni::OBEXTENSION_ID_LASER_EN,(uint8_t*)&laser,4);
…