class documentation

class BatteryState(genpy.Message):

Constructor: BatteryState(*args, **kwds)

View In Hierarchy

Undocumented

Method __init__ Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix in-order arguments and keyword arguments.
Method deserialize unpack serialized message in str into this message instance :param str: byte array of serialized message, str
Method deserialize_numpy unpack serialized message in str into this message instance using numpy for array types :param str: byte array of serialized message, str :param numpy: numpy python module
Method serialize serialize message into buffer :param buff: buffer, StringIO
Method serialize_numpy serialize message with numpy array types into buffer :param buff: buffer, StringIO :param numpy: numpy python module
Constant POWER_SUPPLY_HEALTH_COLD Undocumented
Constant POWER_SUPPLY_HEALTH_DEAD Undocumented
Constant POWER_SUPPLY_HEALTH_GOOD Undocumented
Constant POWER_SUPPLY_HEALTH_OVERHEAT Undocumented
Constant POWER_SUPPLY_HEALTH_OVERVOLTAGE Undocumented
Constant POWER_SUPPLY_HEALTH_SAFETY_TIMER_EXPIRE Undocumented
Constant POWER_SUPPLY_HEALTH_UNKNOWN Undocumented
Constant POWER_SUPPLY_HEALTH_UNSPEC_FAILURE Undocumented
Constant POWER_SUPPLY_HEALTH_WATCHDOG_TIMER_EXPIRE Undocumented
Constant POWER_SUPPLY_STATUS_CHARGING Undocumented
Constant POWER_SUPPLY_STATUS_DISCHARGING Undocumented
Constant POWER_SUPPLY_STATUS_FULL Undocumented
Constant POWER_SUPPLY_STATUS_NOT_CHARGING Undocumented
Constant POWER_SUPPLY_STATUS_UNKNOWN Undocumented
Constant POWER_SUPPLY_TECHNOLOGY_LIFE Undocumented
Constant POWER_SUPPLY_TECHNOLOGY_LIMN Undocumented
Constant POWER_SUPPLY_TECHNOLOGY_LION Undocumented
Constant POWER_SUPPLY_TECHNOLOGY_LIPO Undocumented
Constant POWER_SUPPLY_TECHNOLOGY_NICD Undocumented
Constant POWER_SUPPLY_TECHNOLOGY_NIMH Undocumented
Constant POWER_SUPPLY_TECHNOLOGY_UNKNOWN Undocumented
Class Variable __slots__ Undocumented
Instance Variable capacity Undocumented
Instance Variable cell_temperature Undocumented
Instance Variable cell_voltage Undocumented
Instance Variable charge Undocumented
Instance Variable current Undocumented
Instance Variable design_capacity Undocumented
Instance Variable header Undocumented
Instance Variable location Undocumented
Instance Variable percentage Undocumented
Instance Variable power_supply_health Undocumented
Instance Variable power_supply_status Undocumented
Instance Variable power_supply_technology Undocumented
Instance Variable present Undocumented
Instance Variable serial_number Undocumented
Instance Variable temperature Undocumented
Instance Variable voltage Undocumented
Method _get_types internal API method
Class Variable _full_text Undocumented
Class Variable _has_header Undocumented
Class Variable _md5sum Undocumented
Class Variable _slot_types Undocumented
Class Variable _type Undocumented
def __init__(self, *args, **kwds):

Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix in-order arguments and keyword arguments.

The available fields are:
header,voltage,temperature,current,charge,capacity,design_capacity,percentage,power_supply_status,power_supply_health,power_supply_technology,present,cell_voltage,cell_temperature,location,serial_number

to set specific fields.

Parameters
*argscomplete set of field values, in .msg order
**kwdsuse keyword arguments corresponding to message field names
def deserialize(self, str):

unpack serialized message in str into this message instance :param str: byte array of serialized message, str

def deserialize_numpy(self, str, numpy):

unpack serialized message in str into this message instance using numpy for array types :param str: byte array of serialized message, str :param numpy: numpy python module

def serialize(self, buff):

serialize message into buffer :param buff: buffer, StringIO

def serialize_numpy(self, buff, numpy):

serialize message with numpy array types into buffer :param buff: buffer, StringIO :param numpy: numpy python module

POWER_SUPPLY_HEALTH_COLD: int =

Undocumented

Value
6
POWER_SUPPLY_HEALTH_DEAD: int =

Undocumented

Value
3
POWER_SUPPLY_HEALTH_GOOD: int =

Undocumented

Value
1
POWER_SUPPLY_HEALTH_OVERHEAT: int =

Undocumented

Value
2
POWER_SUPPLY_HEALTH_OVERVOLTAGE: int =

Undocumented

Value
4
POWER_SUPPLY_HEALTH_SAFETY_TIMER_EXPIRE: int =

Undocumented

Value
8
POWER_SUPPLY_HEALTH_UNKNOWN: int =

Undocumented

Value
0
POWER_SUPPLY_HEALTH_UNSPEC_FAILURE: int =

Undocumented

Value
5
POWER_SUPPLY_HEALTH_WATCHDOG_TIMER_EXPIRE: int =

Undocumented

Value
7
POWER_SUPPLY_STATUS_CHARGING: int =

Undocumented

Value
1
POWER_SUPPLY_STATUS_DISCHARGING: int =

Undocumented

Value
2
POWER_SUPPLY_STATUS_FULL: int =

Undocumented

Value
4
POWER_SUPPLY_STATUS_NOT_CHARGING: int =

Undocumented

Value
3
POWER_SUPPLY_STATUS_UNKNOWN: int =

Undocumented

Value
0
POWER_SUPPLY_TECHNOLOGY_LIFE: int =

Undocumented

Value
4
POWER_SUPPLY_TECHNOLOGY_LIMN: int =

Undocumented

Value
6
POWER_SUPPLY_TECHNOLOGY_LION: int =

Undocumented

Value
2
POWER_SUPPLY_TECHNOLOGY_LIPO: int =

Undocumented

Value
3
POWER_SUPPLY_TECHNOLOGY_NICD: int =

Undocumented

Value
5
POWER_SUPPLY_TECHNOLOGY_NIMH: int =

Undocumented

Value
1
POWER_SUPPLY_TECHNOLOGY_UNKNOWN: int =

Undocumented

Value
0
__slots__: list[str] =

Undocumented

capacity: float =

Undocumented

cell_temperature =

Undocumented

cell_voltage =

Undocumented

charge: float =

Undocumented

current: float =

Undocumented

design_capacity: float =

Undocumented

header =

Undocumented

location =

Undocumented

percentage: float =

Undocumented

power_supply_health: int =

Undocumented

power_supply_status: int =

Undocumented

power_supply_technology: int =

Undocumented

present =

Undocumented

serial_number =

Undocumented

temperature: float =

Undocumented

voltage: float =

Undocumented

def _get_types(self):

internal API method

_full_text: str =

Undocumented

_has_header: bool =

Undocumented

_md5sum: str =

Undocumented

_slot_types: list[str] =

Undocumented

_type: str =

Undocumented