A Real-Time Library for the Design of Hybrid Robot Control Architectures