Motion control of an electrohydraulic actuated toggle mechanism