fromRobot static method

Motor fromRobot(
  1. RobotClient robot,
  2. String name
)

Get the Motor named name from the provided robot.

For more information, see Motor component.

Implementation

static Motor fromRobot(RobotClient robot, String name) {
  return robot.getResource(Motor.getResourceName(name));
}