YARP
Yet Another Robot Platform
ImplementVirtualAnalogSensor.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2006-2019 Istituto Italiano di Tecnologia (IIT)
3  * Copyright (C) 2006-2010 RobotCub Consortium
4  * All rights reserved.
5  *
6  * This software may be modified and distributed under the terms of the
7  * BSD-3-Clause license. See the accompanying LICENSE file for details.
8  */
9 
10 #ifndef YARP_DEV_IMPLEMENT_VIRTUAL_ANALOG_SENSOR_H
11 #define YARP_DEV_IMPLEMENT_VIRTUAL_ANALOG_SENSOR_H
12 
14 #include <yarp/dev/api.h>
15 #include <yarp/conf/system.h>
16 
17 namespace yarp {
18  namespace dev {
19  class ImplementVirtualAnalogSensor;
20  }
21 }
22 
24 {
25  void *helper;
27 
28 public:
29  bool initialize(int k, const int *amap, const double* userToRaw);
30  bool uninitialize();
33 
34  VAS_status getVirtualAnalogSensorStatus(int ch) override;
35  int getVirtualAnalogSensorChannels() override;
36  bool updateVirtualAnalogSensorMeasure(yarp::sig::Vector &measure) override;
37  bool updateVirtualAnalogSensorMeasure(int ch, double &measure) override;
38 };
39 
40 #endif // YARP_DEV_IMPLEMENT_VIRTUAL_ANALOG_SENSOR_H
#define YARP_dev_API
Definition: api.h:19
Provides:
Definition: Vector.h:32
The main, catch-all namespace for YARP.
Definition: numeric.h:47
virtual analog sensor interface
A generic interface to a virtual sensors.
A generic interface to a virtual sensors.