parameters: (self, leg_masses)
docstring: Set the mass of the legs.
  
      A leg includes leg_link and motor. All four leg_links have the same mass,
      which is leg_masses[0]. All four motors have the same mass, which is
      leg_mass[1].
  
      Args:
        leg_masses: The leg masses. leg_masses[0] is the mass of the leg link.
          leg_masses[1] is the mass of the motor.
docstring_summary: Set the mass of the legs.
docstring_tokens: Set the mass of the legs .
function: def SetLegMasses(self, leg_masses):
      """Set the mass of the legs.
  
      A leg includes leg_link and motor. All four leg_links have the same mass,
      which is leg_masses[0]. All four motors have the same mass, which is
      leg_mass[1].
  
      Args:
        leg_masses: The leg masses. leg_masses[0] is the mass of the leg link.
          leg_masses[1] is the mass of the motor.
      """
      for link_id in LEG_LINK_ID:
        self._pybullet_client.changeDynamics(self.quadruped, link_id, mass=leg_masses[0])
      for link_id in MOTOR_LINK_ID:
        self._pybullet_client.changeDynamics(self.quadruped, link_id, mass=leg_masses[1])
function_tokens: def SetLegMasses ( self , leg_masses ) : for link_id in LEG_LINK_ID : self . _pybullet_client . changeDynamics ( self . quadruped , link_id , mass = leg_masses [ 0 ] ) for link_id in MOTOR_LINK_ID : self . _pybullet_client . changeDynamics ( self . quadruped , link_id , mass = leg_masses [ 1 ] )