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])
| 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]): |
no outgoing calls
no test coverage detected