Project Management (XRobot)
This page provides a brief overview of how to use XRobot in embedded projects, including module pulling, configuration, and main function generation. Detailed command descriptions will be provided in subsequent pages, organized by module.
Prerequisites
Ensure that the xrobot
tool is installed via pip or pipx:
pip install xrobot
# Or use pipx
pipx install xrobot
Basic Directory Structure
XRobot uses a conventional directory layout for module management and code generation:
YourProject/
├── Modules/ # Stores module repositories
│ └── modules.yaml # Repository list
├── User/ # User configuration and generated output
│ ├── xrobot.yaml # Configuration for constructor parameters
│ └── xrobot_main.hpp # Auto-generated main function
Tool Overview
The XRobot toolset includes the following commands. Detailed usage and parameters will be covered in later subpages:
xrobot_add_mod
: Add a module repository or module instancexrobot_init_mod
: Pull or update module repositoriesxrobot_gen_main
: Generate main function codexrobot_create_mod
: Create a module templatexrobot_mod_parser
: Parse constructor parameters from module header filesxrobot_setup
: One-click generation of entry files and configuration
These commands will be introduced in detail one by one in the following pages.