paralleldomain.data_lab.generators.random_pedestrian

class RandomPedestrianGeneratorParameters(*, proto=None, speed_range=None, position_request=None, num_of_pedestrians_range=None, min_radius_between_pedestrians=None, ped_spawn_data=None)

Generator to place multiple pedestrians in a scenario. Requires previous use of EgoAgentGeneratorParameters in the scenario.

Parameters:
speed_range

Specifies the minimum and maximum values for the speed of each pedestrian. Each spawned pedestrian’s speed is then randomly sampled from this range. The specified min value must be greater than 0.0 and the specified max value must be greater than min.

If not provided, will use a min of 0.5 and a max of 1.5.

position_request

Specifies the location around which traffic should be spawned. Only works with LocationRelativePositionRequest and LaneSpawnPolicy. Must be provided.

num_of_pedestrians_range

Specifies the minimum and maximum number of pedestrians to generate. The actual number of pedestrians to spawn is selected from a normal distribution within this range. The specified min value must be greater than 0.0 and the specified max value must be greater than min. This parameter must be provided.

min_radius_between_pedestrians

Specified the spatial separation between pedestrians in meters. Specified values must be greater than 0.0. Default: 0.5

ped_spawn_data

Specifies parameters that control pedestrian spawning and movement behavior. If not provided, will use defaults specified in PedestrianSpawnData.