HumanRobotInteractionWriter.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 * @author Joana Plewnia ( joana dot plewnia at kit dot edu )
17 * @date 2025
18 * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
19 * GNU General Public License
20 */
21
22#pragma once
23
24
25#include <mutex>
26#include <optional>
27#include <string>
28
30
34
35#include <VisionX/libraries/armem_human/aron/HumanRobotInteraction.aron.generated.h>
38
40{
41
43 {
44 public:
46
48
50
52 void connect(armem::client::MemoryNameSystem& memoryNameSystem);
53
54 std::string
55 propertyPrefix() const override
56 {
57 return "mem.human.interaction.";
58 };
59
60 Properties
61 defaultProperties() const override
62 {
63 return Properties{.memoryName = "Human",
64 .coreSegmentName = "HumanRobotInteraction",
65 .providerName = ""};
66 };
67
69 const std::string& provider,
70 const armem::Time& referencedTime);
71
72 bool commitHumanRobotInteractions(const std::vector<HumanRobotInteraction>& interactions,
73 const std::string& provider,
74 const armem::Time& referencedTime);
75
76 private:
78 };
79
80} // namespace armarx::armem::human::client
The memory name system (MNS) client.
void connect(armem::client::MemoryNameSystem &memoryNameSystem)
bool commitHumanRobotInteractions(const std::vector< HumanRobotInteraction > &interactions, const std::string &provider, const armem::Time &referencedTime)
bool commitHumanRobotInteraction(const HumanRobotInteraction &interaction, const std::string &provider, const armem::Time &referencedTime)
void registerPropertyDefinitions(armarx::PropertyDefinitionsPtr &def)
armarx::core::time::DateTime Time
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.