(self, *args, action, **kwargs)
| 235 | |
| 236 | @add_perf_timing_func() |
| 237 | def step(self, *args, action, **kwargs): |
| 238 | self.pddl.sim_info.reset_pred_truth_cache() |
| 239 | fix_top_down_cam_pos(self._sim) |
| 240 | self.num_steps += 1 |
| 241 | if "action_args" not in action: |
| 242 | # This won't be added to discrete action spaces, but RearrangeTask |
| 243 | # expects it. |
| 244 | action["action_args"] = {"sel": action["action"]} |
| 245 | action["action"] = 0 |
| 246 | |
| 247 | return super().step(*args, action=action, **kwargs) |
| 248 | |
| 249 | @add_perf_timing_func() |
| 250 | def reset(self, episode): |
nothing calls this directly
no test coverage detected