Retractable Wheel

Cyan cylinder and red piston control the wheel retraction.
Violet, green and blue links create a planar bar mechanism.
Pink and yellow links create a spherical mechanism, their axes of revolution joints are concurrent.
Brown elastic torsion bar plays role of a buffer for torque load.