Statics and Dynamics Error Analysis For Modular Robot Design