MCPcopy Create free account
hub / github.com/YitianShi/MetaIsaacGrasp / callback

Method callback

grasp_sampler/visualize_object.py:93–98  ·  view source on GitHub ↗
(self, scene)

Source from the content-addressed store, hash-verified

91
92 # Callback function for the window: deletes the displayed geometries and reload them
93 def callback(self, scene):
94 for i in range(100):
95 self.scene.delete_geometry(str(i))
96 for id, keypt in enumerate(self.keypts):
97 assert id == keypt[0]
98 self.scene.add_geometry(self.spheres[id], geom_name=str(id))
99
100 def save_to_file(self):
101 keypt_subgrp = self.f['keypts']

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected