YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
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
75public:
77
78 //DeviceDriver
79 bool open(yarp::os::Searchable& config) override;
80 bool close() override;
81
82 //FrameTransformStorageSetRPC functions
83 yarp::dev::ReturnValue setTransforms(const std::vector<yarp::math::FrameTransform>& transforms) override;
85 yarp::dev::ReturnValue deleteTransform(std::string t1, std::string t2) override;
87
88private:
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...
yarp::dev::ReturnValue clearAll() override
Delete all transforms in a storage.
yarp::dev::ReturnValue setTransform(const yarp::math::FrameTransform &transform) override
Save a frame transform in a storage.
FrameTransformSet_nwc_yarp()=default
yarp::dev::ReturnValue deleteTransform(std::string t1, std::string t2) override
Delete a single transform in the storage.
bool open(yarp::os::Searchable &config) override
Open the DeviceDriver.
yarp::dev::ReturnValue setTransforms(const std::vector< yarp::math::FrameTransform > &transforms) override
Save some frame transforms in a storage.
bool close() override
Close the DeviceDriver.
Interface implemented by all device drivers.
A mini-server for network communication.
Definition Port.h:46
A base class for nested structures that can be searched.
Definition Searchable.h:31