How luaiabuelsamen/ventionmotionplanner works
• Assets: Contains robot meshes, Mujoco scene XML files, and other simulation models.
• Configurations: Holds global configuration files and the demos.yml file which acts as a master config for different simulation setups.
• ROS2 Packages within the src/ directory:
• curobo_api: Provides the ROS2 API interfacing with the Curobo system.
• curobo_action: Defines ROS2 actions (such as MoveJ, MoveL, and PublishJoints) that allow robot control.
• gantry: Likely responsible for gantry control and kinematics (plus its own meshes, configuration, and URDF/xacro files).
• motion_plan: Handles path planning and movement strategies (includes collision tests, planners, and RViz publishers).
• mujoco_api: Deals with Mujoco simulation interfacing (includes nodes for launching Mujoco, parsing XML, and providing utility functions).
• vention_curobo: Implements additional control and planning logic (e.g., pick_and_place and trajectory planning).
External Dependencies and Tools
• ROS2: The primary middleware for messaging, node orchestration, and launching nodes.
• Mujoco: The physics simulation engine that is used to simulate the robot and its environment.
• ROS2 Launch System: Uses launch files (e.g., curobo.launch.py) to bootstrap the simulation by loading demos from the demos.yml file.
• Build and Deployment: Managed via colcon (as detailed in the README).
Relationships and Interactions
• Configuration Flow: The demos.yml file directs which assets and config files get loaded, linking specific robot/world configurations (from the config and assets directories) with the correct simulation XML files.
• ROS2 Node Interactions:
• The launch command (e.g., “ros2 launch curobo_api curobo.launch.py demo:=ur5e_with_gantry”) initiates the primary node(s) that read the configuration.
• Various ROS2 components (curobo_api, curobo_action, motion_plan, etc.) interact using message passing, where action commands, robot state, and planning information are exchanged.
• The mujoco_api serves as a bridge between ROS2 messages and the Mujoco simulation, ensuring data flow from ROS2 to simulation and vice versa.
• Asset and Simulation Link: The assets directory (with various XML and mesh files) is pointed to by entries in the demos.yml file, thus directly affecting the simulation’s visual and collision properties.
Architectural Patterns and Principles
• Separation of Concerns: Clear segregation between configuration, assets, and logic (each ROS2 package focuses on a specific area).
• Modularization: Each ROS2 package can be seen as a separate module (or microservice in a broader sense) that handles specific tasks such as robot control or motion planning.