| scripts: refactor setup.sh into modular components
Split the monolithic setup.sh into a modular architecture to improve
maintainability and testability.
Key changes:
- Created scripts/setup/ containing discrete modules for submodules,
python_venv, rosdep, and environment verification.
- Introduced Template Method pattern for platform-specific hooks
(platform_ros_setup_path, platform_handle_missing_ros) to eliminate
platform if/else branches in the core script.
- Separated Python requirements into dedicated files (base, dev-tools,
hardware, platform-specific).
- Added explicit dependency checking and robust git-lfs handling.
Signed-off-by: XiaoqiangWu <wuxiaoqiang.rtos@huawei.com>
| 27 天前 |