def METHOD_NAME(self, command: Command) -> None:
    """Moves the gantry to the position provided in the command"""
    for key, value in command.params.items():
        assert isinstance(value, float), f"invalid value '{value}'"
        if "F" == key:
            self._speed = value
        else:
            self._pos[key] = value