Dynamics of active articulated mechanisms and synthesis of artificial motion