fromRobot static method
- RobotClient robot,
- 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));
}