YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
FrameTransformSet_nws_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_FRAMETRANSFORMSETNWSYARP_H
7#define YARP_DEV_FRAMETRANSFORMSETNWSYARP_H
8
9
10#include <yarp/os/Network.h>
12#include <yarp/sig/Vector.h>
13#include <yarp/dev/PolyDriver.h>
16#include <mutex>
17#include <map>
18
61{
62
63public:
66
67 //DeviceDriver
68 bool open(yarp::os::Searchable& config) override;
69 bool close() override;
70
71 //wrapper and interfaces
72 bool attach(yarp::dev::PolyDriver* device2attach) override;
73 bool detach() override;
74
75 //FrameTransformStorageSetRPC functions
76 yarp::dev::ReturnValue setTransformsRPC(const std::vector<yarp::math::FrameTransform>& transforms) override;
78 yarp::dev::ReturnValue deleteTransformRPC(const std::string& src, const std::string& dst) override;
80
81private:
82 mutable std::mutex m_pd_mutex;
83 mutable std::mutex m_trf_mutex;
84 std::string m_defaultConfigPrefix{"/frameTransformServer"};
85 std::string m_deviceName{"frameTransformSet_nws_yarp"};
86 yarp::dev::PolyDriver* m_pDriver{nullptr};
87 std::string m_thriftPortName;
88 yarp::os::Port m_thriftPort;
89 yarp::dev::IFrameTransformStorageSet* m_iSetIf {nullptr};
90 yarp::dev::IFrameTransformStorageUtils* m_iUtilsIf {nullptr};
91};
92
93#endif // YARP_DEV_FRAMETRANSFORMSETNWSYARP_H
contains the definition of a Vector type
frameTransformSet_nws_yarp: A network wrapper client which publishes the transforms received on the y...
bool open(yarp::os::Searchable &config) override
Open the DeviceDriver.
yarp::dev::ReturnValue setTransformRPC(const yarp::math::FrameTransform &transform) override
yarp::dev::ReturnValue setTransformsRPC(const std::vector< yarp::math::FrameTransform > &transforms) override
FrameTransformSet_nws_yarp()=default
yarp::dev::ReturnValue clearAllRPC() override
bool detach() override
Detach the object (you must have first called attach).
bool attach(yarp::dev::PolyDriver *device2attach) override
Attach to another object.
yarp::dev::ReturnValue deleteTransformRPC(const std::string &src, const std::string &dst) override
bool close() override
Close the DeviceDriver.
Interface implemented by all device drivers.
A container for a device driver.
Definition PolyDriver.h:23
Helper interface for an object that can wrap/or "attach" to a single other device.
A mini-server for network communication.
Definition Port.h:46
A base class for nested structures that can be searched.
Definition Searchable.h:31