fromRobot static method

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

Get the Servo named name from the provided robot.

final myServo = Servo.fromRobot(myRobotClient, "my_servo");

For more information, see Servo component.

Implementation

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