A real-time library for the design of hybrid robot control architectures