The monarch was visiting the Edinburgh Climate Change Institute during her visit to Scotland.