The royal attended two engagements in Aberdeen with those who work in the homelessness sector.