fix(api): LEFT/RIGHT callback fix
This commit is contained in:
parent
96a1b2a62d
commit
22bd0fab3a
|
@ -30,6 +30,8 @@ int main(int argc, char *argv[]) {
|
||||||
api->ConfigStreamRequest(request);
|
api->ConfigStreamRequest(request);
|
||||||
|
|
||||||
// Enable motion datas with timestamp correspondence of some stream
|
// Enable motion datas with timestamp correspondence of some stream
|
||||||
|
api->EnableStreamData(Stream::LEFT);
|
||||||
|
api->EnableStreamData(Stream::RIGHT);
|
||||||
api->EnableTimestampCorrespondence(Stream::LEFT);
|
api->EnableTimestampCorrespondence(Stream::LEFT);
|
||||||
|
|
||||||
api->Start(Source::ALL);
|
api->Start(Source::ALL);
|
||||||
|
|
|
@ -384,6 +384,8 @@ void Synthetic::InitProcessors() {
|
||||||
processors_.push_back(points_processor);
|
processors_.push_back(points_processor);
|
||||||
processors_.push_back(depth_processor);
|
processors_.push_back(depth_processor);
|
||||||
using namespace std::placeholders; // NOLINT
|
using namespace std::placeholders; // NOLINT
|
||||||
|
root_processor->SetProcessCallback(
|
||||||
|
std::bind(&Synthetic::OnDeviceProcess, this, _1, _2, _3));
|
||||||
rectify_processor->SetProcessCallback(
|
rectify_processor->SetProcessCallback(
|
||||||
std::bind(&Synthetic::OnRectifyProcess, this, _1, _2, _3));
|
std::bind(&Synthetic::OnRectifyProcess, this, _1, _2, _3));
|
||||||
disparity_processor->SetProcessCallback(
|
disparity_processor->SetProcessCallback(
|
||||||
|
@ -395,6 +397,8 @@ void Synthetic::InitProcessors() {
|
||||||
depth_processor->SetProcessCallback(
|
depth_processor->SetProcessCallback(
|
||||||
std::bind(&Synthetic::OnDepthProcess, this, _1, _2, _3));
|
std::bind(&Synthetic::OnDepthProcess, this, _1, _2, _3));
|
||||||
|
|
||||||
|
root_processor->SetPostProcessCallback(
|
||||||
|
std::bind(&Synthetic::OnDevicePostProcess, this, _1));
|
||||||
rectify_processor->SetPostProcessCallback(
|
rectify_processor->SetPostProcessCallback(
|
||||||
std::bind(&Synthetic::OnRectifyPostProcess, this, _1));
|
std::bind(&Synthetic::OnRectifyPostProcess, this, _1));
|
||||||
disparity_processor->SetPostProcessCallback(
|
disparity_processor->SetPostProcessCallback(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user