You can also have a ballscrew/acme screw driven system. You would have to screws, one right hand thread, one left hand. Attach them in the center (maybe with a gearbox between them to attach crank/motor), mount some sort of linear guide for the nuts, attach stops to the nuts.
Here is a drawing of a simple gear rack system. The pinion would be stationary (pinned at center). |