fromRobot static method

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

Get the VisionClient named name from the provided robot.

final myVisionService = VisionService.fromRobot(myRobotClient, "my_vision_service");

Implementation

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