def dummy_gt_bd(traj, max_steps, ts=1):
  """
  This function extract the ground truth BD for the dummy environment
  :param traj:
  :param max_steps: Maximum number of steps the traj can have
  :param ts: percentage of the traj len at which the BD is extracted. In the range [0, 1]. Default: 1
  :return:
  """
  if ts == 1:
    index = -1 # If the trajectory is shorted, consider it as having continued withouth changes
  else:
    index = int(max_steps * ts)
  obs = traj[index][0]
  return obs