ADORe
ADORe is a modular open source software library and toolkit for decision making, planning, control and simulation of automated vehicles
hardware_monitor.hardware_status_node.HardwareStatusNode Class Reference
Inheritance diagram for hardware_monitor.hardware_status_node.HardwareStatusNode:
Inheritance graph
Collaboration diagram for hardware_monitor.hardware_status_node.HardwareStatusNode:
Collaboration graph

Public Member Functions

def __init__ (self, context=None)
 

Private Member Functions

str _warn_level (self, float value, float warn, float error=95.0)
 
str _run_cmd (self, list[str] cmd, float timeout=2.0)
 
str _read_file (self, str path)
 
dict _collect_cpu (self)
 
dict _collect_ram (self)
 
list[dict] _collect_gpu (self)
 
dict _collect_disk (self)
 
dict _collect_temperatures (self)
 
dict _collect_network (self)
 
dict _collect_ntp (self)
 
dict _collect_processes (self)
 
def _publish_status (self)
 

Private Attributes

 _node_name
 
 _topic_host
 
 _cpu_warn
 
 _ram_warn
 
 _disk_warn
 
 _temp_warn
 
 _pub
 
 _timer
 
 _psutil
 

Constructor & Destructor Documentation

◆ __init__()

def hardware_monitor.hardware_status_node.HardwareStatusNode.__init__ (   self,
  context = None 
)

Member Function Documentation

◆ _collect_cpu()

dict hardware_monitor.hardware_status_node.HardwareStatusNode._collect_cpu (   self)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ _collect_disk()

dict hardware_monitor.hardware_status_node.HardwareStatusNode._collect_disk (   self)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ _collect_gpu()

list[dict] hardware_monitor.hardware_status_node.HardwareStatusNode._collect_gpu (   self)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ _collect_network()

dict hardware_monitor.hardware_status_node.HardwareStatusNode._collect_network (   self)
private
Here is the caller graph for this function:

◆ _collect_ntp()

dict hardware_monitor.hardware_status_node.HardwareStatusNode._collect_ntp (   self)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ _collect_processes()

dict hardware_monitor.hardware_status_node.HardwareStatusNode._collect_processes (   self)
private
Here is the caller graph for this function:

◆ _collect_ram()

dict hardware_monitor.hardware_status_node.HardwareStatusNode._collect_ram (   self)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ _collect_temperatures()

dict hardware_monitor.hardware_status_node.HardwareStatusNode._collect_temperatures (   self)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ _publish_status()

def hardware_monitor.hardware_status_node.HardwareStatusNode._publish_status (   self)
private
Here is the call graph for this function:

◆ _read_file()

str hardware_monitor.hardware_status_node.HardwareStatusNode._read_file (   self,
str  path 
)
private
Here is the caller graph for this function:

◆ _run_cmd()

str hardware_monitor.hardware_status_node.HardwareStatusNode._run_cmd (   self,
list[str]  cmd,
float   timeout = 2.0 
)
private
Here is the caller graph for this function:

◆ _warn_level()

str hardware_monitor.hardware_status_node.HardwareStatusNode._warn_level (   self,
float  value,
float  warn,
float   error = 95.0 
)
private
Here is the caller graph for this function:

Member Data Documentation

◆ _cpu_warn

hardware_monitor.hardware_status_node.HardwareStatusNode._cpu_warn
private

◆ _disk_warn

hardware_monitor.hardware_status_node.HardwareStatusNode._disk_warn
private

◆ _node_name

hardware_monitor.hardware_status_node.HardwareStatusNode._node_name
private

◆ _psutil

hardware_monitor.hardware_status_node.HardwareStatusNode._psutil
private

◆ _pub

hardware_monitor.hardware_status_node.HardwareStatusNode._pub
private

◆ _ram_warn

hardware_monitor.hardware_status_node.HardwareStatusNode._ram_warn
private

◆ _temp_warn

hardware_monitor.hardware_status_node.HardwareStatusNode._temp_warn
private

◆ _timer

hardware_monitor.hardware_status_node.HardwareStatusNode._timer
private

◆ _topic_host

hardware_monitor.hardware_status_node.HardwareStatusNode._topic_host
private

The documentation for this class was generated from the following file: