iCub-main
Loading...
Searching...
No Matches
MotorTemperaturePublisher

Motor Temperature Detector and Publisher Version:1.0.

+ Collaboration diagram for MotorTemperaturePublisher:

Motor Temperature Detector and Publisher Version:1.0.

Author
Jacopo Losi jacop.nosp@m.o.lo.nosp@m.si@ii.nosp@m.t.it

Description

This module is a working example for building a YARP device that exploits the iMotor YARP interfaces to interact with the motion control module. Specifically to this example, we are defining a PolyDriver device that interacts with the pointer to the iMotor yarp interface and prints the motor temperatures to an output port. Those temperatures values can be obtained exploiting the interface method getTemperatures() and saved to a c-array of doubles.

In order to use this module, whose final target is to print at the port called /portprefix/motor_temperatures:o the temperatures of the motors connected, the following steps should be done:

This will instantiate the aformentioned port where the following values will be streamed at the specified period:

Parameters

Input Ports

Output Ports

Services