docstr: Creates 3D bounding boxes based on carla vehicle list and camera.
docstr_tok: ["Creates","3D","bounding","boxes","based","on","carla","vehicle","list","and","camera","."]
code: def get_trajectory_sets(
      rss_state_snapshot, camera_transform, calibration
  ):
      """
      Creates 3D bounding boxes based on carla vehicle list and camera.
      """
      trajectory_sets = []
  
      # ego
      trajectory_sets.append(
          (
              RssUnstructuredSceneVisualizer.transform_points(
                  RssUnstructuredSceneVisualizer._get_trajectory_set_points(
                      rss_state_snapshot.unstructuredSceneEgoInformation.brakeTrajectorySet
                  ),
                  camera_transform,
                  calibration,
              ),
              (255, 0, 0),
          )
      )
      trajectory_sets.append(
          (
              RssUnstructuredSceneVisualizer.transform_points(
                  RssUnstructuredSceneVisualizer._get_trajectory_set_points(
                      rss_state_snapshot.unstructuredSceneEgoInformation.continueForwardTrajectorySet
                  ),
                  camera_transform,
                  calibration,
              ),
              (0, 255, 0),
          )
      )
  
      # others
      for state in rss_state_snapshot.individualResponses:
          if (
              state.unstructuredSceneState.rssStateInformation.brakeTrajectorySet
          ):
              trajectory_sets.append(
                  (
                      RssUnstructuredSceneVisualizer.transform_points(
                          RssUnstructuredSceneVisualizer._get_trajectory_set_points(
                              state.unstructuredSceneState.rssStateInformation.brakeTrajectorySet
                          ),
                          camera_transform,
                          calibration,
                      ),
                      (255, 0, 0),
                  )
              )
          if (
              state.unstructuredSceneState.rssStateInformation.continueForwardTrajectorySet
          ):
              trajectory_sets.append(
                  (
                      RssUnstructuredSceneVisualizer.transform_points(
                          RssUnstructuredSceneVisualizer._get_trajectory_set_points(
                              state.unstructuredSceneState.rssStateInformation.continueForwardTrajectorySet
                          ),
                          camera_transform,
                          calibration,
                      ),
                      (0, 255, 0),
                  )
              )
  
      return trajectory_sets
  
imports: import glob
  import os
  import sys
  from enum import Enum
  import math
  import numpy
  import pygame
  import weakref
  import carla
  from carla import ad
label_desc: Use image node_id 11 for calling the RssUnstructuredSceneVisualizer obj's underlying member method code with example usage: obj.get_trajectory_sets(rss_state_snapshot, camera_transform, calibration) and returns: trajectory_sets