I'm thinking about making a camera jib and thought up a counterweight system where the counterweight is moved backwards as the camera is extended out and vice versa. As usual, it's already been done:
How do you think the linear motion of the counterweight is achieved?