YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
Test_numbers1.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2026-2026 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-License-Identifier: BSD-3-Clause
4 */
5
6#ifndef TEST_NUMBERS1_H
7#define TEST_NUMBERS1_H
8
9#include <yarp/os/Things.h>
11#include <yarp/os/Log.h>
13#include <yarp/os/LogStream.h>
14
20{
22 int m_valueoperation = 0;
23 int m_increment = 1; // the value added to each number (parameter "increment")
24
25public:
26 void getParamsFromCommandLine(std::string carrierString, yarp::os::Property& prop);
27
28 bool create(const yarp::os::Property &options) override;
29 void destroy() override;
30
31 bool setparam(const yarp::os::Property &params) override;
32 bool getparam(yarp::os::Property &params) override;
33
34 void trig() override;;
35
36 bool accept(yarp::os::Things &thing) override;
38};
39
40#endif
test_numbers: Documentation to be added
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 setparam(const yarp::os::Property &params) override
This will be called when the portmonitor carrier parameters are set via YARP admin port.
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 create(const yarp::os::Property &options) override
This will be called when the dll is properly loaded by the portmonitor carrier.
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.
void getParamsFromCommandLine(std::string carrierString, yarp::os::Property &prop)
A class for storing options and configuration information.
Definition Property.h:32
Base class for generic things.
Definition Things.h:18