def add_torques(self, torques):
j = <NUM_LIT:0><EOL>for joint in self.joints:<EOL><INDENT>joint.add_torques(<EOL>list(torques[j:j+joint.ADOF]) + [<NUM_LIT:0>] * (<NUM_LIT:3> - joint.ADOF))<EOL>j += joint.ADOF<EOL><DEDENT>
Add torques for each degree of freedom in the skeleton.

        Parameters
        ----------
        torques : list of float
            A list of the torques to add to each degree of freedom in the
            skeleton.