MCPcopy Index your code
hub / github.com/OpenDriveLab/DriveAdapter / clear

Method clear

leaderboard/team_code/planner.py:16–20  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

14 self.title = str(self.size)
15
16 def clear(self):
17 from PIL import Image, ImageDraw
18
19 self.img = Image.fromarray(np.zeros((self.size, self.size, 3), dtype=np.uint8))
20 self.draw = ImageDraw.Draw(self.img)
21
22 def dot(self, pos, node, color=(255, 255, 255), r=2):
23 x, y = 5.5 * (pos - node)

Callers 12

__init__Method · 0.95
run_stepMethod · 0.80
set_routeMethod · 0.80
run_stepMethod · 0.80
run_stepMethod · 0.80
prepare_mapMethod · 0.80
cleanupMethod · 0.80
set_global_planMethod · 0.80
set_global_planMethod · 0.80
set_destinationMethod · 0.80
cache_to_cudaMethod · 0.80
cleanMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected