obci.control.common package
Submodules
obci.control.common.cfg_messages_pb2 module
obci.control.common.config_helpers module
-
exception
obci.control.common.config_helpers.OBCISystemError[source]
Bases: Exception
-
obci.control.common.config_helpers.argument_not_empty_check(p_arg)[source]
-
obci.control.common.config_helpers.module_id_type_check(p_module_id)[source]
-
obci.control.common.config_helpers.param_name_type_check(p_param_name)[source]
-
obci.control.common.config_helpers.reference_split(p_reference)[source]
-
obci.control.common.config_helpers.reference_type_check(p_reference)[source]
obci.control.common.config_message module
-
exception
obci.control.common.config_message.ConfigMessageError[source]
Bases: Exception
-
obci.control.common.config_message.dict2params(dic, config_params_msg, field_name='params')[source]
Take parameters from the dictionary dic, encode values to json and
put them in the config_params_msg. The message should have
a ‘params’ attribute
-
obci.control.common.config_message.fill_and_pack(mx_type, **kwargs)[source]
-
obci.control.common.config_message.fill_msg(mx_type, **kwargs)[source]
This does NOT encode any values to json!
-
obci.control.common.config_message.launcher_cmd(sender_id, encoded_launcher_msg)[source]
-
obci.control.common.config_message.msg_for_type(mx_type)[source]
-
obci.control.common.config_message.msg_to_dict(msg, val_f=None)[source]
Does not convert nested messages!
-
obci.control.common.config_message.pack_msg(msg)[source]
-
obci.control.common.config_message.params2dict(config_params_msg, field_name='params')[source]
Take parameters from the config_params_msg,
put them in a dictionary (with decoded values from json) and return it.
The message should have a ‘params’ attribute
-
obci.control.common.config_message.str2val(string)[source]
-
obci.control.common.config_message.unpack_msg(mx_type, msg_str)[source]
-
obci.control.common.config_message.val2str(value)[source]
obci.control.common.obci_control_settings module
Module contents