Skip to content

modular configs - #191

Merged
jonyMarino merged 1 commit into
mainfrom
feature/modular_configs
Aug 26, 2026
Merged

modular configs#191
jonyMarino merged 1 commit into
mainfrom
feature/modular_configs

Conversation

@jonyMarino

Copy link
Copy Markdown
Contributor

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:

  • Updated scene_config_schema.jsonc to allow both a single string or an array of strings for robot-config and env-actor-config, enabling modular configuration composition. [1] [2]
  • Clarified and improved documentation for modular configuration in docs/config.md, docs/config_robot.md, and docs/config_scene.md, including usage examples and notes on merging behavior. [1] [2] [3] [4]

Implementation changes (Python):

  • Updated load_scene_config_as_dict in utils.py to support loading and merging multiple config files for both robots and environment actors. Added recursive merge_dicts and merge_lists helper functions to handle merging logic. [1] [2]

Implementation changes (C++):

  • Modified Scene::Loader::LoadActorWithJSON and LoadEnvActorWithJSON in scene.cpp to 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:

  • Minor code cleanup and logging improvements in C++ scene loader.

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):

* 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>
@jonyMarino
jonyMarino merged commit 9a72205 into main Aug 26, 2026
8 checks passed
@jonyMarino
jonyMarino deleted the feature/modular_configs branch August 27, 2026 21:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant