Skip to content

Robot factory

A robot factory is available to instanciate the robot from the command line.

For instance,

import argparse, irt

parser = argparse.ArgumentParser()
irt.robot.add_parser_options(parser)
args = parser.parse_args()
robot = irt.robot.build_robot_from_args(args)

and from the command line:

python main.py --robot pepper --name myapp --language English