YARP
Yet Another Robot Platform
ImplementVirtualAnalogSensor.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2006-2020 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 
35  int getVirtualAnalogSensorChannels() override;
37  bool updateVirtualAnalogSensorMeasure(int ch, double &measure) override;
38 };
39 
40 #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: environment.h:18
#define YARP_dev_API
Definition: api.h:19