MCPcopy Index your code
hub / github.com/stepjam/RLBench / register_graspable_objects

Method register_graspable_objects

rlbench/backend/task.py:187–199  ·  view source on GitHub ↗

Register what objects can be grasped with a 'stable' grasp. In order for objects to be grasped in a stable way, PyRep attaches an objects that need to be grasped as a child of the gripper. This function allows one to register a list of objects that can be grasped in

(self, objects: List[Object])

Source from the content-addressed store, hash-verified

185 self._success_conditions = condition
186
187 def register_graspable_objects(self, objects: List[Object]):
188 """Register what objects can be grasped with a 'stable' grasp.
189
190 In order for objects to be grasped in a stable way, PyRep attaches an
191 objects that need to be grasped as a child of the gripper. This function
192 allows one to register a list of objects that can be grasped in
193 this 'stable' manner.
194
195 Note: this replaces any previously registered objects!
196
197 :param objects: The list of Objects that can be grasped.
198 """
199 self._graspable_objects = objects
200
201 def register_waypoint_ability_start(self, waypoint_index: int,
202 func: Callable[[Waypoint], None]):

Callers 15

init_taskMethod · 0.80
init_taskMethod · 0.80
init_taskMethod · 0.80
init_taskMethod · 0.80
init_taskMethod · 0.80
init_taskMethod · 0.80
init_taskMethod · 0.80
init_taskMethod · 0.80
init_taskMethod · 0.80
init_taskMethod · 0.80
init_taskMethod · 0.80
init_taskMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected