Recording.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <RobotAPI/interface/armem/server/RecordingMemoryInterface.h>
6 
7 
9 {
10 
11  /* ===========================
12  * DirectlyStoreInput
13  * =========================== */
15  {
17 
18  static DirectlyStoreInput fromIce(const dto::DirectlyStoreInput& ice);
19  dto::DirectlyStoreInput toIce() const;
20  };
21  void toIce(dto::DirectlyStoreInput& ice, const DirectlyStoreInput& input);
22  void fromIce(const dto::DirectlyStoreInput& ice, DirectlyStoreInput& input);
23 
24 
25 
26  /* ===========================
27  * DirectlyStoreResult
28  * =========================== */
30  {
31  // TODO: Move to armarx::core::time
34 
35  static DirectlyStoreResult fromIce(const dto::DirectlyStoreResult& ice);
36  dto::DirectlyStoreResult toIce() const;
37  };
38  void toIce(dto::DirectlyStoreResult& ice, const DirectlyStoreResult& input);
39  void fromIce(const dto::DirectlyStoreResult& ice, DirectlyStoreResult& input);
40 
41 
42 
43  /* ===========================
44  * StartRecordInput
45  * =========================== */
47  {
49  {
50  dto::RecordingMode::RecordingModeEnum mode;
51  float frequency;
52  };
53 
55  std::string recordingID;
56  std::map<armem::MemoryID, RecordingModeConfiguration> configuration;
57 
58  static StartRecordInput fromIce(const dto::StartRecordInput& ice);
59  dto::StartRecordInput toIce() const;
60  };
61  void toIce(dto::StartRecordInput& ice, const StartRecordInput& input);
62  void fromIce(const dto::StartRecordInput& ice, StartRecordInput& input);
63 
64 
65 
66  /* ===========================
67  * StartRecordResult
68  * =========================== */
70  {
71  static StartRecordResult fromIce(const dto::StartRecordResult& ice);
72  dto::StartRecordResult toIce() const;
73  };
74  void toIce(dto::StartRecordResult& ice, const StartRecordResult& input);
75  void fromIce(const dto::StartRecordResult& ice, StartRecordResult& input);
76 
77 
78 
79  /* ===========================
80  * StopRecordResult
81  * =========================== */
83  {
84  static StopRecordResult fromIce(const dto::StopRecordResult& ice);
85  dto::StopRecordResult toIce() const;
86  };
87  void toIce(dto::StopRecordResult& ice, const StopRecordResult& input);
88  void fromIce(const dto::StopRecordResult& ice, StopRecordResult& input);
89 
90 
91 
92  /* ===========================
93  * RecordStatusResult
94  * =========================== */
96  {
97  struct RecordStatus
98  {
101  } status;
102 
103  static RecordStatusResult fromIce(const dto::RecordStatusResult& ice);
104  dto::RecordStatusResult toIce() const;
105  };
106  void toIce(dto::RecordStatusResult& ice, const RecordStatusResult& input);
107  void fromIce(const dto::RecordStatusResult& ice, RecordStatusResult& input);
108 }
armarx::armem::server::ltm::RecordStatusResult
Definition: Recording.h:95
armarx::armem::server::ltm::RecordStatusResult::RecordStatus::totalSnapshots
int totalSnapshots
Definition: Recording.h:99
armarx::armem::server::ltm::StartRecordInput::RecordingModeConfiguration::mode
dto::RecordingMode::RecordingModeEnum mode
Definition: Recording.h:50
armarx::armem::server::ltm::DirectlyStoreResult::toIce
dto::DirectlyStoreResult toIce() const
Definition: Recording.cpp:41
armarx::armem::server::ltm::toIce
void toIce(dto::DirectlyStoreInput &ice, const DirectlyStoreInput &result)
Definition: Recording.cpp:25
armarx::armem::server::ltm::StartRecordResult::toIce
dto::StartRecordResult toIce() const
Definition: Recording.cpp:107
armarx::armem::server::ltm::RecordStatusResult::RecordStatus::savedSnapshots
int savedSnapshots
Definition: Recording.h:100
armarx::armem::server::ltm::DirectlyStoreInput
Definition: Recording.h:14
armarx::armem::server::ltm::StartRecordInput::RecordingModeConfiguration::frequency
float frequency
Definition: Recording.h:51
armarx::armem::server::ltm::fromIce
void fromIce(const dto::DirectlyStoreInput &ice, DirectlyStoreInput &result)
Definition: Recording.cpp:29
armarx::armem::server::ltm::StartRecordInput::fromIce
static StartRecordInput fromIce(const dto::StartRecordInput &ice)
Definition: Recording.cpp:57
armarx::armem::server::ltm::DirectlyStoreResult::fromIce
static DirectlyStoreResult fromIce(const dto::DirectlyStoreResult &ice)
Definition: Recording.cpp:37
armarx::armem::server::ltm::RecordStatusResult::toIce
dto::RecordStatusResult toIce() const
Definition: Recording.cpp:147
armarx::armem::server::ltm::StopRecordResult::toIce
dto::StopRecordResult toIce() const
Definition: Recording.cpp:127
armarx::armem::server::ltm::RecordStatusResult::status
struct armarx::armem::server::ltm::RecordStatusResult::RecordStatus status
armarx::armem::server::ltm::RecordStatusResult::fromIce
static RecordStatusResult fromIce(const dto::RecordStatusResult &ice)
Definition: Recording.cpp:143
armarx::armem::server::ltm::DirectlyStoreInput::toIce
dto::DirectlyStoreInput toIce() const
Definition: Recording.cpp:21
armarx::armem::server::ltm::DirectlyStoreInput::fromIce
static DirectlyStoreInput fromIce(const dto::DirectlyStoreInput &ice)
Definition: Recording.cpp:17
armarx::aron::input
ReaderT::InputType & input
Definition: rw.h:19
armarx::armem::wm::Memory
Client-side working memory.
Definition: memory_definitions.h:133
armarx::armem::server::ltm::StartRecordInput::toIce
dto::StartRecordInput toIce() const
Definition: Recording.cpp:61
armarx::armem::server::ltm::StopRecordResult
Definition: Recording.h:82
armarx::armem::detail::SuccessHeader
Definition: SuccessHeader.h:13
armarx::armem::server::ltm::StartRecordResult::fromIce
static StartRecordResult fromIce(const dto::StartRecordResult &ice)
Definition: Recording.cpp:103
armarx::armem::server::ltm::StartRecordInput
Definition: Recording.h:46
SuccessHeader.h
memory_definitions.h
armarx::armem::server::ltm::StartRecordInput::RecordingModeConfiguration
Definition: Recording.h:48
armarx::armem::server::ltm
Definition: forward_declarations.h:20
armarx::core::time::DateTime
Represents a point in time.
Definition: DateTime.h:24
armarx::armem::server::ltm::RecordStatusResult::RecordStatus
Definition: Recording.h:97
armarx::armem::server::ltm::StartRecordInput::recordingID
std::string recordingID
Definition: Recording.h:55
armarx::armem::server::ltm::StartRecordInput::executionTime
armarx::core::time::DateTime executionTime
Definition: Recording.h:54
armarx::armem::server::ltm::DirectlyStoreInput::memory
armem::wm::Memory memory
Definition: Recording.h:16
armarx::armem::server::ltm::StopRecordResult::fromIce
static StopRecordResult fromIce(const dto::StopRecordResult &ice)
Definition: Recording.cpp:123
armarx::armem::server::ltm::StartRecordResult
Definition: Recording.h:69
armarx::armem::server::ltm::DirectlyStoreResult
Definition: Recording.h:29
armarx::armem::server::ltm::DirectlyStoreResult::timeStartedMicroSeconds
long timeStartedMicroSeconds
Definition: Recording.h:32
armarx::armem::server::ltm::DirectlyStoreResult::timeFinishedMicroSeconds
long timeFinishedMicroSeconds
Definition: Recording.h:33
armarx::armem::server::ltm::StartRecordInput::configuration
std::map< armem::MemoryID, RecordingModeConfiguration > configuration
Definition: Recording.h:56