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