6#ifndef YARP_DEV_VIRTUALANALOGWRAPPER_VIRTUALANALOGWRAPPER_H
7#define YARP_DEV_VIRTUALANALOGWRAPPER_VIRTUALANALOGWRAPPER_H
34 #pragma warning(disable:4355)
55 bool configure(
int map0,
int map1,
const std::string& key);
126 bool close()
override;
virtual analog sensor interface
contains the definition of a Vector type
const std::string & getKey()
yarp::sig::Vector mTorques
yarp::dev::IVirtualAnalogSensor * mpSensor
yarp::dev::PolyDriver * mpDevice
bool configure(int map0, int map1, const std::string &key)
void setTorque(int joint, double torque)
bool attach(yarp::dev::PolyDriver *driver, const std::string &key)
virtualAnalogServer: An analog wrapper for virtual device A virtual device is a software emulated dev...
VirtualAnalogWrapper()=default
VirtualAnalogWrapper & operator=(const VirtualAnalogWrapper &)=delete
VirtualAnalogWrapper & operator=(VirtualAnalogWrapper &&)=delete
std::vector< AnalogSubDevice > mSubdevices
VirtualAnalogWrapper(VirtualAnalogWrapper &&)=delete
std::vector< int > mChan2Board
bool close() override
Close the DeviceDriver.
std::vector< int > mChan2BAddr
bool attachAll(const yarp::dev::PolyDriverList &p) override
Attach to a list of objects.
bool open(yarp::os::Searchable &config) override
Open the DeviceDriver.
VirtualAnalogWrapper(const VirtualAnalogWrapper &)=delete
bool detachAll() override
Detach the object (you must have first called attach).
void run() override
Main body of the new thread.
yarp::os::BufferedPort< yarp::os::Bottle > mPortInputTorques
bool perform_first_check(int elems)
Interface implemented by all device drivers.
Interface for an object that can wrap/attach to to another.
A generic interface to a virtual sensors.
virtual bool updateVirtualAnalogSensorMeasure(yarp::sig::Vector &measure)=0
Set a vector of torque values for virtual sensor.
A container for a device driver.
A mini-server for performing network communication in the background.
A base class for nested structures that can be searched.
An abstraction for a thread of execution.
void zero()
Zero the elements of the vector.