Feedforward command computation of a 3D flexible robot