common package
Subpackages
- common.api package
- common.kalman package
- common.transformations package
- 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.clock module
- common.clock.monotonic_time()
- common.clock.sec_since_boot()
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.ffi_wrapper.compile_code(name, c_code, c_header, directory, cflags='', libraries=None)[source]
common.file_helpers module
- class common.file_helpers.CallbackReader(f, callback, *args)[source]
Bases:
object
Wraps a file, but overrides the read method to also call a callback function with the number of bytes read so far.
- common.file_helpers.atomic_write_in_dir(path, **kwargs)[source]
Creates an atomic writer using a temporary file in the same directory as the destination file.
common.filter_simple module
common.gpio module
common.lazy_property 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.numpy_helpers module
common.params module
common.params_pyx module
- class common.params_pyx.Params
Bases:
object
- all_keys()
- check_key()
- clear_all()
- get()
- get_bool()
- get_param_path()
- put()
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 helper function in time sensitive code, but in general try to avoid writing params as much as possible.
- put_bool()
- remove()
- exception common.params_pyx.UnknownKeyName
Bases:
Exception
- common.params_pyx.ensure_bytes()
- common.params_pyx.put_bool_nonblocking()
- common.params_pyx.put_nonblocking()
common.profiler module
common.realtime module
Utilities for reading real time clocks and keeping soft real time constraints.