Roberts Four-Bar Linkage

Violet bar (creating a parallelogram mechanism with green cranks) ensures the synchronic rotation of two green cranks.
The yellow bar carrying a box translates near linearly.