interfaces.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 Fabian Reister ( fabian dot reister at kit dot edu )
18 * @date 2021
19 * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
20 * GNU General Public License
21 */
22
23#pragma once
24
25#include <Eigen/Geometry>
26
28
32
34{
35
38
40 {
41 public:
42 virtual ~TransformInterface() = default;
43
45 virtual void connect(armem::client::MemoryNameSystem& memoryNameSystem) = 0;
46 };
47
49 {
50 public:
51 virtual ~TransformReaderInterface() = default;
52
53 virtual TransformResult getGlobalPose(const std::string& agentName,
54 const std::string& robotRootFrame,
55 const armem::Time& timestamp) const = 0;
56
58 // waitForTransform()
59 };
60
62 {
63 public:
64 ~TransformWriterInterface() override = default;
65
66 virtual bool
67 commitTransform(const ::armarx::armem::robot_state::localization::Transform& transform) = 0;
68 };
69
70} // namespace armarx::armem::robot_state::client::localization
std::string timestamp()
The memory name system (MNS) client.
virtual void connect(armem::client::MemoryNameSystem &memoryNameSystem)=0
virtual void registerPropertyDefinitions(PropertyDefinitionsPtr &def)=0
virtual TransformResult lookupTransform(const TransformQuery &query) const =0
virtual TransformResult getGlobalPose(const std::string &agentName, const std::string &robotRootFrame, const armem::Time &timestamp) const =0
virtual bool commitTransform(const ::armarx::armem::robot_state::localization::Transform &transform)=0
armarx::core::time::DateTime Time
auto transform(const Container< InputT, Alloc > &in, OutputT(*func)(InputT const &)) -> Container< OutputT, typename std::allocator_traits< Alloc >::template rebind_alloc< OutputT > >
Convenience function (with less typing) to transform a container of type InputT into the same contain...
Definition algorithm.h:351
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.