1from typing
import NoReturn, Tuple
2from iCub.iCub_Interface
import ANNiCub_wrapper
5def create_robot_interface_file(filename_config: str, filename_interface: str = ...) -> NoReturn:
6 """Create file with interface init code.
11 filename of XML config file
13 filename of created interface file (Default value = "./robot_interface.py")
20def init_robot_from_file(iCub: ANNiCub_wrapper, xml_file: str) -> Tuple[bool, str]:
21 """Init iCub interface with the modules given in the xml-file
25 iCub : ANNiCub_wrapper
26 main interface wrapper
28 filename of the xml-config-file
33 Returns a bool value representing the success of the init and a dicionary containing the module names for each module type
37def save_robot_to_file(iCub: ANNiCub_wrapper, xml_file: str, description: str = ...) -> NoReturn:
38 """Save robot configuration to xml-config file
42 iCub : ANNiCub_wrapper
43 main interface wrapper
45 filename for the xml-config-file
47 optional description added as comment in the robot section. Defaults to "".