Code for the active perception R&D