YARP
Yet Another Robot Platform
FrameTransformSet_nwc_yarp.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3  * SPDX-License-Identifier: BSD-3-Clause
4  */
5 
6 #ifndef YARP_DEV_FRAMETRANSFORMSETNWCYARP_H
7 #define YARP_DEV_FRAMETRANSFORMSETNWCYARP_H
8 
9 
10 #include <yarp/os/Network.h>
12 #include <yarp/sig/Vector.h>
13 #include <yarp/dev/PolyDriver.h>
15 #include <mutex>
16 #include <map>
17 
73 {
74 
75 public:
77 
78  //DeviceDriver
79  bool open(yarp::os::Searchable& config) override;
80  bool close() override;
81 
82  //FrameTransformStorageSetRPC functions
83  bool setTransforms(const std::vector<yarp::math::FrameTransform>& transforms) override;
84  bool setTransform(const yarp::math::FrameTransform& transform) override;
85  bool deleteTransform(std::string t1, std::string t2) override;
86  bool clearAll() override;
87 
88 private:
89  mutable std::mutex m_trf_mutex;
90  mutable std::mutex m_pd_mutex;
91  std::string m_deviceName{"frameTransformSet_nwc_yarp"};
92  std::string m_defaultConfigPrefix{"/frameTransformClient"};
93  std::string m_defaultServerPrefix{"/frameTransformServer/frameTransformSet_nws_yarp"};
94  std::string m_thriftPortName;
95  std::string m_thrift_server_rpcPort_Name;
96  yarp::os::Port m_thriftPort;
98 };
99 
100 #endif // YARP_DEV_FRAMETRANSFORMSETNWCYARP_H
contains the definition of a Vector type
frameTransformSet_nwc_yarp: A network wrapper client which publishes the transforms received on the t...
bool setTransforms(const std::vector< yarp::math::FrameTransform > &transforms) override
Save some frame transforms in a storage.
bool clearAll() override
Delete all transforms in a storage.
bool deleteTransform(std::string t1, std::string t2) override
Delete a single transform in the storage.
bool setTransform(const yarp::math::FrameTransform &transform) override
Save a frame transform in a storage.
FrameTransformSet_nwc_yarp()=default
bool open(yarp::os::Searchable &config) override
Open the DeviceDriver.
bool close() override
Close the DeviceDriver.
Interface implemented by all device drivers.
Definition: DeviceDriver.h:35
A mini-server for network communication.
Definition: Port.h:47
A base class for nested structures that can be searched.
Definition: Searchable.h:66