fromRobot static method
- RobotClient robot,
- String name
Get the PowerSensor named name
from the provided robot.
For more information, see Power Sensor component.
Implementation
static PowerSensor fromRobot(RobotClient robot, String name) {
return robot.getResource(PowerSensor.getResourceName(name));
}