how to draw kinematic diagram of locomotive interconnected wheel on solid-work and then simulated using matlab

must include several linkage with one or three degree of freedom