Prediction.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::armem::client
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
23#pragma once
24
25#include <RobotAPI/interface/armem/prediction.h>
28
29namespace armarx::armem
30{
31
33 {
34 std::string engineID;
35
36 static PredictionEngine fromIce(const armem::prediction::data::PredictionEngine& ice);
37 armem::prediction::data::PredictionEngine toIce() const;
38 };
39
41 {
42 std::string predictionEngineID;
43
44 static PredictionSettings fromIce(const armem::prediction::data::PredictionSettings& ice);
45 armem::prediction::data::PredictionSettings toIce() const;
46 };
47
49 {
52
53 static PredictionRequest fromIce(const armem::prediction::data::PredictionRequest& ice);
54 armem::prediction::data::PredictionRequest toIce() const;
55 };
56
58 {
59 bool success;
60 std::string errorMessage;
61
64
65 static PredictionResult fromIce(const armem::prediction::data::PredictionResult& ice);
66 armem::prediction::data::PredictionResult toIce() const;
67 };
68
69 void toIce(armem::prediction::data::PredictionEngine& ice, const PredictionEngine& engine);
70 void fromIce(const armem::prediction::data::PredictionEngine& ice, PredictionEngine& engine);
71
72 void toIce(armem::prediction::data::PredictionSettings& ice,
73 const PredictionSettings& settings);
74 void fromIce(const armem::prediction::data::PredictionSettings& ice,
75 PredictionSettings& settings);
76
77 void toIce(armem::prediction::data::PredictionRequest& ice, const PredictionRequest& request);
78 void fromIce(const armem::prediction::data::PredictionRequest& ice, PredictionRequest& request);
79
80 void toIce(armem::prediction::data::PredictionResult& ice, const PredictionResult& result);
81 void fromIce(const armem::prediction::data::PredictionResult& ice, PredictionResult& result);
82
83} // namespace armarx::armem
void fromIce(const data::MemoryID &ice, MemoryID &id)
void toIce(data::MemoryID &ice, const MemoryID &id)
std::shared_ptr< Dict > DictPtr
Definition Dict.h:42
static PredictionEngine fromIce(const armem::prediction::data::PredictionEngine &ice)
armem::prediction::data::PredictionEngine toIce() const
armem::prediction::data::PredictionRequest toIce() const
PredictionSettings predictionSettings
Definition Prediction.h:51
static PredictionRequest fromIce(const armem::prediction::data::PredictionRequest &ice)
aron::data::DictPtr prediction
Definition Prediction.h:63
static PredictionResult fromIce(const armem::prediction::data::PredictionResult &ice)
armem::prediction::data::PredictionResult toIce() const
static PredictionSettings fromIce(const armem::prediction::data::PredictionSettings &ice)
armem::prediction::data::PredictionSettings toIce() const