Flexible space-based robot modelling and real-time simulation