Definition at line 43 of file statistics_registry.py.
◆ __init__()
def pal_statistics.statistics_registry.StatisticsRegistry.__init__ |
( |
|
self, |
|
|
|
topic |
|
) |
| |
◆ createFullMsg()
def pal_statistics.statistics_registry.StatisticsRegistry.createFullMsg |
( |
|
self | ) |
|
◆ createOptimizedMsgs()
def pal_statistics.statistics_registry.StatisticsRegistry.createOptimizedMsgs |
( |
|
self | ) |
|
Create and return a names, values message after reading all registrations
Definition at line 132 of file statistics_registry.py.
◆ publish()
def pal_statistics.statistics_registry.StatisticsRegistry.publish |
( |
|
self | ) |
|
◆ publishCustomStatistic()
def pal_statistics.statistics_registry.StatisticsRegistry.publishCustomStatistic |
( |
|
self, |
|
|
|
name, |
|
|
|
value |
|
) |
| |
◆ publishCustomStatistics()
def pal_statistics.statistics_registry.StatisticsRegistry.publishCustomStatistics |
( |
|
self, |
|
|
|
msg |
|
) |
| |
◆ registerFunction()
def pal_statistics.statistics_registry.StatisticsRegistry.registerFunction |
( |
|
self, |
|
|
|
name, |
|
|
|
func, |
|
|
|
registration_list = None |
|
) |
| |
Registers a function that will be called to read the value to
be published when the publish() method is called
@param registration_list: If not None, will be extended to include a
Registration object for the registered function
The function takes no arguments and returns a value convertable to float
It can also be used to register a variable using lambda
registerFunction("my_function", self.my_function)
registerFunction("my_variable", (lambda: variable))
Definition at line 59 of file statistics_registry.py.
◆ unregister()
def pal_statistics.statistics_registry.StatisticsRegistry.unregister |
( |
|
self, |
|
|
|
name |
|
) |
| |
◆ full_pub
pal_statistics.statistics_registry.StatisticsRegistry.full_pub |
◆ functions
pal_statistics.statistics_registry.StatisticsRegistry.functions |
◆ last_names_version
pal_statistics.statistics_registry.StatisticsRegistry.last_names_version |
◆ names_changed
pal_statistics.statistics_registry.StatisticsRegistry.names_changed |
◆ names_pub
pal_statistics.statistics_registry.StatisticsRegistry.names_pub |
◆ topic
pal_statistics.statistics_registry.StatisticsRegistry.topic |
◆ values_pub
pal_statistics.statistics_registry.StatisticsRegistry.values_pub |
The documentation for this class was generated from the following file: