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