roboglia.utils.register_class

register_class(class_obj)[source]

Registers a class with the class factory dictionary. If the class is already registered the function does not replace it. In the factory the class is represented by name.

Parameters

cls (class object) – is the class to be registerd.

Raises

ValueError – if the parameter passed is not a Class object.