MCPcopy Create free account
hub / github.com/Unsigned-Long/iKalibr / getSelectedDistancesToModel

Method getSelectedDistancesToModel

src/core/event_preprocessing.cpp:507–515  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

505}
506
507void EventLocalPlaneSacProblem::getSelectedDistancesToModel(const model_t &model,
508 const std::vector<int> &indices,
509 std::vector<double> &scores) const {
510 scores.resize(indices.size());
511 for (int i = 0; i < static_cast<int>(indices.size()); ++i) {
512 const auto &[x, y, t] = _data.at(indices.at(i));
513 scores.at(i) = PointToPlaneDistance(x, y, t, model(0), model(1), model(2));
514 }
515}
516
517void EventLocalPlaneSacProblem::optimizeModelCoefficients(const std::vector<int> &inliers,
518 const model_t &model,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected