pyrobosim.planning.pddlstream.utils.replace_goal_literal_tuple
- pyrobosim.planning.pddlstream.utils.replace_goal_literal_tuple(goal_literals, literal_idx, arg_idx, new_val)
Utility function to replace the element of a goal literal tuple in place.
- Parameters:
goal_literals (list[tuple]) – List of literals describing a goal specification.
literal_idx (int) – Index of goal literal in list to replace.
arg_idx (int) – Index of argument in goal literal to replace.
new_val (Any) – New value to replace inside the goal literal tuple.