Planning for Modular Robots