MCPcopy Create free account
hub / github.com/OpenDriveLab/DriveAdapter / check_episode_has_noise

Function check_episode_has_noise

leaderboard/team_code/auto_pilot.py:86–95  ·  view source on GitHub ↗
(lat_noise_percent, long_noise_percent)

Source from the content-addressed store, hash-verified

84
85
86def check_episode_has_noise(lat_noise_percent, long_noise_percent):
87 lat_noise = False
88 long_noise = False
89 if random.randint(0, 101) < lat_noise_percent:
90 lat_noise = True
91
92 if random.randint(0, 101) < long_noise_percent:
93 long_noise = True
94
95 return lat_noise, long_noise
96
97
98class AutoPilot(MapAgent):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected