(self, base_mass)
Set the mass of minitaur's base.

    Args:
      base_mass: A list of masses of each body link in CHASIS_LINK_IDS. The
        length of this list should be the same as the length of CHASIS_LINK_IDS.

    Raises:
      ValueError: It is raised when the length of base_mass is not the same as
        the length of self._chassis_link_ids.
Set the mass of minitaur's base.
Set the mass of minitaur s base .
def SetBaseMasses(self, base_mass):
    """Set the mass of minitaur's base.

    Args:
      base_mass: A list of masses of each body link in CHASIS_LINK_IDS. The
        length of this list should be the same as the length of CHASIS_LINK_IDS.

    Raises:
      ValueError: It is raised when the length of base_mass is not the same as
        the length of self._chassis_link_ids.
    """
    if len(base_mass) != len(self._chassis_link_ids):
      raise ValueError(
          "The length of base_mass {} and self._chassis_link_ids {} are not "
          "the same.".format(len(base_mass), len(self._chassis_link_ids)))
    for chassis_id, chassis_mass in zip(self._chassis_link_ids, base_mass):
      self._pybullet_client.changeDynamics(self.quadruped,
                                           chassis_id,
                                           mass=chassis_mass)
def SetBaseMasses ( self , base_mass ) : if len ( base_mass ) != len ( self . _chassis_link_ids ) : raise ValueError ( "The length of base_mass {} and self._chassis_link_ids {} are not " "the same." . format ( len ( base_mass ) , len ( self . _chassis_link_ids ) ) ) for chassis_id , chassis_mass in zip ( self . _chassis_link_ids , base_mass ) : self . _pybullet_client . changeDynamics ( self . quadruped , chassis_id , mass = chassis_mass )