YARP
Yet Another Robot Platform
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 
14 namespace yarp {
15  namespace dev {
16  class ImplementVirtualAnalogSensor;
17  }
18 }
19 
21 {
22  void *helper;
24 
25 public:
26  bool initialize(int k, const int *amap, const double* userToRaw);
27  bool uninitialize();
30 
32  int getVirtualAnalogSensorChannels() override;
34  bool updateVirtualAnalogSensorMeasure(int ch, double &measure) override;
35 };
36 
37 #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.
virtual VAS_status getVirtualAnalogSensorStatus(int ch)=0
Check the status of a given channel.
virtual bool updateVirtualAnalogSensorMeasure(yarp::sig::Vector &measure)=0
Set a vector of torque values for virtual sensor.
virtual int getVirtualAnalogSensorChannels()=0
Get the number of channels of the virtual sensor.
ImplementVirtualAnalogSensor(IVirtualAnalogSensorRaw *virt)
bool initialize(int k, const int *amap, const double *userToRaw)
The main, catch-all namespace for YARP.
Definition: dirs.h:16
#define YARP_dev_API
Definition: api.h:18