MCPcopy Create free account
hub / github.com/apple/ml-llarp / step

Method step

llarp/task/predicate_task.py:237–247  ·  view source on GitHub ↗
(self, *args, action, **kwargs)

Source from the content-addressed store, hash-verified

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):

Callers

nothing calls this directly

Calls 1

fix_top_down_cam_posFunction · 0.85

Tested by

no test coverage detected