|
iCub-main
|
Files | |
| bcbBattery.cpp | |
| bcbBattery.h | |
This module implements the IBattery interface to retrieve the status of the battery in the iCub backpack.
In order for this module to be compiled, it needs to be enabled with the option ENABLE_icubmod_bcbBattery set to ON. In addition, yarp needs to be compiled with the following options set to ON:
In addition, in order to have a GUI representation of the battery status, enable the following in yarp
This module can be used by resorting to the configuration files already available in the battery folder in the experimentalSetups of robots-configuration. From that folder, it is sufficient to run yarprobotinterface.
The configuration file of this module needs two groups. A group named SERIAL_PORT with all the parameters relative to the serial port connection. For the meaning of these parameters refer to the serialPort header file. Their setup depends on the serial configuration done on the hardware side.
The second group should be named GENERAL and should contain the following: