def set_dof(self, dof_value_map):
    '\n            dof_value_map: A dict that maps robot attribute name to a list of corresponding values\n        '
    if (not isinstance(self._geom, Robot)):
        return
    dof_val = self.env_body.GetActiveDOFValues()
    for (k, v) in dof_value_map.items():
        if ((k not in self._geom.dof_map) or np.any(np.isnan(v))):
            continue
        inds = self._geom.dof_map[k]
        try:
            dof_val[inds] = v
        except IndexError:
            print(('\n\n\nBad index in set dof:', inds, k, v, self._geom, '\n\n\n'))
    self.env_body.SetActiveDOFValues(dof_val)
dof_value_map: A dict that maps robot attribute name to a list of corresponding values
def set_dof(self, dof_value_map):
    '\n            \n        '
    if (not isinstance(self._geom, Robot)):
        return
    dof_val = self.env_body.GetActiveDOFValues()
    for (k, v) in dof_value_map.items():
        if ((k not in self._geom.dof_map) or np.any(np.isnan(v))):
            continue
        inds = self._geom.dof_map[k]
        try:
            dof_val[inds] = v
        except IndexError:
            print(('\n\n\nBad index in set dof:', inds, k, v, self._geom, '\n\n\n'))
    self.env_body.SetActiveDOFValues(dof_val)