fromRobot static method

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

Get the Sensor named name from the provided robot.

For more information, see Sensor component.

Implementation

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