Real-time multi-agent systems for telerehabilitation scenarios