action_primitive_set_base
BaseActionPrimitiveSet
Bases: with_metaclass(ABCMeta, object)
Source code in omnigibson/action_primitives/action_primitive_set_base.py
__init_subclass__(**kwargs)
Registers all subclasses as part of this registry. This is useful to decouple internal codebase from external user additions. This way, users can add their custom primitive set by simply extending this class, and it will automatically be registered internally. This allows users to then specify their primitive set directly in string-from in e.g., their config files, without having to manually set the str-to-class mapping in our code.
Source code in omnigibson/action_primitives/action_primitive_set_base.py
apply(action)
abstractmethod
Apply a primitive action.
Given a higher-level action in the same format as the action space (e.g. as a number), generates a sequence of lower level actions (or raise ActionPrimitiveError). The action will get resolved and passed into apply_ref.
Source code in omnigibson/action_primitives/action_primitive_set_base.py
apply_ref(action, *args)
abstractmethod
Apply a primitive action by reference.
Given a higher-level action from the corresponding action set enum and any necessary arguments, generates a sequence of lower level actions (or raise ActionPrimitiveError)