Complex tasks are usually described as high-level goals, leaving out the details on how to achieve them. However, to control a robot, details must be provided. Having the robot move itself to and through an unknown, and possibly narrow, doorway is an example of such a task. We illustrate the difficulty of such a task using actual data from a real robot. We show how the transformation from high-level goals to primitive commands can be performed at execution time and we propose an architecture based on reconfigurable objects that contain domain knowledge and knowledge about the sensors and actuators available. We then show how our approach is used in solving the illustrated task.