Skip to content
Snippets Groups Projects
Commit af73ca01 authored by Fabian Reister's avatar Fabian Reister
Browse files

using reporters

parent 6a5452ce
No related branches found
No related tags found
No related merge requests found
......@@ -281,7 +281,7 @@ namespace armarx::cartographer
// this is the interface to cartographer
mappingAdapter = std::make_unique<CartographerAdapter>(
mapPath, configPath, *this, adapterConfig, mapToLoad, map_T_robot_prior);
mapPath, configPath, *this, adapterConfig, mapToLoad, map_T_robot_prior, debugObserver);
break;
}
......
......@@ -295,6 +295,11 @@ namespace armarx::cartographer
->AddSensorData(sensorIdOdom.id, odomData);
}
if(cartographerInputDataReporterOdometry.has_value())
{
cartographerInputDataReporterOdometry->add(timestamp);
}
ARMARX_DEBUG << "Inserted odom data";
}
......@@ -409,6 +414,11 @@ namespace armarx::cartographer
this, "pushInLaserData | Add Sensor Data to TrajectoryBuilder");
trajBuilder->AddSensorData(sensorIdLaser.id, timedPointCloudData);
}
if(cartographerInputDataReporterLaserScanner)
{
cartographerInputDataReporterLaserScanner->add(Duration::MicroSeconds(cartographer::fromCarto(timedPointCloudData.time)));
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment