SafeLIBERO / safelibero /scripts /get_affordance_info.py
THURCSCT's picture
Add files using upload-large-folder tool
0e4bbae verified
# This is an example script to get all the affordance information specified in xml files.
import init_path
from libero.libero.envs.objects import OBJECTS_DICT
from libero.libero.utils.object_utils import get_affordance_regions
affordances = get_affordance_regions(OBJECTS_DICT)
print(affordances)