|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
15 #define JOINTIDCHECK if (ch >= castToMapper(helper)->axes()){yError("channel id out of bound"); return false;}
33 helper=(
void *)(
new ControlBoardHelper(size, amap,
nullptr,
nullptr,
nullptr,
nullptr, userToRaw,
nullptr));
53 return yarp::dev::VAS_status::VAS_ERROR;
virtual bool updateVirtualAnalogSensorMeasureRaw(yarp::sig::Vector &measure)=0
Set a vector of torque values for virtual sensor.
~ImplementVirtualAnalogSensor()
contains the definition of a Vector type
VAS_status getVirtualAnalogSensorStatus(int ch) override
Check the status of a given channel.
virtual VAS_status getVirtualAnalogSensorStatusRaw(int ch)=0
Check the status of a given channel.
A generic interface to a virtual sensors.
bool updateVirtualAnalogSensorMeasure(yarp::sig::Vector &measure) override
Set a vector of torque values for virtual sensor.
ImplementVirtualAnalogSensor(IVirtualAnalogSensorRaw *virt)
An interface for the device drivers.
int getVirtualAnalogSensorChannels() override
Get the number of channels of the virtual sensor.
void voltageV2S(double voltage, int j, double &sens, int &k)
virtual int getVirtualAnalogSensorChannelsRaw()=0
Get the number of channels of the virtual sensor.
T * data()
Return a pointer to the first element of the vector.
bool initialize(int k, const int *amap, const double *userToRaw)
yarp::dev::ControlBoardHelper * castToMapper(void *p)