predictions.h
Go to the documentation of this file.
1/*
2 * This file is part of ArmarX.
3 *
4 * ArmarX is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
7 *
8 * ArmarX is distributed in the hope that it will be useful, but
9 * WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 *
16 * @package RobotAPI::ArmarXObjects
17 * @author phesch ( ulila at student dot kit dot edu )
18 * @date 2022
19 * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
20 * GNU General Public License
21 */
22#pragma once
23
25
26#include <RobotAPI/interface/objectpose/ObjectPoseStorageInterface.h>
28
29namespace armarx::objpose
30{
31 /**
32 * @brief Predict the pose of an object given a history of poses
33 * based on a linear regression.
34 *
35 * If `poses` is empty, `latestPose` is returned.
36 *
37 * @param poses the history of poses to base the prediction on
38 * @param time the timestamp to make the prediction for
39 * @param latestPose used for metadata so the result is valid even if poses is empty
40 * @param settings the settings to use for the prediction
41 * @return the result of the prediction
42 */
43 objpose::ObjectPosePredictionResult
44 predictObjectPoseLinear(const std::map<DateTime, ObjectPose>& poses,
45 const DateTime& time,
46 const ObjectPose& latestPose);
47
48} // namespace armarx::objpose
objpose::ObjectPosePredictionResult predictObjectPoseLinear(const std::map< DateTime, ObjectPose > &poses, const DateTime &time, const ObjectPose &latestPose)
Predict the pose of an object given a history of poses based on a linear regression.
An object pose as stored by the ObjectPoseStorage.
Definition ObjectPose.h:34