How bryantolmos/ur10 works
1. High-level split: “Body” vs “Brain”
- The repository is organized around a strong boundary between robot simulation/control infrastructure and weld-planning logic.
- Body: ur10_description + ur10_moveit_config
- Brain: ur10_planner
- Communication happens through ROS 2 topics, actions, and MoveIt interfaces rather than direct function calls.
2. Runtime and simulation stack
- The system targets ROS 2 Jazzy, Gazebo Harmonic, and MoveIt 2.
- Gazebo provides the simulated robot/world.
- MoveIt provides inverse kinematics, Cartesian path generation, and execution plumbing through controller interfaces.
- use_sim_time is part of the architecture so planning and visualization stay synchronized to the simulator clock.
3. Robot model layer
- src/ur10_description defines the UR10 robot model and custom tooling.
- It contains URDF/Xacro, Gazebo integration, and meshes for a custom end effector.
- This package is the geometric/kinematic source of truth for both simulation and planning.
4. Motion-planning and execution layer
- src/ur10_moveit_config packages the MoveIt-ready robot setup.
- It holds joint limits, kinematics, controller mappings, RViz config, and ROS 2 control wiring.
- Launch files here bring up the robot state publisher, MoveIt move_group, controller spawning, RViz, and Gazebo-specific integration.
5. Planner pipeline entry point
- src/ur10_planner is the application logic for weld execution.
- The package includes a custom Weld.action, a behavior-tree XML config (weld_bt.xml), and a dedicated launch file (v2_pipeline.launch.py).
- This suggests the planner is exposed as a coordinated workflow rather than a single monolithic node.
6. Path generation subsystem
- path_generator_node.cpp reads sparse waypoint data from YAML and transforms it into a dense weld path.
- Inputs are configured through config/weld_path.yaml, which points at data/selected_points.yaml.
- The node computes a perpendicular weave pattern using configurable parameters like amplitude and step length.
- Output is a geometry_msgs::msg::PoseArray, which becomes the shared path representation for downstream nodes.
7. Trajectory supervision and execution
- trajectory_supervisor_node.cpp consumes the generated Cartesian path and interfaces with MoveIt MoveGroupInterface.
- It performs a two-phase motion plan:
- approach from home to the weld start in joint space
- execute the weld path using Cartesian planning
- This node is the bridge from abstract path geometry to actual robot motion.
8. Safety validation boundary
- safety_validator_node.cpp acts as an independent watchdog on planned trajectories.
- It inspects the planned RobotTrajectory joint-by-joint before execution.
- The explicit architectural goal is to prevent joint-limit violations, with the README calling out limits such as ±2π radians.
- This is a separate safety gate, not embedded inside the path generator.
9. Orchestration layer
- bt_weld_orchestrator_node.cpp and config/weld_bt.xml indicate a higher-level coordinator around the planner workflow.
- The repository is structured so orchestration, path generation, validation, and execution remain separate concerns.
- The custom action definition likely serves as the control surface for initiating a weld job.
10. Operational entry points
- launch_sim.sh boots the environment: simulation world, robot model, MoveIt, and RViz.
- launch_pipeline.sh starts the planner pipeline after the simulated robot is ready.
- The README explicitly expects two terminals, reinforcing the decoupled startup model.
11. Configuration and data flow
- Raw weld points live in data/selected_points.yaml.
- Weld-shape parameters and the input file location are centralized in ur10_planner/config/weld_path.yaml.
- Downstream packages consume the generated pose path and robot model/configuration; data flows one way from file input to path generation to planning to execution.
12. External/optional pieces
- src/Universal_Robots_ROS2_Description appears to be an upstream robot-description dependency vendored into the workspace.
- warehouse_db.launch.py suggests optional MoveIt warehouse support, but it is not the core execution path.
- The main architecture remains simulation-first and ROS 2-native, with no direct hardware dependency shown in the repository.
Main entry points: ur10_planner UR10 planner · ur10_moveit_config MoveIt config · bt_weld_orchestrator_node.cpp Orchestrator · ur10_description UR10 model
Components 21
Robot body
Robot model and MoveIt-ready robot configuration
- UR10 model · URDF/Xacro, Gazebo integration, and custom end effector geometry
src/ur10_description - URDF/Xacro · Robot and end-effector model definitions
src/ur10_description/urdf/robots/custom_ur10.urdf.xacro - Gazebo hooks · Gazebo-specific robot integration
src/ur10_description/urdf/ur10.gazebo.xacro - End effector · Custom tool geometry and mounting definition
src/ur10_description/urdf/mech/end_effector.urdf.xacro - MoveIt config · Planning, kinematics, controllers, and RViz wiring
src/ur10_moveit_config - MoveIt URDF · MoveIt-ready robot description with custom end effector
src/ur10_moveit_config/config/ur10_with_custom_ee.urdf.xacro - Controllers · Controller mappings and ROS 2 control setup
src/ur10_moveit_config/config/ros2_controllers.yaml - Kinematics · Joint limits and IK tuning for MoveIt
src/ur10_moveit_config/config/kinematics.yaml - MoveIt launch · Starts robot state publisher, move_group, controllers, and RViz
src/ur10_moveit_config/launch/ur10_gazebo_moveit.launch.py
Planner brain
Weld planning, validation, and orchestration
- UR10 planner · Weld execution logic exposed as a ROS 2 pipeline
src/ur10_planner - Weld action · Control surface for triggering weld jobs
src/ur10_planner/action/Weld.action - BT config · Workflow orchestration for weld execution
src/ur10_planner/config/weld_bt.xml - Path generator · Expands sparse points into a dense weave PoseArray
src/ur10_planner/src/path_generator_node.cpp - Supervisor · Plans approach and Cartesian weld execution through MoveIt
src/ur10_planner/src/trajectory_supervisor_node.cpp - Safety gate · Checks planned joint trajectories against joint limits before execution
src/ur10_planner/src/safety_validator_node.cpp - Orchestrator · Coordinates the weld workflow across planning, validation, and execution
src/ur10_planner/src/bt_weld_orchestrator_node.cpp
Data & config
Input data and planner configuration
- Path config · Source file and weave parameters for weld path generation
src/ur10_planner/config/weld_path.yaml - Waypoints · Sparse selected points used to seed the weld path
data/selected_points.yaml
Entry points
Top-level launch scripts
- Sim launch · Boots simulation, robot, MoveIt, and RViz
launch_sim.sh - Pipeline launch · Starts the weld planning pipeline
launch_pipeline.sh
Other components
- README · High-level architecture and usage guidance
README.md
Connections 31
- README → UR10 model: documents · Describes the robot body and custom end effector
- README → MoveIt config: documents · Describes the motion-planning stack
- README → UR10 planner: documents · Describes the weld planning pipeline
- Sim launch → MoveIt launch: starts · Bootstraps simulation and motion-planning runtime
- Pipeline launch → Orchestrator: starts · Brings up the planner pipeline
- UR10 model → URDF/Xacro: defines · Robot kinematics and geometry
- UR10 model → Gazebo hooks: defines · Gazebo integration layer
- UR10 model → End effector: includes · Custom tool geometry
- MoveIt config → MoveIt URDF: consumes · MoveIt robot model setup
- MoveIt config → Controllers: consumes · Controller interfaces for execution
- MoveIt config → Kinematics: consumes · Kinematics and limit tuning
- MoveIt config → MoveIt launch: packages · Launches runtime components
- UR10 planner → Weld action: exposes · Action interface for weld jobs
- UR10 planner → BT config: orchestrates · Behavior-tree based workflow
- UR10 planner → Path config: reads · Path generation configuration
- UR10 planner → Path generator: implements · Dense path generation node
- UR10 planner → Supervisor: implements · Trajectory planning and execution node
- UR10 planner → Safety gate: implements · Safety validation node
- UR10 planner → Orchestrator: implements · Workflow coordinator node
- Path config → Waypoints: points to · Configured source waypoint file
- Path generator → Waypoints: reads · Consumes sparse weld waypoints
- Path generator → Supervisor: publishes · Produces dense PoseArray path
- Orchestrator → Path generator: triggers · Starts path generation step
- Orchestrator → Safety gate: gates · Requires safety approval before execution
- Orchestrator → Supervisor: dispatches · Hands off validated path for motion planning
- Supervisor → MoveIt config: uses · Relies on MoveIt planning and execution interfaces
- Supervisor → Safety gate: submits · Sends planned trajectory for safety checks
- Safety gate → MoveIt config: verifies against · Checks trajectories with robot limits and model context
- Orchestrator → Weld action: serves · Implements the weld job control contract
- MoveIt launch → UR10 model: loads · Uses robot model at runtime
- MoveIt launch → Controllers: spawns · Starts controllers for execution