Controlling Linear and Rotary Motions of an Object
Linear motion of yellow object along longitudinal axis and its rotary motion around vertical axis are controlled by two racks (in blue and green).
When two racks move in the same direction at the same velocity, the object moves linearly only.
When two racks move in opposite directions at the same velocity, the object rotates only.
Each rack is connected to a cylinder (not shown).