Design, Simulation and Testing of a Controller And Software Framework for Automated Construction by a Robotic Manipulator