fromRobot static method
- RobotClient robot,
- String name
Get the Sensor named name
from the provided robot.
final mySensor = Sensor.fromRobot(myRobotClient, "my_sensor");
For more information, see Sensor component.
Implementation
static Sensor fromRobot(RobotClient robot, String name) {
return robot.getResource(Sensor.getResourceName(name));
}