Impedance shaping controller for robotic applications involving interacting compliant environments and compliant robot bases