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
yarp::dev::ImplementVirtualAnalogSensor::~ImplementVirtualAnalogSensor
~ImplementVirtualAnalogSensor()
Definition: ImplementVirtualAnalogSensor.cpp:23
yarp::dev::ImplementVirtualAnalogSensor::uninitialize
bool uninitialize()
Definition: ImplementVirtualAnalogSensor.cpp:39
yarp::dev::IVirtualAnalogSensor::updateVirtualAnalogSensorMeasure
virtual bool updateVirtualAnalogSensorMeasure(yarp::sig::Vector &measure)=0
Set a vector of torque values for virtual sensor.
yarp::dev::IVirtualAnalogSensorRaw
A generic interface to a virtual sensors.
Definition: IVirtualAnalogSensor.h:84
yarp::dev::ImplementVirtualAnalogSensor::ImplementVirtualAnalogSensor
ImplementVirtualAnalogSensor(IVirtualAnalogSensorRaw *virt)
Definition: ImplementVirtualAnalogSensor.cpp:17
yarp::sig::VectorOf< double >
yarp::dev::ImplementVirtualAnalogSensor
Definition: ImplementVirtualAnalogSensor.h:24
yarp::dev::IVirtualAnalogSensor::getVirtualAnalogSensorChannels
virtual int getVirtualAnalogSensorChannels()=0
Get the number of channels of the virtual sensor.
yarp::dev::IVirtualAnalogSensor
A generic interface to a virtual sensors.
Definition: IVirtualAnalogSensor.h:49
YARP_dev_API
#define YARP_dev_API
Definition: api.h:19
system.h
yarp::dev::VAS_status
VAS_status
Definition: IVirtualAnalogSensor.h:31
yarp::dev::ImplementVirtualAnalogSensor::initialize
bool initialize(int k, const int *amap, const double *userToRaw)
Definition: ImplementVirtualAnalogSensor.cpp:28
yarp
The main, catch-all namespace for YARP.
Definition: environment.h:18
yarp::dev::IVirtualAnalogSensor::getVirtualAnalogSensorStatus
virtual VAS_status getVirtualAnalogSensorStatus(int ch)=0
Check the status of a given channel.
IVirtualAnalogSensor.h
virtual analog sensor interface
api.h