YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
ImplementVirtualAnalogSensor.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-FileCopyrightText: 2006-2010 RobotCub Consortium
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7#ifndef YARP_DEV_IMPLEMENT_VIRTUAL_ANALOG_SENSOR_H
8#define YARP_DEV_IMPLEMENT_VIRTUAL_ANALOG_SENSOR_H
9
11#include <yarp/dev/api.h>
12#include <yarp/conf/system.h>
13
14namespace yarp::dev {
15class ImplementVirtualAnalogSensor;
16}
17
19{
20 void *helper;
22
23public:
24 bool initialize(int k, const int *amap, const double* userToRaw);
25 bool uninitialize();
28
30 int getVirtualAnalogSensorChannels() override;
32 bool updateVirtualAnalogSensorMeasure(int ch, double &measure) override;
33};
34
35#endif // YARP_DEV_IMPLEMENT_VIRTUAL_ANALOG_SENSOR_H
virtual analog sensor interface
A generic interface to a virtual sensors.
A generic interface to a virtual sensors.
int getVirtualAnalogSensorChannels() override
Get the number of channels of the virtual sensor.
bool updateVirtualAnalogSensorMeasure(yarp::sig::Vector &measure) override
Set a vector of torque values for virtual sensor.
VAS_status getVirtualAnalogSensorStatus(int ch) override
Check the status of a given channel.
bool initialize(int k, const int *amap, const double *userToRaw)
For streams capable of holding different kinds of content, check what they actually have.
The main, catch-all namespace for YARP.
Definition dirs.h:16
#define YARP_dev_API
Definition api.h:18