A Control Theory for Cartesian Flexible Robot Arms