A Real-Time Hardware In-The-loop Simulator for Robotics Applications