Program Listing for File path_from_rtk_gps.h

↰ Return to documentation for file (include/mrpt/slam/path_from_rtk_gps.h)

/*                    _
                     | |    Mobile Robot Programming Toolkit (MRPT)
 _ __ ___  _ __ _ __ | |_
| '_ ` _ \| '__| '_ \| __|          https://www.mrpt.org/
| | | | | | |  | |_) | |_
|_| |_| |_|_|  | .__/ \__|     https://github.com/MRPT/mrpt/
               | |
               |_|

 Copyright (c) 2005-2026, Individual contributors, see AUTHORS file
 See: https://www.mrpt.org/Authors - All rights reserved.
 SPDX-License-Identifier: BSD-3-Clause
*/
#pragma once

#include <mrpt/math/TPoint3D.h>
#include <mrpt/obs/CRawlog.h>
#include <mrpt/poses/CPoint3D.h>
#include <mrpt/poses/CPose3DInterpolator.h>

#include <map>

namespace mrpt::slam
{

struct TPathFromRTKInfo
{
  std::map<mrpt::Clock::time_point, mrpt::math::TPoint3D> best_gps_path;
  std::map<mrpt::Clock::time_point, double> mahalabis_quality_measure;
  std::map<mrpt::Clock::time_point, mrpt::math::CMatrixDouble66> vehicle_uncertainty;
  mrpt::math::CMatrixDouble W_star;
};

void path_from_rtk_gps(
    mrpt::poses::CPose3DInterpolator& robot_path,
    const mrpt::obs::CRawlog& rawlog,
    size_t rawlog_first,
    size_t rawlog_last,
    bool disableGPSInterp = false,
    int path_smooth_filter_size = 2,
    TPathFromRTKInfo* outInfo = nullptr);
  // end of grouping

}  // namespace mrpt::slam