Hello dear support team,
i am currently working with your oak-1-w. The camera is used to validate the position which we track via ultrasonic sensors. I have already read your post about latency
https://docs.luxonis.com/projects/api/en/latest/samples/host_side/latency_measurement/
and tried using adopting the python solution for my c++ code.
If i try using:
dai::Clock::now();
i get a error message stating, that there is no member named clock in namespace dai.
Is there a solution for my problem or a workaround? Or am I mistaken with my approach?
My camera is initialized as:
std::cout << "Starting Camera initialization" << std::endl;
dai::Pipeline pipeline;
auto camRgb = pipeline.create<dai::node::ColorCamera>();
camRgb->setResolution(dai::ColorCameraProperties::SensorResolution::
THE_12_MP
);
camRgb->setInterleaved(false);
camRgb->setIspScale(1, 1);
camRgb->setColorOrder(dai::ColorCameraProperties::ColorOrder::
RGB
);
camRgb->setFps(25);
auto xoutIsp = pipeline.create<dai::node::XLinkOut>();
xoutIsp->setStreamName("isp");
camRgb->isp.link(xoutIsp->input);
auto manip = pipeline.create<dai::node::ImageManip>();
manip->setMaxOutputFrameSize(270000);
manip->initialConfig.setResizeThumbnail(300, 300);
camRgb->preview.link(manip->inputImage);
dai::Device *device = new dai::Device(pipeline);
qIsp = device->getOutputQueue("isp");
std::cout << "Initialized camera. Starting to transmit imageframes." << std::endl;
Kind regards
Henrik