Skip to main content

Module project

Module project 

Source
Expand description

Project directories

Constants§

ASSETS_DIR
Assets directory
ASSETS_IMAGES_DIR
Assets images subdirectory
BEHAVIORS_DIR
Behavior trees directory - nested under configs/ (LAB-2072) so mecha10 config push/pull/list genuinely sync it like any other config, instead of living as a sibling top-level directory collect_configs_from_dir never walked.
DEV_PREFLIGHT_CACHE_FILE
Cache file for mecha10 dev’s project-level Python dependency preflight gate - see handlers/dev/ops/preflight.rs in the mecha10-cli crate. Purely a speed optimization: a missing or stale-and-discarded cache always falls back to a real scan, so nothing about correctness depends on this file existing or being fresh.
DRIVERS_DIR
Driver source code directory
LOGS_DIR
Logs directory
MODELS_DIR
Models directory (ONNX models, etc.)
NODES_DIR
Node source code directory
SIMULATION_DIR
Simulation directory
SIMULATION_ENVIRONMENTS_DIR
Simulation environments directory
SIMULATION_MODELS_DIR
Simulation models directory
SIMULATION_OUTPUT_DIR
Simulation output directory (generated robot/scene files)
SIMULATION_TASKS_DIR
Simulation task-curriculum configs directory (LAB-2019) - scaffolded from the templates package’s bundled catalog at mecha10 init time, alongside SIMULATION_MODELS_DIR/ SIMULATION_ENVIRONMENTS_DIR. mecha10_rl.mujoco.cli serve --assets-path (supervised by packages/nodes/simulator) resolves task configs (e.g. task1) from here.
SRC_DIR
Source directory
STATE_DIR
Local (gitignored) project-scoped state directory - mirrors the ~/.mecha10 user-home convention (user::MECHA10_DIR) but scoped to this project checkout, for caches/state that are specific to one clone and shouldn’t be committed to git (e.g. mecha10 dev’s Python dependency preflight cache - see DEV_PREFLIGHT_CACHE_FILE/handlers/dev/ops/preflight.rs in the mecha10-cli crate).
TARGET_DIR
Cargo build target directory
TYPES_DIR
Types directory

Functions§

environment_config
Get path to an environment’s config file
model_config
Get path to a model’s config file