A dynamic framework for embedded devices and robots