fromRobot static method

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

Get the Camera named name from the provided robot.

For more information, see Camera component.

Implementation

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