Design And Implementation Of A Scalable Real-Time Motor Controller Architecture For Humanoid Robots And Exoskeletons