Manipulator control by energy dissipation