change robot-init function to pass arguments to initializer