Active Perception and Planning for Modular Self-Reconfigurable Robots