Items with no label
3338 Discussions

im trying to get the tare calibration to work. im using rs2_run_tare_calibration API with latest firmware and sdk;however, I always get calibration table which is set to NULL. I was wondering if anyone tried this API and whether im missing some steps here

ENoac1
Beginner
1,093 Views

std::future<const rs2_raw_data_buffer*> RealSenseDevice::startCalibration(const float ground_truth_mm, const void *jsonContent,int contentSize,rs2_update_progress_callback_ptr progressCallback, const int timeout) {

auto future = std::async(std::launch::async,[this,ground_truth_mm,jsonContent,contentSize,progressCallback,timeout]()->const rs2_raw_data_buffer*{

rs2_error* e = nullptr;

auto calibrationTable = rs2_run_tare_calibration(device.get().get(),20000,NULL,NULL,NULL,NULL,timeout*10,&e);

if(calibrationTable!= nullptr){

Log::Debug("SUCCESSSSSSSSSSSSSSSSSS!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!") << Log::Endl;

} else

Log::Debug("FAILEDDDDDDDDDDDDDDDDDDDDDDDDDDDDD!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!") << Log::Endl;

return calibrationTable;

});

return future;

}

 

0 Kudos
2 Replies
MartyG
Honored Contributor III
996 Views

There is not much information available about tare calibration at present, so I recommend posting your question at the RealSense GitHub site so that a member of the RealSense developer team there can reply to it. You can post a question by visiting the link below and clicking the 'New Issue' button. Thanks four your patience!

 

https://github.com/IntelRealSense/librealsense/issues

0 Kudos
ENoac1
Beginner
996 Views

thank you

 

0 Kudos
Reply