Load scene JSON files from PriorKnowledgeData
-
Enable simulator to load a sequence of scene files in JSON format as seen by PriorKnowledgeData and used by the new object memory, similar to loading snapshot from legacy prior knowledge
- Add a property similar to "SnapshotToLoad" which takes a comma-separated list of ArmarX Data paths (e.g.
PriorKnowledgeData/scenes/ARMAR-III-Kitchen.json
) - Load the scene files, find object files via the
ObjectFinder
and spawn the objects in the simulator
Code for loading the scene file can be found in the object instance segment: https://gitlab.com/ArmarX/RobotAPI/-/blob/master/source/RobotAPI/libraries/armem_objects/server/instance/Segment.cpp
Scene class is here: https://gitlab.com/ArmarX/RobotAPI/-/blob/master/source/RobotAPI/libraries/ArmarXObjects/Scene.h
-
Make dependency to legacy memory optional (only in runtime if loading a scene snapshot from old memory is requested)
Edited by Rainer Kartmann