12#define JOINTIDCHECK if (ch >= castToMapper(helper)->axes()){yError("channel id out of bound"); return false;}
27 if (helper !=
nullptr) {
31 helper=(
void *)(
new ControlBoardHelper(size, amap,
nullptr,
nullptr,
nullptr,
nullptr, userToRaw,
nullptr));
yarp::dev::ControlBoardHelper * castToMapper(void *p)
contains the definition of a Vector type
void voltageV2S(double voltage, int j, double &sens, int &k)
A generic interface to a virtual sensors.
virtual int getVirtualAnalogSensorChannelsRaw()=0
Get the number of channels of the virtual sensor.
virtual bool updateVirtualAnalogSensorMeasureRaw(yarp::sig::Vector &measure)=0
Set a vector of torque values for virtual sensor.
virtual VAS_status getVirtualAnalogSensorStatusRaw(int ch)=0
Check the status of a given channel.
int getVirtualAnalogSensorChannels() override
Get the number of channels of the virtual sensor.
ImplementVirtualAnalogSensor(IVirtualAnalogSensorRaw *virt)
bool updateVirtualAnalogSensorMeasure(yarp::sig::Vector &measure) override
Set a vector of torque values for virtual sensor.
VAS_status getVirtualAnalogSensorStatus(int ch) override
Check the status of a given channel.
~ImplementVirtualAnalogSensor()
bool initialize(int k, const int *amap, const double *userToRaw)
T * data()
Return a pointer to the first element of the vector.
For streams capable of holding different kinds of content, check what they actually have.