modular configs - #191
Merged
Merged
Conversation
* Update scene schema, utils and client.cpp to read modular configs * Add example of modular configuration * Add modular configs for legacy example scripts * docs for modular configs * Remove modular config example scripts and clarify documentation --------- Co-authored-by: aurebidart <aure.bidart@gmail.com> Co-authored-by: MarinaGloc <tu-correo-de-github@example.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes: #
About
This pull request introduces support for modular configuration of robot and environment actor settings by allowing multiple JSON files to be combined into a single configuration. The changes update both the schema and implementation to accept arrays of config files, merge them recursively, and update documentation to explain the new modular approach. This enables more flexible, reusable, and maintainable configuration management for robots and environment actors.
Schema and configuration changes:
scene_config_schema.jsoncto allow both a single string or an array of strings forrobot-configandenv-actor-config, enabling modular configuration composition. [1] [2]docs/config.md,docs/config_robot.md, anddocs/config_scene.md, including usage examples and notes on merging behavior. [1] [2] [3] [4]Implementation changes (Python):
load_scene_config_as_dictinutils.pyto support loading and merging multiple config files for both robots and environment actors. Added recursivemerge_dictsandmerge_listshelper functions to handle merging logic. [1] [2]Implementation changes (C++):
Scene::Loader::LoadActorWithJSONandLoadEnvActorWithJSONinscene.cppto support receiving an array of config objects, merging them (with later objects overriding earlier ones), and logging the merge process for debugging. [1] [2]Other:
These changes make it much easier to compose complex robot and environment actor configurations from reusable building blocks, improving maintainability and flexibility for simulation scenarios.
How Has This Been Tested?
Screenshots and videos (if appropriate):