fromRobot static method

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

Get the MovementSensor named name from the provided robot.

For more information, see Movement Sensor component.

Implementation

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