Programming Modular Robots with the TOTA Middleware