Type annotation: this parameter is a robot handle.Usage::from grid_nexus_program import Robot, program@program
def controller(bot: Robot, depth: float):
bot.setVelocity(linear=depth)The parameter name is arbitrary — the compiler uses the annotation,
not the name, to detect robot handles.
Was this page helpful?
⌘I
Assistant
Responses are generated using AI and may contain mistakes.