def iterate_rollouts(self):
    ' Iterate over all sub-rollouts of a concatenated rollout. '
    if (not self.continuous):
        raise pyrado.ValueErr(msg='Sub-rollouts are only supported on continuous data.')
    bounds = self._rollout_bounds
    count = (len(bounds) - 1)
    if (count == 1):
        (yield self)
    else:
        for i in range(count):
            start_step = bounds[i]
            end_step = bounds[(i + 1)]
            (yield self[start_step:end_step])
Iterate over all sub-rollouts of a concatenated rollout.
def iterate_rollouts(self):
    '  '
    if (not self.continuous):
        raise pyrado.ValueErr(msg='Sub-rollouts are only supported on continuous data.')
    bounds = self._rollout_bounds
    count = (len(bounds) - 1)
    if (count == 1):
        (yield self)
    else:
        for i in range(count):
            start_step = bounds[i]
            end_step = bounds[(i + 1)]
            (yield self[start_step:end_step])