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 
29 
30 namespace armarx::armem
31 {
32 
34  {
35  std::string engineID;
36 
37  static PredictionEngine fromIce(const armem::prediction::data::PredictionEngine& ice);
38  armem::prediction::data::PredictionEngine toIce() const;
39  };
40 
42  {
43  std::string predictionEngineID;
44 
45  static PredictionSettings fromIce(const armem::prediction::data::PredictionSettings& ice);
46  armem::prediction::data::PredictionSettings toIce() const;
47  };
48 
50  {
53 
54  static PredictionRequest fromIce(const armem::prediction::data::PredictionRequest& ice);
55  armem::prediction::data::PredictionRequest toIce() const;
56  };
57 
59  {
60  bool success;
61  std::string errorMessage;
62 
65 
66  static PredictionResult fromIce(const armem::prediction::data::PredictionResult& ice);
67  armem::prediction::data::PredictionResult toIce() const;
68  };
69 
70 
71  void toIce(armem::prediction::data::PredictionEngine& ice,
72  const PredictionEngine& engine);
73  void fromIce(const armem::prediction::data::PredictionEngine& ice,
74  PredictionEngine& engine);
75 
76  void toIce(armem::prediction::data::PredictionSettings& ice,
77  const PredictionSettings& settings);
78  void fromIce(const armem::prediction::data::PredictionSettings& ice,
79  PredictionSettings& settings);
80 
81  void toIce(armem::prediction::data::PredictionRequest& ice, const PredictionRequest& request);
82  void fromIce(const armem::prediction::data::PredictionRequest& ice,
83  PredictionRequest& request);
84 
85  void toIce(armem::prediction::data::PredictionResult& ice, const PredictionResult& result);
86  void fromIce(const armem::prediction::data::PredictionResult& ice, PredictionResult& result);
87 
88 } // namespace armarx::armem
armarx::armem::PredictionRequest
Definition: Prediction.h:49
armarx::armem::PredictionResult::snapshotID
armem::MemoryID snapshotID
Definition: Prediction.h:63
armarx::armem::PredictionEngine::engineID
std::string engineID
Definition: Prediction.h:35
MemoryID.h
armarx::armem::PredictionSettings
Definition: Prediction.h:41
armarx::armem::PredictionRequest::predictionSettings
PredictionSettings predictionSettings
Definition: Prediction.h:52
armarx::armem
Definition: LegacyRobotStateMemoryAdapter.cpp:31
armarx::armem::toIce
void toIce(data::MemoryID &ice, const MemoryID &id)
Definition: ice_conversions.cpp:21
armarx::armem::PredictionResult
Definition: Prediction.h:58
Dict.h
armarx::armem::PredictionSettings::toIce
armem::prediction::data::PredictionSettings toIce() const
Definition: Prediction.cpp:50
armarx::armem::PredictionEngine::toIce
armem::prediction::data::PredictionEngine toIce() const
Definition: Prediction.cpp:38
armarx::armem::PredictionResult::fromIce
static PredictionResult fromIce(const armem::prediction::data::PredictionResult &ice)
Definition: Prediction.cpp:68
armarx::armem::MemoryID
A memory ID.
Definition: MemoryID.h:47
armarx::armem::PredictionResult::prediction
aron::data::DictPtr prediction
Definition: Prediction.h:64
armarx::armem::PredictionResult::toIce
armem::prediction::data::PredictionResult toIce() const
Definition: Prediction.cpp:74
armarx::armem::PredictionRequest::fromIce
static PredictionRequest fromIce(const armem::prediction::data::PredictionRequest &ice)
Definition: Prediction.cpp:56
armarx::armem::fromIce
void fromIce(const data::MemoryID &ice, MemoryID &id)
Definition: ice_conversions.cpp:31
armarx::armem::PredictionEngine
Definition: Prediction.h:33
armarx::armem::PredictionSettings::fromIce
static PredictionSettings fromIce(const armem::prediction::data::PredictionSettings &ice)
Definition: Prediction.cpp:44
armarx::aron::data::DictPtr
std::shared_ptr< Dict > DictPtr
Definition: Dict.h:41
armarx::armem::PredictionResult::errorMessage
std::string errorMessage
Definition: Prediction.h:61
armarx::armem::PredictionEngine::fromIce
static PredictionEngine fromIce(const armem::prediction::data::PredictionEngine &ice)
Definition: Prediction.cpp:32
armarx::armem::PredictionRequest::toIce
armem::prediction::data::PredictionRequest toIce() const
Definition: Prediction.cpp:62
armarx::armem::PredictionResult::success
bool success
Definition: Prediction.h:60
armarx::armem::PredictionRequest::snapshotID
armem::MemoryID snapshotID
Definition: Prediction.h:51
armarx::armem::PredictionSettings::predictionEngineID
std::string predictionEngineID
Definition: Prediction.h:43