YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
FrameTransformGet_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_FRAMETRANSFORMGET_NWS_YARP_H
7#define YARP_DEV_FRAMETRANSFORMGET_NWS_YARP_H
8
12
15
16// TODO FIXME STE need to check subdevice option
80{
81
82public:
89
90 // yarp::os::PeriodicThread
91 void run() override;
92
93 // yarp::dev::DeviceDriver
94 bool open(yarp::os::Searchable &params) override;
95 bool close() override;
96
97 // yarp::dev::IWrapper
98 bool attach(yarp::dev::PolyDriver* deviceToAttach) override;
99 bool detach() override;
100
101 // FrameTransformStorageGetRPC
103
104private:
105 // double m_period{const_default_thread_period};
106 bool m_streaming_port_enabled = true;
107 int m_verbose{4};
108 yarp::os::Port m_streaming_port;
109 std::string m_streaming_port_name;
110 std::string m_defaultConfigPrefix{"/frameTransformServer"};
111 std::string m_deviceName{"frameTransformGet_nws_yarp"};
112 std::mutex m_mutex;
113
114 // for requesting the transforms to FrameTransformStorageGetMultiplexer
115 yarp::dev::IFrameTransformStorageGet* m_iFrameTransformStorageGet = nullptr;
116
117 // for the RPC with the NWC
118 yarp::os::Port m_thrift_rpcPort;
119 std::string m_thrift_rpcPort_Name;
120};
121
122#endif // YARP_DEV_FRAMETRANSFORMGET_NWS_YARP_H
frameTransformGet_nws_yarp: A network wrapper client which converts the input retrieved from an IFram...
FrameTransformGet_nws_yarp & operator=(FrameTransformGet_nws_yarp &&)=delete
void run() override
Loop function.
bool detach() override
Detach the object (you must have first called attach).
return_getAllTransforms getTransformsRPC() override
FrameTransformGet_nws_yarp(const FrameTransformGet_nws_yarp &)=delete
bool attach(yarp::dev::PolyDriver *deviceToAttach) override
Attach to another object.
bool close() override
Close the DeviceDriver.
FrameTransformGet_nws_yarp(FrameTransformGet_nws_yarp &&)=delete
bool open(yarp::os::Searchable &params) override
Device driver interface.
FrameTransformGet_nws_yarp & operator=(const FrameTransformGet_nws_yarp &)=delete
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.
An abstraction for a periodic thread.
A mini-server for network communication.
Definition Port.h:46
A base class for nested structures that can be searched.
Definition Searchable.h:31