common package
Subpackages
- common.api package
- common.mock package
- common.tests package
- Submodules
- common.tests.test_file_helpers module
- common.tests.test_numpy_fast module
- common.tests.test_params module
TestParams
TestParams.setUp()
TestParams.test_get_bool()
TestParams.test_params_all_keys()
TestParams.test_params_get_block()
TestParams.test_params_get_cleared_manager_start()
TestParams.test_params_non_ascii()
TestParams.test_params_put_and_get()
TestParams.test_params_two_things()
TestParams.test_params_unknown_key_fails()
TestParams.test_put_bool_non_blocking_with_get_block()
TestParams.test_put_non_blocking_with_get_block()
TestParams.test_remove_not_there()
- common.tests.test_simple_kalman module
- Module contents
- common.transformations package
- Subpackages
- Submodules
- common.transformations.camera module
- common.transformations.coordinates module
- common.transformations.model module
- common.transformations.orientation module
- common.transformations.transformations module
- Module contents
Submodules
common.basedir module
common.conversions module
- class common.conversions.Conversions[source]
Bases:
object
- DEG_TO_RAD = 0.017453292519943295
- KNOTS_TO_MS = 0.5144562197756971
- KPH_TO_MPH = 0.621371192237334
- KPH_TO_MS = 0.2777777777777778
- LB_TO_KG = 0.453592
- MPH_TO_KPH = 1.609344
- MPH_TO_MS = 0.44704000000000005
- MS_TO_KNOTS = 1.9438
- MS_TO_KPH = 3.6
- MS_TO_MPH = 2.2369362920544025
- RAD_TO_DEG = 57.29577951308232
common.dict_helpers module
common.ffi_wrapper module
common.file_helpers module
common.filter_simple module
common.git module
common.gpio module
common.logging_extra module
- class common.logging_extra.SwagFormatter(swaglogger)[source]
Bases:
Formatter
- format(record)[source]
Format the specified record as text.
The record’s attribute dictionary is used as the operand to a string formatting operation which yields the returned string. Before formatting the dictionary, a couple of preparatory steps are carried out. The message attribute of the record is computed using LogRecord.getMessage(). If the formatting string uses the time (as determined by a call to usesTime(), formatTime() is called to format the event time. If there is exception information, it is formatted using formatException() and appended to the message.
- class common.logging_extra.SwagLogFileFormatter(swaglogger)[source]
Bases:
SwagFormatter
- format(record)[source]
Format the specified record as text.
The record’s attribute dictionary is used as the operand to a string formatting operation which yields the returned string. Before formatting the dictionary, a couple of preparatory steps are carried out. The message attribute of the record is computed using LogRecord.getMessage(). If the formatting string uses the time (as determined by a call to usesTime(), formatTime() is called to format the event time. If there is exception information, it is formatted using formatException() and appended to the message.
common.numpy_fast module
common.params module
common.params_pyx module
- class common.params_pyx.ParamKeyType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
IntFlag
- ALL = 4294967295
- CLEAR_ON_MANAGER_START = 4
- CLEAR_ON_OFFROAD_TRANSITION = 16
- CLEAR_ON_ONROAD_TRANSITION = 8
- DEVELOPMENT_ONLY = 64
- PERSISTENT = 2
- class common.params_pyx.Params
Bases:
object
- all_keys()
- check_key(key)
- clear_all(tx_type=<ParamKeyType.ALL: 4294967295>)
- get(key, block=False, encoding=None)
- get_bool(key, block=False)
- get_param_path(key='')
- put(key, dat)
Warning: This function blocks until the param is written to disk! In very rare cases this can take over a second, and your code will hang. Use the put_nonblocking, put_bool_nonblocking in time sensitive code, but in general try to avoid writing params as much as possible.
- put_bool(key, val)
- put_bool_nonblocking(key, val)
- put_nonblocking(key, dat)
- remove(key)
- exception common.params_pyx.UnknownKeyName
Bases:
Exception
- common.params_pyx.ensure_bytes(v)
common.prefix module
common.realtime module
Utilities for reading real time clocks and keeping soft real time constraints.
common.retry module
common.run module
common.simple_kalman module
common.spinner module
common.stat_live module
common.swaglog module
- class common.swaglog.SwaglogRotatingFileHandler(base_filename, interval=60, max_bytes=262144, backup_count=2500, encoding=None)[source]
Bases:
BaseRotatingHandler
- class common.swaglog.UnixDomainSocketHandler(formatter)[source]
Bases:
Handler