YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
Simulated_network_delay.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2025-2025 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-License-Identifier: BSD-3-Clause
4 */
5
6#ifndef SIMULATED_NETWORK_DELAY_H
7#define SIMULATED_NETWORK_DELAY_H
8
9#include <yarp/os/Things.h>
11
17{
18 double m_delay = 0.0;
19
20public:
21 void getParamsFromCommandLine(std::string carrierString, yarp::os::Property& prop);
22
23 bool create(const yarp::os::Property &options) override;
24 void destroy() override;
25
26 bool setparam(const yarp::os::Property &params) override;
27 bool getparam(yarp::os::Property &params) override;
28
29 void trig() override;
30
31 bool accept(yarp::os::Things &thing) override;
33};
34
35#endif
simulated_network_delay: Documentation to be added
bool create(const yarp::os::Property &options) override
This will be called when the dll is properly loaded by the portmonitor carrier.
bool accept(yarp::os::Things &thing) override
This will be called when the data reach the portmonitor object.
void trig() override
This will be called when one of the peer connections to the same import port receives data.
bool getparam(yarp::os::Property &params) override
This will be called when the portmonitor carrier parameters are requested via YARP admin port.
void destroy() override
This will be called when the portmonitor object destroyes.
yarp::os::Things & update(yarp::os::Things &thing) override
After data get accpeted in the accept() callback, an instance of that is given to the update function...
bool setparam(const yarp::os::Property &params) override
This will be called when the portmonitor carrier parameters are set via YARP admin port.
void getParamsFromCommandLine(std::string carrierString, yarp::os::Property &prop)
A class for storing options and configuration information.
Definition Property.h:33
Base class for generic things.
Definition Things.h:18