pyrobosim.planning.pddlstream.utils.replace_goal_literal_tuple

pyrobosim.planning.pddlstream.utils.replace_goal_literal_tuple(goal_literals: list[tuple[str | Entity, ...]], literal_idx: int, arg_idx: int, new_val: Entity) None

Utility function to replace the element of a goal literal tuple in place.

Parameters:
  • goal_literals – List of literals describing a goal specification.

  • literal_idx – Index of goal literal in list to replace.

  • arg_idx – Index of argument in goal literal to replace.

  • new_val – New value to replace inside the goal literal tuple.