19 #ifndef __MOTORTEMPERATUREPUBLISHER__
20 #define __MOTORTEMPERATUREPUBLISHER__
22 #include <yarp/os/RFModule.h>
23 #include <yarp/dev/PolyDriver.h>
24 #include <yarp/sig/Vector.h>
25 #include <yarp/os/Bottle.h>
26 #include <yarp/dev/ControlBoardHelper.h>
27 #include <yarp/dev/ControlBoardInterfaces.h>
28 #include <yarp/os/BufferedPort.h>
33 yarp::dev::IMotor *_imot;
34 yarp::os::BufferedPort<yarp::os::Bottle> _outputPort;
36 double *_motorTemperatures;
37 double *_motorTemperatureLimits;
39 int _nEnabledMotors = 0;
41 std::string m_portPrefix=
"";
42 double _updatePeriod = 1;
43 std::string _robotName=
"";
44 yarp::sig::Vector _listOfJoints = 0;
46 yarp::dev::PolyDriver _motionControlDevice;
48 bool sendData2OutputPort(
double *temperatures);
62 bool configure(yarp::os::ResourceFinder &rf);
~MotorTemperaturePublisher() override
MotorTemperaturePublisher(const MotorTemperaturePublisher &)=default
MotorTemperaturePublisher(MotorTemperaturePublisher &&)=default
bool configure(yarp::os::ResourceFinder &rf)
MotorTemperaturePublisher()
MotorTemperaturePublisher & operator=(MotorTemperaturePublisher &&)=default
MotorTemperaturePublisher & operator=(const MotorTemperaturePublisher &)=default