Robots could sit in the seats of absent children in school - to allow the pupils to access lessons from a "safe space", a former children's commissioner has said.