YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
FrameTransformServer.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-License-Identifier: LGPL-2.1-or-later
4 */
5
6#ifndef YARP_DEV_FRAMETRANSFORMSERVER_H
7#define YARP_DEV_FRAMETRANSFORMSERVER_H
8
9
11#include <yarp/os/Network.h>
13#include <yarp/os/Semaphore.h>
14#include <yarp/os/Time.h>
15
16#include <yarp/sig/Vector.h>
17
23#include <yarp/dev/PolyDriver.h>
24
27#include <mutex>
30
31#include <mutex>
33
34#define DEFAULT_THREAD_PERIOD 20 //ms
35const int MAX_PORTS = 5;
36
52{
53protected:
54
56 std::string m_local_name;
57 std::mutex m_rpc_mutex;
58
59 //new stuff
61
62public:
65
66public:
67 // DeviceDriver methods
68 bool open(yarp::os::Searchable& config) override;
69 bool close() override;
70 bool read(yarp::os::ConnectionReader& connection) override;
71
72 //PeriodicThread
73 bool threadInit() override;
74 void threadRelease() override;
75 void run() override;
76};
77
78#endif // YARP_DEV_FRAMETRANSFORMSERVER_H
define control board standard interfaces
const int MAX_PORTS
contains the definition of a Vector type
This class is the parameters parser for class FrameTransformServer.
A server to manage FrameTransforms for a robot (see FrameTransform: start all the required devices ne...
bool close() override
Close the DeviceDriver.
bool open(yarp::os::Searchable &config) override
Open the DeviceDriver.
void threadRelease() override
Release method.
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
yarp::os::Port m_rpc_InterfaceToUser
yarp::robotinterface::Robot m_robot
bool threadInit() override
Initialization method.
void run() override
Loop function.
Interface implemented by all device drivers.
An interface for reading from a network connection.
An abstraction for a periodic thread.
Interface implemented by all objects that can read themselves from the network, such as Bottle object...
Definition PortReader.h:24
A mini-server for network communication.
Definition Port.h:46
A base class for nested structures that can be searched.
Definition Searchable.h:31